Greasy Fork

Greasy Fork is available in English.

飞卢小说图片去除

用于删除飞卢小说网页端阅读页面的图片

当前为 2023-09-07 提交的版本,查看 最新版本

// ==UserScript==
// @name            飞卢小说图片去除
// @name:en         Faloo Picture Remover
// @description     用于删除飞卢小说网页端阅读页面的图片
// @description:en  Used to delete images from the webpage reading page of faloo novel
// @version         0.0.1
// @author          Confringo
// @match           *://b.faloo.com/*_*.html
// @match           *://wap.faloo.com/*_*.html
// @license         AGPL-3.0-or-later
// @namespace http://greasyfork.icu/users/960765
// ==/UserScript==

(function() {
    'use strict';
    try{
        let e = document.evaluate("/html/body/section/div[1]/div[3]/div[1]/a/img", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
        e.singleNodeValue.remove();
    }
    catch(k){
        console.log("Script for wap.faloo.com ran into an error. Text will show below:");
        console.log(k.message);
    }
    try{
        let f = document.evaluate("/html/body/div[6]/div/div[1]/div[6]/a/img", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
        f.singleNodeValue.remove();
    }
    catch(k){
        console.log("Script for b.faloo.com ran into an error. Text will show below:");
        console.log(k.message);
    }
})();