nekolink

throw download link instead of ads

  1. // ==UserScript==
  2. // @name nekolink
  3. // @namespace nekolink
  4. // @version 0.2
  5. // @description throw download link instead of ads
  6. // @author Reissfeld
  7. // @match https://nekolink.site/*
  8. // @icon https://nekolink.site/asset/default/img/favicon.ico?v=1553817714
  9. // @run-at document-end
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. if(location.pathname.startsWith('/f/')){
  16. document.querySelector('#download').onclick = function(){
  17. setTimeout(function(){
  18. document.querySelector('div[style="position:fixed;inset:0px;z-index:2147483647;background:black;opacity:0.01;height:695px;width:1366px"').remove()
  19. }, 9000);
  20. }
  21. }else{
  22. setTimeout(function(){
  23. var getLink = location.href.replace('/v/','/f/')
  24. for(var i = 0;i<10;i++){
  25. document.querySelector('a[href^="https://beshucklean.com/"]').setAttribute('href',getLink)
  26. }
  27. }, 4000);
  28. }
  29. // Your code here...
  30. })();