Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
limbopro committed Apr 24, 2022
1 parent d1e6007 commit 85bbb14
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Adguard/Adblock4limbo.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ function adsDomain_switch(x) { // 匹配参数值 执行相应函数
window.onload = addListener("a[class*='css-'],button[class='Button ContentItem-action Button--plain Button--withIcon Button--withLabel']", () => { href_attributeSet(500, zhihu_id) });
// 循环判定整个页面 scrollHeight 是否变化
var body_scrollHeightCheck = setInterval(() => {
var body_then = document.body.scrollHeight;
var body_scrollHeight_then = document.body.scrollHeight;
setTimeout(() => {
var body_now = document.body.scrollHeight;
if (body_now > body_then) {
var body_scrollHeight_now = document.body.scrollHeight;
if (body_scrollHeight_now > body_scrollHeight_then) {
href_attributeSet(500, zhihu_id);
}
}, 500);
Expand All @@ -195,10 +195,10 @@ function adsDomain_switch(x) { // 匹配参数值 执行相应函数
var comment_scrollHeightCheck = setInterval(() => {
let comment = document.querySelectorAll("div.CommentListV2");
if (comment.length > 0) {
var comment_then = comment[0].scrollHeight;
var comment_scrollHeight_then = comment[0].scrollHeight;
setTimeout(() => {
var comment_now = comment[0].scrollHeight;
if (comment_now > comment_then) {
var comment_scrollHeight_now = comment[0].scrollHeight;
if (comment_scrollHeight_now > comment_scrollHeight_then) {
href_attributeSet(500, zhihu_id);
}
}, 500)
Expand Down
2 changes: 1 addition & 1 deletion Adguard/contentFarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Written by limbopro
https://limbopro.com/archives/block-contentfarm.html
https://t.me/Adblock4limbo
There are 4618 content farm domains in total until now.
Last updated at 24/4月/2022/12:25
Last updated at 24/4月/2022/12:28
*/


Expand Down
2 changes: 1 addition & 1 deletion Adguard/contentFarm/contentFarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Written by limbopro
https://limbopro.com/archives/block-contentfarm.html
https://t.me/Adblock4limbo
There are 4618 content farm domains in total until now.
Last updated at 24/4月/2022/12:25
Last updated at 24/4月/2022/12:28
*/


Expand Down

0 comments on commit 85bbb14

Please sign in to comment.