This commit is contained in:
2025-08-20 17:08:17 +09:00
parent f7f71ca195
commit 2f63f8550a
14 changed files with 686 additions and 393 deletions
@@ -253,9 +253,16 @@ document.addEventListener('DOMContentLoaded', function () {
if (port) {
sendMessage({type: "MSG", msg: "connect prot"});
time1 = setTimeout(autoScrollAndSave(false), 3500)
}
})
document.addEventListener('touchstart', function(e) {
console.log('터치 시작');
});
document.addEventListener('touchend', function(e) {
autoScrollAndSave()
});
function scrollToLazyImg(fastMode) {
(function(autoScrollAndSave){
@@ -346,12 +353,16 @@ function isNewerThanOneDay(dateStr) {
function autoScrollAndSave(senContents) {
// 도메인에 맞는 handler 실행
const matchedRule = domainRules.find(rule => rule.test(location.href));
if (matchedRule) {
matchedRule.handler();
}
try {
if (matchedRule) {
matchedRule.handler();
}
}catch (e) { }
try {
// 공통 광고 요소 제거는 항상 실행
handleCommon();
window.scrollTo({ top: 2, behavior: 'smooth' });
}catch (e) { }
if (mainContentsEl == null) {
mainContentsEl = document.body.outerHTML
}
@@ -545,7 +556,11 @@ function handleCommon() {
gotoNext()
}
window.scrollTo({ top: 2, behavior: 'smooth' });
if (window.scrollY < 5) {
console.log("window.scrollY >>> " + window.scrollY)
window.scrollTo({ top: 5, behavior: 'smooth' });
}
}
function handleToreentZota() {
if (location.href.search("torrentzota") > -1 && document.querySelectorAll('a')) {
@@ -759,13 +774,26 @@ function handleDoctorsnews() {
}
function handleDcinside() {
document.querySelectorAll(
'[id^="view_btn_area"], [class^="trend-rank"], [class^="view-btm-con"], [class^="md-tit-box"], [class^="gall-detail-lst"], [class^="outside-search-box"], [class^="footer ftlong"], [class^="adv-group"], li[style^="cursor:default;"], [id^="div_adnmore_area"]'
).forEach(e => e.remove());
document.querySelectorAll('div[class^="imgwrap"]').forEach(function (e) {
try {e.style.backgroundColor = 'red';} catch (e) {}
})
try {
document.querySelectorAll(
'[id^="view_btn_area"], [class^="trend-rank"], [class^="view-btm-con"], [class^="md-tit-box"], [class^="gall-detail-lst"], [class^="outside-search-box"], [class^="footer ftlong"], [class^="adv-group"], li[style^="cursor:default;"], [id^="div_adnmore_area"]'
).forEach(e => e.remove());
}catch (e) {
}
try {
document.querySelectorAll('div[class^="imgwrap"]').forEach(function (e) {
try {e.style.backgroundColor = 'red';} catch (e) {}
})
} catch (e) {
}
try {
document.querySelectorAll('div[class^="imgwrap"]')[0].click()
}catch (e) {
}
mainContentsEl = document.querySelector('div[class="container"]');
}