Last active
January 29, 2021 09:26
-
-
Save naimdjon/a016724f968cb74fc23efa11d933baab to your computer and use it in GitHub Desktop.
block ad from startpage search results.
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 startpageAdBlock | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description blocks startpage ads | |
// @author Naimdjon Takhirov | |
// @include https://www.startpage.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var sponsored_csa1=document.getElementById("sponsored_csa1"); | |
if (typeof(sponsored_csa1) != "undefined" && sponsored_csa1 !== null){ | |
sponsored_csa1.parentNode.removeChild(sponsored_csa1); | |
} | |
var adBlock=document.getElementById("adBlock"); | |
if (typeof(adBlock) != "undefined" && adBlock !== null){ | |
adBlock.parentNode.removeChild(adBlock); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment