This topic created in 2336 days ago, the information mentioned may be changed or developed.
javascript:$(".topic-link").toArray().forEach(function(item, index){str = item.href; str = str.replace(/#.*$/,""); item.href = str;})
顺便帮看看有没有什么我没发现的 BUG。
平时基本只看奇思妙想,看过楼主发的内容基本就不想看回复了。本来访问过变色的功能挺不错的,结果 V2EX 有个有新回复链接颜色就会变回去的机制。
Supplement 1 · Dec 23, 2019
javascript:$(".topic-link").toArray().forEach(function(item){var str = item.href; str = str.replace(/#.*$/,""); item.href = str;})
添加了定义变量的关键字 str。去掉了没有使用的参数 index。
 |
|
1
zhw2590582 Dec 22, 2019 1
强迫症告诉我 str 怎么不用 var 声明一下
|
 |
|
4
i0error Dec 23, 2019
啊原来帖子链接末尾的 reply+数字是这个作用......优秀的思路
|
 |
|
5
no1xsyzy Dec 23, 2019 1
Tampermonkey,请,甚至不需要手动每次点书签
另外,CSS 可以 a.topic-link:visited{color: #4d5256 !important;} 但与特殊版式互不兼容。
|