google 加一个只显示中文结果的链接

nothing

  1. // ==UserScript==
  2. // @name google 加一个只显示中文结果的链接
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description nothing
  6. // @author You
  7. // @match https://www.google.com/search*
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. 'use strict';
  12. var url = unsafeWindow.location.href;
  13. var newUrl = url + '&lr=lang_zh-CN';
  14. var link = document.createElement('a');
  15. link.href = newUrl;
  16. link.innerHTML = '只显示中文';
  17. var container = document.createElement('div');
  18. container.style = "position:fixed;left:10px;top:90px;z-index:999;";
  19. container.appendChild(link);
  20. document.body.appendChild(container);
  21. // Your code here...
  22. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址