Greasy Fork

来自缓存

Greasy Fork is available in English.

萌娘-去黑幕-改-Plus

萌娘百科黑幕透明,添加边界框;删除线变下划线

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         萌娘-去黑幕-改-Plus
// @namespace    [email protected]
// @version      0.2.1
// @description  萌娘百科黑幕透明,添加边界框;删除线变下划线
// @author       mytreee
// @match        *://zh.moegirl.org.cn/*
// @match        *://mzh.moegirl.org.cn/*
// @match        *://*.hmoegirl.com/*
// @grant        GM_addStyle
// @run-at       document-idle

// ==/UserScript==

(function () {
    //替换<s>标签效果为下划线
    GM_addStyle('s {text-decoration: underline}');
    //令Decoration样式为下划线
    document.querySelectorAll('del').forEach(e => e.style.textDecoration = 'underline');
    //删除"你知道的太多了"标签
    document.querySelectorAll('.heimu').forEach(e => e.title = '');
})();

(function () {
    //令黑幕BackgroundColor透明
    document.querySelectorAll('.heimu').forEach(e => e.style.backgroundColor = '#ffffff00');
    document.querySelectorAll('.heimu a').forEach(e => e.style.backgroundColor = '#ffffff00');
    document.querySelectorAll('a .heimu').forEach(e => e.style.backgroundColor = '#ffffff00');
})();
    //为黑幕文本添加一个Border框
(function () {
    document.querySelectorAll('.heimu').forEach(e => e.style.border = '1px solid #555');
    document.querySelectorAll('.heimu a').forEach(e => e.style.border = '1px solid #555');
    document.querySelectorAll('a .heimu').forEach(e => e.style.border = '1px solid #555');
})();