Skip to content

Commit 31b514d

Browse files
authored
fix #19 zhihu_link_fix max_times++
1 parent 384fe17 commit 31b514d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zhihu_link_fix/zhihu_link_fix.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
// @include *.zhihu.com/*
2020

2121
// @date 06/10/2016
22-
// @modified 02/15/2017
23-
// @version 1.3.1.6
22+
// @modified 05/22/2019
23+
// @version 1.3.2.7
2424
// ==/UserScript==
2525

2626

@@ -32,7 +32,7 @@ if(location.host==='link.zhihu.com') {
3232
else
3333
window.addEventListener('click', function(e){
3434
let dom = e.target,
35-
max_times = 3;
35+
max_times = 5;
3636
while(dom && max_times--) {
3737
if(dom.nodeName.toUpperCase()==='A') {
3838
let regRet = dom.search.match(/target=(.+?)(&|$)/);

0 commit comments

Comments
 (0)