This commit is contained in:
2025-08-18 18:24:19 +09:00
parent 44ac92ca17
commit b34750099e
5 changed files with 290 additions and 15 deletions
@@ -385,10 +385,20 @@ const domainRules = [
{ test: url => url.includes("torrentzota"), handler: handleToreentZota},
{ test: url => url.includes("acrofan.com") && document.querySelectorAll('[id^="wide"]').length > 0, handler: handleAcrofan },
{ test: url => url.includes("yna.co.kr") && document.querySelectorAll('[class^="wrapper"]').length > 0, handler: handleYna },
{ test: url => url.includes("yt1d.com/"), handler: ytDown },
{ test: url => url.includes("clien") && document.querySelectorAll('[class^="content_view"]').length > 0, handler: handleClien },
{ test: url => url.includes("toki") && (document.querySelectorAll('[id^="id_mbv"]').length > 0 || document.querySelectorAll('[class^="basic-banner"]').length > 0), handler: handleToki },
];
function ytDown() {
navigator.clipboard.readText().then(function(text) {
document.querySelector("#txt-url").value = text;
}).catch(function(err) {
alert('클립보드 읽기에 실패했습니다: ' + err);
});
}
function handleCommon() {
// 공통 광고 제거
if (document.querySelector(".top_google_ad_space")) document.querySelector(".top_google_ad_space").remove();
@@ -752,6 +762,10 @@ 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) {}
})
mainContentsEl = document.querySelector('div[class="container"]');
}