Adfly Skipper

This script does almost all the work for you, letting you skip Adfly. (except Click here to continue)

  1. // ==UserScript==
  2. // @name Adfly Skipper
  3. // @namespace https://github.com/charlie-moomoo
  4. // @version 0.1
  5. // @description This script does almost all the work for you, letting you skip Adfly. (except Click here to continue)
  6. // @author CharlieMoomoo
  7. // @match *://*/*
  8. // @icon https://play-lh.googleusercontent.com/Tie7kj_sUJacI3b6d618rKbJJx-FjEduZyuWK5hBLDeHI-Qme1hBYNOE0gTM3CATD6Am
  9. // @grant window.onurlchange
  10. // @license MIT
  11. // @run-at document-start
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. const tryClick = ()=>{
  17. if (!document.querySelector(".mwButton")) return
  18. document.querySelector(".mwButton").click()
  19. }
  20. const run = ()=>{
  21. if (!location.pathname.startsWith("/pushredirect")) return
  22. return window.location.replace(decodeURIComponent(location.search.split("&dest=")[1]))
  23. }
  24. run()
  25. setInterval(tryClick,1000)
  26. window.addEventListener("urlchange",run)
  27. })();