Created
November 10, 2023 12:11
-
-
Save kool79/c4aa8c3610c325e3d9fb843c809c7e1a to your computer and use it in GitHub Desktop.
Revisions
-
kool79 created this gist
Nov 10, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ // ==UserScript== // @name SfccDocAdRemover // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @include https://sfcclearning.com/* // @grant GM_addStyle // @run-at document-idle // ==/UserScript== setTimeout(function() { console.info("timeout") document.querySelectorAll(".ads-title").forEach(it=>it.remove()) document.querySelectorAll(".newsletter-box-menu").forEach(it=>it.remove()) }, 3000); (function() { document.querySelectorAll(".ads-title").forEach(it=>it.remove()) document.querySelectorAll(".newsletter-box-menu").forEach(it=>it.remove()) })();