JiraRice

redirect

  1. // ==UserScript==
  2. // @name JiraRice
  3. // @locale IN
  4. // @description redirect
  5. // @match *://jira.corp.inmobi.com:8443/*
  6. // @match *://inmobi.atlassian.net/*
  7. // @run-at document-start
  8. // @grant none
  9. // @version 0.0.1.20210628051909
  10. // @namespace https://gf.qytechs.cn/users/788174
  11. // ==/UserScript==
  12.  
  13. //-- Only redirect if the *path* ends in .html...
  14. if (/.*jira\.carp\.inmobi\.com:8443.*/.test (location.host) || /.*inmobi\.atlassian\.net.*/.test (location.host)) {
  15. var newHost = location.host.replace (/inmobi\.atlassian\.net/, "glanceinmobi.atlassian.net");
  16. newHost = newHost.replace (/.*jira\.carp\.inmobi\.com:8443.*/, "glanceinmobi.atlassian.net");
  17. console.log(newHost);
  18. var newURL = location.protocol + "//" +
  19. newHost +
  20. location.pathname +
  21. location.search +
  22. location.hash
  23. ;
  24. location.replace (newURL);
  25. }

QingJ © 2025

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