Auto click redirector

Skip kurosafety, pafpaf

当前为 2018-11-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Auto click redirector
  3. // @namespace https://greasyfork.org/en/users/158832
  4. // @version 1.0
  5. // @description Skip kurosafety, pafpaf
  6. // @author Riztard
  7. // @match *kurosafety.menantisenja.com*
  8. // @include *kurosafety.menantisenja.com*
  9. // @match *pafpaf.info*
  10. // @include *pafpaf.info*
  11. // @grant none
  12. // @icon https://www.shareicon.net/download/2015/08/23/89640_forward.ico
  13. // ==/UserScript==
  14.  
  15. if (window.top != window.self) //-- Don't run on frames or iframes
  16. return;
  17.  
  18. (function() {
  19. 'use strict';
  20.  
  21. if (window.location.href.indexOf("kurosafety") != -1) {
  22.  
  23. $('#mybutton')[0].click();
  24.  
  25. }
  26. else if (window.location.href.indexOf("pafpaf") != -1) {
  27.  
  28. window.location.href = $('#mybutton').attr('href');
  29. }
  30. })();