Redirect Google CN

Redirect Google CN to Google Global!

  1. // ==UserScript==
  2. // @name Redirect Google CN
  3. // @namespace https://github.com/darkatse
  4. // @version 0.12
  5. // @description Redirect Google CN to Google Global!
  6. // @author techstay
  7. // @match *://*.google.cn/*
  8. // @grant none
  9. // @run-at document-start
  10. // ==/UserScript==
  11.  
  12.  
  13. var newHost = window.location.host.replace (/\.cn$/, ".com");
  14. var newURL = window.location.protocol + "//" +
  15. newHost +
  16. window.location.pathname +
  17. window.location.search +
  18. window.location.hash
  19. ;
  20. window.location.replace (newURL);

QingJ © 2025

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