Skip to content

Instantly share code, notes, and snippets.

@yatt
Created March 30, 2021 09:09
Show Gist options
  • Save yatt/1a705975b69262bc1c40e50e3540167a to your computer and use it in GitHub Desktop.
Save yatt/1a705975b69262bc1c40e50e3540167a to your computer and use it in GitHub Desktop.
Google Search Ads remove tampermonkey script(for jpn) 2021-03-30(experimental)
// ==UserScript==
// @name Remove Google Ads
// @namespace https://gist.github.com/yatt/
// @version 1.0.0
// @description remove google search ads
// @author You
// @match https://www.google.com/search?q=*
// ==/UserScript==
(function() {
'use strict';
var root = document.getElementById('center_col');
var lst = document.querySelectorAll('[aria-label*="広告"]', root);
lst.forEach(elem => elem.remove());
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment