Skip to content

Instantly share code, notes, and snippets.

@kool79
Created November 10, 2023 12:11
Show Gist options
  • Select an option

  • Save kool79/c4aa8c3610c325e3d9fb843c809c7e1a to your computer and use it in GitHub Desktop.

Select an option

Save kool79/c4aa8c3610c325e3d9fb843c809c7e1a to your computer and use it in GitHub Desktop.

Revisions

  1. kool79 created this gist Nov 10, 2023.
    22 changes: 22 additions & 0 deletions sfcclearningads
    Original 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())
    })();