From 09013ca94d6ddc2c9f848fc3e45400a74184f21d Mon Sep 17 00:00:00 2001 From: PHO Date: Mon, 8 Feb 2021 19:42:01 +0900 Subject: [PATCH] Run the script at document-end --- imenu-relinker.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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/")) { -- 2.40.0