Last active
November 15, 2024 11:33
-
-
Save nielsAD/d04568f2f240a9f0b225897e318bb2a9 to your computer and use it in GitHub Desktop.
Greasemonkey user scripts
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 characters
| // ==UserScript== | |
| // @description Accept AD cookies | |
| // @name ad.nl | |
| // @namespace nielsAD | |
| // @include *://www.ad.nl/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| const ja = (document.getElementsByClassName("fjs-accept") || [])[0]; | |
| if (ja && ja.innerText.indexOf("cookies") !== -1) { | |
| ja.click(); | |
| } |
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 characters
| // ==UserScript== | |
| // @description Decline NPR cookies | |
| // @name choice.npr | |
| // @namespace nielsAD | |
| // @include *://choice.npr.org/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| const decline = document.getElementById("textLink"); | |
| if (decline) { | |
| decline.click(); | |
| } |
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 characters
| // ==UserScript== | |
| // @description Hide FTM overlay | |
| // @name followthemoney | |
| // @namespace nielsAD | |
| // @include *://www.ftm.nl/* | |
| // @version 1 | |
| // @grant none | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| document.body.style.overflow = "initial"; | |
| let css = document.createElement("style"); | |
| css.type = 'text/css'; | |
| css.appendChild(document.createTextNode(".blockingOverlay{display:none}")); | |
| document.getElementsByTagName("head")[0].appendChild(css); |
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 characters
| // ==UserScript== | |
| // @description Hide Marktplaats ads | |
| // @name marktplaats | |
| // @namespace nielsAD | |
| // @include *://www.marktplaats.nl/* | |
| // @version 1.0.3 | |
| // @grant none | |
| // @require https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js | |
| // ==/UserScript== | |
| $("article.search-result .seller-link").closest("article").remove(); | |
| $("article.search-result .location-name:contains('Bezorgt in ')").closest("article").remove(); | |
| $("article.search-result .location-name:contains('Heel Nederland')").closest("article").remove(); | |
| $("div.listing-extension").remove(); | |
| $("div.main-banners").remove(); |
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 characters
| // ==UserScript== | |
| // @description Accept nu.nl cookies | |
| // @name nu.nl | |
| // @namespace nielsAD | |
| // @include *://www.nu.nl/* | |
| // @version 1 | |
| // @grant none | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| const ja = document.getElementById("sanoma-consent-accept-button"); | |
| if (ja) { | |
| ja.click(); | |
| } |
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 characters
| // ==UserScript== | |
| // @description Accept Volkskrant cookies | |
| // @name volkskrant | |
| // @namespace nielsAD | |
| // @include *://www.volkskrant.nl/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| const ja = (document.getElementsByClassName("button--accept") || [])[0]; | |
| if (ja && ja.innerText.indexOf("cookies") !== -1) { | |
| ja.click(); | |
| } |
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 characters
| // ==UserScript== | |
| // @name YouTube: Theater Mode | |
| // @namespace nielsAD | |
| // @description YouTube theater mode | |
| // @include *://www.youtube.com/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| function resize() { | |
| const theater = (document.getElementsByClassName("ytp-size-button") || [])[0]; | |
| if (theater && theater.title.indexOf("heater") !== -1) { | |
| theater.click(); | |
| resized = true; | |
| } | |
| const watch = document.getElementById("page"); | |
| if (watch && watch.classList.contains("watch")) { | |
| watch.classList.remove("watch-non-stage-mode"); | |
| watch.classList.add("watch-stage-mode"); | |
| watch.classList.add("watch-wide"); | |
| resized = true; | |
| } | |
| } | |
| window.addEventListener("spfdone", resize); | |
| window.addEventListener("yt-navigate-finish", resize); | |
| resize(); |
Bugreport: Marktplaats userscript werkt niet goed. Ze willen echt niet dat je die stomme advertenties filtert, want je krijgt deze fout als je naar de volgende pagina gaat: https://i.imgur.com/eXnYi87.png
En ook een feature request: kleinere advertenties, die gigantisch grote advertenties nemen heel mijn scherm in beslag. En als we toch bezig zijn: 100 advertenties per pagina optie, want die idioten hebben die optie weer verwijderd.
Author
@Wasmachineman-NL Marktplaats script zou weer moeten werken! Voor een script met meer features zou je eens hier kunnen kijken.
super! thanks π
β¦________________________________
From: Niels AD <notifications@github.com>
Sent: Monday, January 25, 2021 10:45 AM
To: nielsAD <nielsAD@noreply.github.com>
Cc: flacito13 <cocodylan@live.com>; Comment <comment@noreply.github.com>
Subject: Re: nielsAD/_userscripts.md
@nielsAD commented on this gist.
________________________________
@Wasmachineman-NL<https://github.com/Wasmachineman-NL> Marktplaats script zou weer moeten werken! Voor een script met meer features zou je eens hier<https://github.com/ArnoldDeRuiter/MarktplaatsUserscript> kunnen kijken.
β
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://gist.github.com/d04568f2f240a9f0b225897e318bb2a9#gistcomment-3606316>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANJZHUTGL67ZXNQH5D7NHCDS3U4SNANCNFSM4RTH67JA>.
@nielsAD wow dat script van Arnold werkt goed zeg :O eindelijk een manier om die debielen zoals Arpe Kampen met zijn 10000 verschillende accounts te filteren als ik iets van Asko zoek.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dank je wel