您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove ads
当前为
// ==UserScript== // @name manhuafen // @namespace http://m.manhuafen.com // @version 0.6 // @description Remove ads // @author chimin // @match https://m.manhuafen.com/comic/*/*.html* // @grant none // ==/UserScript== (function() { 'use strict'; function resolveUrl(baseUrl, url) { if (url.indexOf('//') >= 0) { var u = baseUrl.indexOf('http://'); if (u >= 0 && url.indexOf('http://') >= 0) { return baseUrl.substring(0, u) + encodeURIComponent(url); } return url; } var p = baseUrl.lastIndexOf('/'); if (p >= 0) { baseUrl = baseUrl.substring(0, p + 1); } return baseUrl + url; } $('<style>.d-none-important{display:none !important} #images{pointer-events:none} #images>img{margin-bottom:2px} .control_bottom{position:fixed !important;bottom:0;background:#fff;z-index:99999}</style>').appendTo($('head')); setInterval(function() { $('brde').each(function() { var id = $(this).attr('id'); if (id) { $(this).addClass('d-none-important'); $('[classname=' + id + '_f]').addClass('d-none-important'); } }); $('[id^=s]').each(function() { var id = $(this).attr('id'); if (/s[0-9]+/.test(id)) { $(this).addClass('d-none-important'); } }); $('#loading').nextAll('div[id]').first().addClass('d-none-important'); $('.autoHeight').addClass('d-none-important'); if (window.chapterImages) { for (var i = 0; i < window.chapterImages.length; i++) { if ($('#page-' + (i + 1)).length == 0) { var baseImg = $('img[id^=page-]'); if (baseImg.length) { var url = resolveUrl(baseImg.attr('src'), window.chapterImages[i]); var img = $(baseImg[0]).clone() .attr('id', 'page-' + (i + 1)) .attr('src', url) .attr('width', '') .attr('height', '') .attr('data-index', i + 1) .css('display', '') .css('width', '100%') .css('height', 'auto'); var prev = $('#page-' + i); if (prev.length) { prev.after(img); } else { $('#images').append(img); } } } } } }, 100); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址