Skip to content

Instantly share code, notes, and snippets.

@tai-cha
Last active August 15, 2020 09:54
Show Gist options
  • Save tai-cha/af384c5c41f45d00eacdcc554dd4e406 to your computer and use it in GitHub Desktop.
Save tai-cha/af384c5c41f45d00eacdcc554dd4e406 to your computer and use it in GitHub Desktop.
Hide result which include www.sejuku.net on Google Search (GreaseMonkey/userChrome.js Script)
// ==UserScript==
// @name Hide www.sejuku.net from google search
// @version 2
// @include *://google.co.jp/search*
// @include *://www.google.co.jp/search*
// @include *://google.com/search*
// @include *://www.google.com/search*
// ==/UserScript==
for (let elem of document.getElementsByClassName("g")){if(elem.innerHTML.match(/www.sejuku.net/)){elem.style.display="none"}};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment