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 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.1.0 | |
| // @grant none | |
| // @require https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js | |
| // ==/UserScript== | |
| const obs = new MutationObserver(function() { | |
| $(".mp-Listings__admarktTitle").remove(); | |
| $(".mp-Listing .mp-Listing-seller-link").closest("li").remove(); | |
| $(".mp-Listing .mp-Listing-location:contains('Bezorgt in ')").closest("li").remove(); | |
| $(".mp-Listing .mp-Listing-location:contains('Heel Nederland')").closest("li").remove(); | |
| }); | |
| obs.observe(document.getElementById('__next'), { childList: true, subtree: true }); |
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 persgroep cookies | |
| // @name persgroep | |
| // @namespace nielsAD | |
| // @include *://myprivacy.persgroep.net/* | |
| // @include *://myprivacy.dpgmedia.net/* | |
| // @version 1.0.1 | |
| // @grant none | |
| // ==/UserScript== | |
| const ja = (document.getElementsByClassName("fjs-set-consent") || [])[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 Accept privacy-center cookies | |
| // @name privacy-center | |
| // @namespace nielsAD | |
| // @include *://www.dumpert.nl/* | |
| // @version 1.0.0 | |
| // @grant none | |
| // ==/UserScript== | |
| const obs = new MutationObserver(function() { | |
| const host = document.getElementById("didomi-host"); | |
| if (!host) return; | |
| setTimeout(function(){ | |
| const agree = document.getElementById("didomi-notice-agree-button"); | |
| console.log("woop", agree); | |
| if (agree) { | |
| agree.click(); | |
| } | |
| }, 0); | |
| }); | |
| obs.observe(document.body, { childList: true }); |
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 Disable Twitch automatically changing video quality when playing in background | |
| // @name twitch.tv | |
| // @namespace nielsAD | |
| // @include *://*.twitch.tv/* | |
| // @version 1.1.0 | |
| // @grant none | |
| // ==/UserScript== | |
| // Insert like this to work around greasemonkey jail | |
| const fun = function() { | |
| Object.defineProperty(document, 'hidden', {value: false, writable: false}); | |
| Object.defineProperty(document, 'visibilityState', {value: 'visible', writable: false}); | |
| Object.defineProperty(document, 'webkitVisibilityState', {value: 'visible', writable: false}); | |
| document.dispatchEvent(new Event('visibilitychange')); | |
| }; | |
| const node = document.createElement('script'); | |
| node.type = "text/javascript"; | |
| node.textContent = '(' + fun.toString() + ')()'; | |
| document.body.appendChild(node); | |
| setInterval(function(){ | |
| const bonus = document.getElementsByClassName("claimable-bonus__icon"); | |
| for (let b of bonus) { | |
| b.click(); | |
| } | |
| }, 5000); |
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.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(); | |
| // Disable "Are you still there?" modal | |
| const fun = function() { | |
| yt.util.activity.getTimeSinceActive = function() { return 0; }; | |
| }; | |
| window.addEventListener("yt-navigate-finish", function() { | |
| const node = document.createElement('script'); | |
| node.type = "text/javascript"; | |
| node.textContent = '(' + fun.toString() + ')()'; | |
| document.body.appendChild(node); | |
| }, {once: true}); |
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