summaryrefslogtreecommitdiff
path: root/plugins/shorten_expanded
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-10 16:34:27 +0300
committerAndrew Dolgov <[email protected]>2021-03-10 16:34:27 +0300
commit668b0ac7a675c0ea49e4223d716cc1db0e64056c (patch)
tree9ca0cbdc75803d97872896b2fc1f150ca52ab597 /plugins/shorten_expanded
parentfb89c3bad0cc340612f07d2e989b3ff34e0658c5 (diff)
shorten_expanded: no need to hook on HOOK_SANITIZE anymore
Diffstat (limited to 'plugins/shorten_expanded')
-rw-r--r--plugins/shorten_expanded/init.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/plugins/shorten_expanded/init.php b/plugins/shorten_expanded/init.php
index 9673f581b..c097f1a0d 100644
--- a/plugins/shorten_expanded/init.php
+++ b/plugins/shorten_expanded/init.php
@@ -10,22 +10,6 @@ class Shorten_Expanded extends Plugin {
function init($host) {
$this->host = $host;
-
- $host->add_hook($host::HOOK_SANITIZE, $this);
- }
-
- // native lazy loading messes with plugin height calculation because images get loaded
- // after headline is actually rendered (off screen) so we force disable it
- function hook_sanitize($doc) {
- $xpath = new DOMXPath($doc);
-
- $entries = $xpath->query('(//*[@loading="lazy"])');
-
- foreach ($entries as $entry) {
- $entry->removeAttribute("loading");
- }
-
- return $doc;
}
function get_css() {