Skip to content

Commit 2fd65ce

Browse files
committed
修复 [清理帖子标题〖XXX〗【XXX】文字] 功能漏掉一些没有带冒号的标题
1 parent f1faf6d commit 2fd65ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Zhiyoo-Enhanced.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 智友邦论坛增强
3-
// @version 1.1.1
3+
// @version 1.1.2
44
// @author X.I.U
55
// @description 自动签到、自动回复、自动无缝翻页、清理置顶帖子、清理帖子标题〖XXX〗【XXX】文字
66
// @icon http://bbs.zhiyoo.net/favicon.ico
@@ -109,7 +109,7 @@
109109
};
110110

111111
var patt_thread = /\/thread-\d+-\d+\-\d+.html/, // 匹配 /thread-XXX-X-X.html 帖子正则表达式
112-
patt_posttitle = /^.+|^.+/; // 匹配帖子标题中的〖XXX〗【XXX】正则表达式
112+
patt_posttitle = /^.+()?|^.+()?/; // 匹配帖子标题中的〖XXX〗【XXX】正则表达式
113113

114114
if (location.pathname === '/plugin.php'){
115115
switch(getQueryVariable("id"))

0 commit comments

Comments
 (0)