Force Discord Canary

Redirect Stable and PTB to Canary

  1. // ==UserScript==
  2. // @name Force Discord Canary
  3. // @author Puyodead1
  4. // @description Redirect Stable and PTB to Canary
  5. // @version 1.0.0
  6. // @match *://discord.com/*
  7. // @match *://ptb.discord.com/*
  8. // @match *://ptb.discordapp.com/*
  9. // @match *://discordapp.com/*
  10. // @match *://www.discord.com/*
  11. // @match *://www.ptb.discord.com/*
  12. // @match *://www.ptb.discordapp.com/*
  13. // @match *://www.discordapp.com/*
  14. // @run-at document-start
  15. // @grant window.onurlchange
  16. // @icon https://www.google.com/s2/favicons?sz=64&domain=discord.com
  17. // @namespace https://greasyfork.org/users/1409288
  18. // ==/UserScript==
  19.  
  20. (function() {
  21. function redirect() {
  22. location.hostname = "canary.discord.com";
  23. }
  24.  
  25. window.addEventListener('urlchange', ({ url }) => {
  26. redirect();
  27. });
  28.  
  29. redirect();
  30. })();