Skip to content

Instantly share code, notes, and snippets.

@one2Ter
Forked from JamoCA/Remove_Google_Ad.user.js
Created January 4, 2022 13:38
Show Gist options
  • Select an option

  • Save one2Ter/bf3c590ffcdfa6dd12989da64d25973c to your computer and use it in GitHub Desktop.

Select an option

Save one2Ter/bf3c590ffcdfa6dd12989da64d25973c to your computer and use it in GitHub Desktop.
Greasemonkey script to remove Google Ads
// ==UserScript==
// @name GoogleNoAds
// @namespace gist.github.com/JamoCA/99505f3dad38f23d3dcaa73a4eb6d030
// @description Remove inline ads from Google
// @include https://www.google.com/
// @version 1.1
// @grant none
// ==/UserScript==
// ==/UserScript==
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
$(document).ajaxComplete(function() {
$('.ads-ad').remove();
});
setInterval(function(){
$('.ads-ad').remove();
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment