Original Google For Personal Blocklist

将使用Personal Blocklist (by Google)后的Google的搜索界面改成原来的样子

  1. // ==UserScript==
  2. // @name Original Google For Personal Blocklist
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description 将使用Personal Blocklist (by Google)后的Google的搜索界面改成原来的样子
  6. // @author ipcjs
  7. // @include https://www.google.com/search?*
  8. // @include https://www.google.com/webhp?*
  9. // @include https://www.google.co.jp/search?*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. 'use strict';
  15. let css = `.blockLink {
  16. opacity: 0;
  17. height: 0px;
  18. }
  19. .blockLink:hover {
  20. opacity: 1;
  21. }
  22. .srg div.g.pb {
  23. }`;
  24. let style = document.createElement('style');
  25. style.innerHTML = css;
  26. document.querySelector('head').appendChild(style);
  27. })();