kusonime direct download

yes

  1. // ==UserScript==
  2. // @name kusonime direct download
  3. // @namespace kusonime
  4. // @version 2
  5. // @description yes
  6. // @author Yakult
  7. // @match https://kusonime.com/*
  8. // @icon https://www.google.com/s2/favicons?domain=kusonime.com
  9. // @grant none
  10. // @require https://code.jquery.com/jquery-3.4.1.min.js
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var lth = $(`.dlbod
  16. > .smokeddl
  17. > .smokeurl
  18. > a`
  19. ).length
  20. /*var j =
  21. $('.smokeurl > a')[0].href.split('&url=')
  22. [1].replace('&type=2','')
  23. $('.dlbod')
  24. [0].append
  25. (decodeURIComponent(j)
  26. )*/
  27. for(let i=0;
  28. i<lth;
  29. i++){
  30. var x = atob($('.smokeurl > a'
  31. )[i].href.split('&url='
  32. )[1].replace('&type=2',''
  33. )
  34. )
  35. var br = document.createElement('br'
  36. )
  37. var xhref = document.createElement('a'
  38. )
  39. xhref.innerHTML = x
  40. xhref.href = x
  41. /*$('.dlbod')[0].append(xhref) $('.dlbod')[0].append(br)*/
  42. $('.smokeurl > a'
  43. )[i].href = x;
  44. }
  45. function mousedwn(e
  46. ){
  47. try{
  48. if(event.button==2||event.button==3)
  49. return true
  50. }catch(
  51. e
  52. ){
  53. if(e.which==3
  54. )return true
  55. }}
  56. document.oncontextmenu=function(){
  57. return true};
  58. document.ondragstart=function(){
  59. return true};
  60. document.onmousedown=mousedwn
  61. document.onkeydown=function(
  62. e){
  63. e=e||window.event;
  64. if(
  65. e.keyCode==123||e.keyCode==18
  66. ){
  67. return true
  68. }
  69. }
  70. // Your code here...
  71. })();