Created
October 22, 2024 13:00
-
-
Save maanimis/fdfdbcbf31e3916b9908b6a5ff7332ad to your computer and use it in GitHub Desktop.
Violentmonkey adblocker script for soundcloud.com
This file contains 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 soundcloud.com | |
// @namespace Violentmonkey Scripts | |
// @match https://soundcloud.com/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 1/22/2024, 2:01:13 PM | |
// ==/UserScript== | |
setInterval(function(){ | |
var source = document.getElementsByTagName('html')[0].innerHTML; | |
var found = source.search("Advertisement"); | |
if(found != -1){ | |
window.location.reload(true); | |
} | |
}, 1000); | |
function alertFunction() { | |
setTimeout(function(){ | |
var btn = document.querySelector(".playControls__play"); | |
btn.click(); | |
}, 3000); | |
} | |
window.onload = alertFunction; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment