Skip to content

Commit 8de5b7e

Browse files
committed
新增 [链接点击后颜色变浅灰色]
1 parent c1b191e commit 8de5b7e

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

52pojie-Beautification.user.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// ==UserScript==
22
// @name 吾爱破解论坛美化
3-
// @version 1.0.5
3+
// @version 1.0.6
44
// @author X.I.U
5-
// @description 精简多余内容
5+
// @description 精简多余内容、样式优化
66
// @match *://www.52pojie.cn/*
77
// @icon https://www.52pojie.cn/favicon.ico
88
// @grant GM_registerMenuCommand
@@ -25,7 +25,7 @@
2525

2626
// 注册脚本菜单
2727
function registerMenuCommand() {
28-
var menu_rule_;
28+
let menu_rule_;
2929
if (menu_feedBack_ID){ // 如果反馈菜单ID不是 null,则删除所有脚本菜单
3030
GM_unregisterMenuCommand(menu_rule_ID);
3131
GM_unregisterMenuCommand(menu_feedBack_ID);
@@ -42,16 +42,16 @@
4242
function menu_switch(menu_status, Name, Tips) {
4343
if (menu_status){
4444
GM_setValue(`${Name}`, false);
45-
GM_notification({text: `已关闭 [${Tips}] 功能\n(刷新网页后生效)`, timeout: 3500});
45+
GM_notification({text: `已关闭 [${Tips}] 功能\n(刷新网页后生效)`, timeout: 3000});
4646
}else{
4747
GM_setValue(`${Name}`, true);
48-
GM_notification({text: `已开启 [${Tips}] 功能\n(刷新网页后生效)`, timeout: 3500});
48+
GM_notification({text: `已开启 [${Tips}] 功能\n(刷新网页后生效)`, timeout: 3000});
4949
}
5050
registerMenuCommand(); // 重新注册脚本菜单
5151
};
5252

5353
function addStyle() {
54-
var style,
54+
let style,
5555
style_1 = `.bml {display:none !important;}`,
5656
style_2 = `
5757
a[href="connect.php?mod=config"], #toptb, #navmenu, #nv_ph, #nv, #pt .y, #chart, #ft, #custominfo_pmenu, .bm.lk, .dnch_eo_pt, .dnch_eo_pr, .dnch_eo_f, dl.pil.cl, td.plc.plm .sign, .dnch_eo_pb, .dnch_eo_pt, .pls .side-star, .pls .side-group, .res-footer-note, .comiis_nav, .scbar_hot_td, .md_ctrl, .pls.favatar .xg1 {
@@ -125,6 +125,10 @@ textarea#fastpostmessage {
125125
border-top:0;
126126
border-bottom:0;
127127
background:0;
128+
}
129+
/* 链接点击后颜色变浅(灰白色) */
130+
.tl th a:visited, .tl td.fn a:visited {
131+
color: #aaa;
128132
}`,
129133
style_Add = document.createElement('style');
130134
if (menu_rule) {

0 commit comments

Comments
 (0)