Greasy Fork镜像 支持简体中文。

Google_search_filter_with_Language

Google result filter by language

目前為 2020-11-19 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Google_search_filter_with_Language
  3. // @name:zh-CN Google_search_filter_with_Language
  4. // @name:zh-TW Google_search_filter_with_Language
  5. // @name:ja Google_search_filter_with_Language
  6. // @description:zh-CN Google result filter by language
  7. // @description:zh-TW Google result filter by language
  8. // @description:ja Google result filter by language
  9. // @description Google result filter by language
  10. // @namespace Google_search_filter_with_Language
  11. // @supportURL https://github.com/zhuzemin
  12. // @include https://www.google.*/search*
  13. // @author zhuzemin
  14. // @version 1.11
  15. // @grant none
  16. // ==/UserScript==
  17. let searchBtn=document.querySelector("button.Tg7LZd");
  18. let lr = document.createElement("lr");
  19. lr.innerHTML = '<lr><a href="'+window.location.href.replace(/lr=lang_(.{1,16})/g, '').replace(/$/, '&lr=lang_en')+'">EN</a>/<a href="'+window.location.href.replace(/lr=lang_(.{1,16})/g, '').replace(/$/, '&lr=lang_ja')+'">JA</a>/<a href="'+window.location.href.replace(/lr=lang_(.{1,16})/g, '').replace(/$/, '&lr=lang_zh-TW')+'">TW</a>/<a href="'+window.location.href.replace(/lr=lang_(.{1,16})/g, '').replace(/$/, '&lr=lang_zh-CN')+'">CN</a>/<a href="'+window.location.href.replace(/lr=lang_(.{1,16})/g, '').replace(/$/, '&lr=lang_zh-CN|lang_zh-TW')+'">TW&CN</a>/<a href="'+window.location.href.replace(/lr=lang_(.{1,16})/g, '')+'">All Language</a></lr>'
  20. searchBtn.parentNode.insertBefore(lr, searchBtn);
  21. let video=document.querySelector("a[data-sc='V']");
  22. searchBtn.parentNode.insertBefore(video, searchBtn);
  23. let image=document.querySelector("a[data-sc='I']");
  24. searchBtn.parentNode.insertBefore(image, searchBtn);

QingJ © 2025

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