风之动漫键盘控制+去广告

try to take over the world!

  1. // ==UserScript==
  2. // @name 风之动漫键盘控制+去广告
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description try to take over the world!
  6. // @author imzhi
  7. // @match https://manhua.fzdm.com/*
  8. // @match https://manhua.fffdm.com/*
  9. // @require https://cdn.staticfile.org/jquery/3.5.1/jquery.min.js
  10. // @grant GM_addStyle
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // 隐藏头部广告
  17. GM_addStyle('@charset utf-8; #fix_top_dom {display: none;}');
  18. // 隐藏右下角广告
  19. GM_addStyle('@charset utf-8; #HMRichBox {display: none !important;}');
  20. // 隐藏底部广告
  21. GM_addStyle('@charset utf-8; .navigation+center {display: none !important;}');
  22.  
  23. const $buttons = $('.navigation > .pure-button');
  24. if (!$buttons.length) {
  25. return;
  26. }
  27. let prev_btn, next_btn;
  28. $buttons.each(function(i, el) {
  29. if ($(el).text() === '上一页') {
  30. prev_btn = el;
  31. } else if ($(el).text() === '下一页' || $(el).text() === '下一话吧') {
  32. next_btn = el;
  33. }
  34. });
  35. $(document).keydown(function(e) {
  36. if (e.which == 37) {
  37. if (prev_btn) {
  38. prev_btn.click();
  39. }
  40. } else if (e.which == 39) {
  41. if (next_btn) {
  42. next_btn.click();
  43. }
  44. }
  45. });
  46. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址