Skip poweruser.guru site

Skip poweruser.guru and go to the real poweruser.com thread

  1. // ==UserScript==
  2. // @name Skip poweruser.guru site
  3. // @namespace GrayFace
  4. // @version 1.0
  5. // @description Skip poweruser.guru and go to the real poweruser.com thread
  6. // @author GrayFace
  7. // @match http://poweruser.guru/*
  8. // @match https://poweruser.guru/*
  9. // @grant none
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. (function() {'use strict';
  14.  
  15. function WhenLoaded(f, id) {
  16. var timer;
  17. timer = setInterval(function() {
  18. var a = document && document.body && (!id || document.querySelector(id));
  19. if (a) {
  20. clearTimeout(timer);
  21. f(id && a);
  22. }
  23. }, 10);
  24. }
  25.  
  26. WhenLoaded((a)=>{
  27. location.href = a.href;
  28. }, '.question .suggest-edit-post');
  29.  
  30. })();