From: PHO Date: Mon, 8 Feb 2021 10:42:01 +0000 (+0900) Subject: Run the script at document-end X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=imenu-relinker.git Run the script at document-end --- diff --git a/imenu-relinker.user.js b/imenu-relinker.user.js index 3711d16..e9fb624 100644 --- a/imenu-relinker.user.js +++ b/imenu-relinker.user.js @@ -5,7 +5,7 @@ // @author PHO // @version 1.0.1 // @license CC0 -// @run-at document-idle +// @run-at document-end // @include https://*.5ch.net/* // ==/UserScript== (function () { @@ -24,7 +24,7 @@ function remove_ad_footer() { // Starting from 2021-02-08, 5ch.net shows an iframe ad // contained in several nested div elements. Dunno which - // script is doing it. + // script is doing it. -> Found. It was "ad.js" var iframes = document.querySelectorAll("iframe"); for (var iframe of iframes.values()) { if ((iframe.getAttribute("src") || "").startsWith("//stab.thench.net/")) {