Sleazy Fork is available in English.

禁漫天堂漫画内去广告

禁漫天堂内去广告 自动播放设置在代码内修改 翻到页底自动翻页

  1. // ==UserScript==
  2. // @name 禁漫天堂漫画内去广告
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.3
  5. // @description 禁漫天堂内去广告 自动播放设置在代码内修改 翻到页底自动翻页
  6. // @author luohuang
  7. // @match https://18comic.vip/photo/*
  8. // @include https://jm-comic*.club/photo/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=jm-comic1.vip
  10. // @grant window.close
  11. // @grant GM_openInTab
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17. const movespeed=0
  18. //调节速度
  19. const next = document.querySelector('#next_series a')
  20. let midguanggao
  21. const btmguanggao=document.querySelector('.bot-per.visible-xs.visible-sm')
  22. btmguanggao.innerHTML=''
  23. const topguanggao = document.querySelectorAll('.col-xs-6')
  24. for(let index =0 ; index<topguanggao.length ; index++){
  25. topguanggao[index].style.display='none'}
  26. let automove = setInterval(function () {
  27. document.documentElement.scrollTop += movespeed
  28. }, 10)
  29. window.addEventListener('touchstart', function () {
  30. clearInterval(automove)
  31. })
  32. window.addEventListener('touchend', function () {
  33. //if(next.href){
  34. //if(document.documentElement.scrollTop + document.documentElement.clientHeight*1.1 >= document.documentElement.scrollHeight){
  35. //GM_openInTab(next.href);
  36. //window.close()}}
  37. //浏览器无法使用window.location.href时使用此方法
  38. automove = setInterval(function () {
  39. document.documentElement.scrollTop += movespeed
  40. }, 10)
  41. })
  42. window.addEventListener('scroll',function(){
  43. midguanggao=document.querySelector('.e8c78e-4_b')
  44. if(midguanggao) midguanggao.remove()
  45. if(document.documentElement.scrollTop + document.documentElement.clientHeight*1.1 >= document.documentElement.scrollHeight){
  46. window.location.href=next.href}})
  47. })();