Skip to content

Commit 9a93e46

Browse files
committed
优化 [RARBG]、[百度贴吧 - 帖子内] 规则
1 parent cc5d19d commit 9a93e46

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

other/Autopage/rules.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@
331331
"百度贴吧 - 帖子内": {
332332
"host": ["tieba.baidu.com","jump2.bdimg.com"],
333333
"url": "if (location.hostname == 'jump2.bdimg.com') location.hostname = 'tieba.baidu.com'; return (fun.indexOF('/p/')) ",
334-
"blank": 1,
335334
"iframe": true,
336335
"thread": true,
337336
"style": ".d_sign_split, img.j_user_sign, .d_author .d_pb_icons, .save_face_bg, .save_face_bg_2, li.d_name a.icon_tbworld, .lzl_cnt a.icon_tbworld, .topic_list_box.topic-fixed {display: none !important;} a.p_author_face.j_frame_guide {background: none repeat scroll 0 0 #FFF !important;border: 1px solid #CCC !important;padding: inherit !important;} .red_text, .red-text, .vip_red, .vip-red, .vip_red:hover, .vip-red:hover, .vip_red:visited, .vip-red:visited {color: #2d64b3 !important;}",
@@ -2506,12 +2505,15 @@
25062505
},
25072506
"RARBG": {
25082507
"host": "/rarbg/",
2509-
"url": "return (document.title.indexOf('RARBG') > -1 && fun.lp() == '/torrents.php')",
2508+
"url": "if(document.title.indexOf('RARBG') > -1 && fun.lp() == '/torrents.php'){fun.getAllCSS('table.lista2t tr.lista2 td>a[onmouseover]').forEach((now)=>{now.parentElement.setAttribute('onmouseover', now.getAttribute('onmouseover')); now.removeAttribute('onmouseover');now.parentElement.setAttribute('onmouseout', now.getAttribute('onmouseout')); now.removeAttribute('onmouseout');}); return true}",
25102509
"blank": 3,
25112510
"pager": {
25122511
"nextL": "#pager_links>a[title='next page']",
25132512
"pageE": "table.lista2t tr.lista2",
25142513
"replaceE": "#pager_links"
2514+
},
2515+
"function": {
2516+
"bF": "pageE.forEach((one)=>{let now=fun.getCSS('td>a[onmouseover]',one);now.parentElement.setAttribute('onmouseover', now.getAttribute('onmouseover')); now.removeAttribute('onmouseover');now.parentElement.setAttribute('onmouseout', now.getAttribute('onmouseout')); now.removeAttribute('onmouseout');});return pageE"
25152517
}
25162518
},
25172519
"Zooqle": {

0 commit comments

Comments
 (0)