Redirect Google

Redirect Google to Yahoo!

当前为 2018-09-01 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Redirect Google
  3. // @namespace http://domain.com/directory
  4. // @description Redirect Google to Yahoo!
  5. // @include *.kleinezeitung.*/*
  6. // @version 0.0.1.20180901135227
  7. // ==/UserScript==
  8. var hlocation =window.location;
  9. var hlocation = String(hlocation)
  10. //window.location.replace('l.facebook.com/l.php?u='+location);
  11. var fb = "https://l.facebook.com/l.php?u=";
  12. var newlocation = fb+hlocation;
  13. var input=document.createElement("input");
  14. input.type="button";
  15. input.value="convert to plus";
  16. input.setAttribute("style", "font-size:20px;position:absolute;top:0px;right:80px;width:240px;");
  17. input.onclick = redirect;
  18. document.body.appendChild(input);
  19. function redirect()
  20. {
  21. window.location.replace(newlocation);
  22. }