Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Remove Google Ads
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author Pu12
- // @include http://*
- // @include https://*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var bannerads = document.getElementsByClassName('US_F_ADS');
- if(bannerads[0]){
- bannerads[0].remove();
- }
- [...document.querySelectorAll('.adsbygoogle')].forEach(function(eleads) {
- if(eleads){
- eleads.remove();
- }
- });
- })();
Add Comment
Please, Sign In to add comment