mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2025-12-31 09:30:25 +00:00
deploy: 16ecf378a6
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
! Title: Sukka's Ruleset - Blocklist for AdGuardHome
|
||||
! Last modified: Fri, 03 Jan 2025 19:34:55 GMT
|
||||
! Last modified: Fri, 03 Jan 2025 19:39:29 GMT
|
||||
! Expires: 6 hours
|
||||
! License: https://github.com/SukkaW/Surge/blob/master/LICENSE
|
||||
! Homepage: https://github.com/SukkaW/Surge
|
||||
|
||||
@@ -27,17 +27,17 @@
|
||||
}
|
||||
try {
|
||||
var trace = console.trace.bind(console);
|
||||
var label = "".concat(ADGUARD_PREFIX, " ");
|
||||
var label = `${ADGUARD_PREFIX} `;
|
||||
if (source.engine === "corelibs") {
|
||||
label += source.ruleText;
|
||||
} else {
|
||||
if (source.domainName) {
|
||||
label += "".concat(source.domainName);
|
||||
label += `${source.domainName}`;
|
||||
}
|
||||
if (source.args) {
|
||||
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
|
||||
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
|
||||
} else {
|
||||
label += "#%#//scriptlet('".concat(source.name, "')");
|
||||
label += `#%#//scriptlet('${source.name}')`;
|
||||
}
|
||||
}
|
||||
if (trace) {
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
queue.push = push;
|
||||
queue.forEach(push);
|
||||
}
|
||||
var _window = window, dataLayer = _window.dataLayer, google_optimize = _window.google_optimize;
|
||||
var {dataLayer: dataLayer, google_optimize: google_optimize} = window;
|
||||
if (dataLayer instanceof Object === false) {
|
||||
return;
|
||||
}
|
||||
@@ -98,17 +98,17 @@
|
||||
}
|
||||
try {
|
||||
var trace = console.trace.bind(console);
|
||||
var label = "".concat(ADGUARD_PREFIX, " ");
|
||||
var label = `${ADGUARD_PREFIX} `;
|
||||
if (source.engine === "corelibs") {
|
||||
label += source.ruleText;
|
||||
} else {
|
||||
if (source.domainName) {
|
||||
label += "".concat(source.domainName);
|
||||
label += `${source.domainName}`;
|
||||
}
|
||||
if (source.args) {
|
||||
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
|
||||
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
|
||||
} else {
|
||||
label += "#%#//scriptlet('".concat(source.name, "')");
|
||||
label += `#%#//scriptlet('${source.name}')`;
|
||||
}
|
||||
}
|
||||
if (trace) {
|
||||
|
||||
@@ -87,17 +87,17 @@
|
||||
}
|
||||
try {
|
||||
var trace = console.trace.bind(console);
|
||||
var label = "".concat(ADGUARD_PREFIX, " ");
|
||||
var label = `${ADGUARD_PREFIX} `;
|
||||
if (source.engine === "corelibs") {
|
||||
label += source.ruleText;
|
||||
} else {
|
||||
if (source.domainName) {
|
||||
label += "".concat(source.domainName);
|
||||
label += `${source.domainName}`;
|
||||
}
|
||||
if (source.args) {
|
||||
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
|
||||
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
|
||||
} else {
|
||||
label += "#%#//scriptlet('".concat(source.name, "')");
|
||||
label += `#%#//scriptlet('${source.name}')`;
|
||||
}
|
||||
}
|
||||
if (trace) {
|
||||
@@ -112,16 +112,16 @@
|
||||
function logMessage(source, message) {
|
||||
var forced = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
||||
var convertMessageToString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
||||
var name = source.name, verbose = source.verbose;
|
||||
var {name: name, verbose: verbose} = source;
|
||||
if (!forced && !verbose) {
|
||||
return;
|
||||
}
|
||||
var nativeConsole = console.log;
|
||||
if (!convertMessageToString) {
|
||||
nativeConsole("".concat(name, ":"), message);
|
||||
nativeConsole(`${name}:`, message);
|
||||
return;
|
||||
}
|
||||
nativeConsole("".concat(name, ": ").concat(message));
|
||||
nativeConsole(`${name}: ${message}`);
|
||||
}
|
||||
const updatedArgs = args ? [].concat(source).concat(args) : [ source ];
|
||||
try {
|
||||
|
||||
@@ -42,13 +42,13 @@
|
||||
if (!areIframesDefined) {
|
||||
adElems[i].setAttribute(statusAttrName, "done");
|
||||
var aswiftIframe = document.createElement("iframe");
|
||||
aswiftIframe.id = "".concat(ASWIFT_IFRAME_MARKER).concat(i);
|
||||
aswiftIframe.id = `${ASWIFT_IFRAME_MARKER}${i}`;
|
||||
aswiftIframe.style = css;
|
||||
adElems[i].appendChild(aswiftIframe);
|
||||
var innerAswiftIframe = document.createElement("iframe");
|
||||
aswiftIframe.contentWindow.document.body.appendChild(innerAswiftIframe);
|
||||
var googleadsIframe = document.createElement("iframe");
|
||||
googleadsIframe.id = "".concat(GOOGLE_ADS_IFRAME_MARKER).concat(i);
|
||||
googleadsIframe.id = `${GOOGLE_ADS_IFRAME_MARKER}${i}`;
|
||||
googleadsIframe.style = css;
|
||||
adElems[i].appendChild(googleadsIframe);
|
||||
var innerGoogleadsIframe = document.createElement("iframe");
|
||||
@@ -67,17 +67,17 @@
|
||||
}
|
||||
try {
|
||||
var trace = console.trace.bind(console);
|
||||
var label = "".concat(ADGUARD_PREFIX, " ");
|
||||
var label = `${ADGUARD_PREFIX} `;
|
||||
if (source.engine === "corelibs") {
|
||||
label += source.ruleText;
|
||||
} else {
|
||||
if (source.domainName) {
|
||||
label += "".concat(source.domainName);
|
||||
label += `${source.domainName}`;
|
||||
}
|
||||
if (source.args) {
|
||||
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
|
||||
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
|
||||
} else {
|
||||
label += "#%#//scriptlet('".concat(source.name, "')");
|
||||
label += `#%#//scriptlet('${source.name}')`;
|
||||
}
|
||||
}
|
||||
if (trace) {
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
};
|
||||
var recreateIframeForSlot = function recreateIframeForSlot(slot) {
|
||||
var _document$getElementB;
|
||||
var eid = "google_ads_iframe_".concat(slot.getId());
|
||||
(_document$getElementB = document.getElementById(eid)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.remove();
|
||||
var eid = `google_ads_iframe_${slot.getId()}`;
|
||||
(_document$getElementB = document.getElementById(eid)) === null || _document$getElementB === void 0 || _document$getElementB.remove();
|
||||
var node = document.getElementById(slot.getSlotElementId());
|
||||
if (node) {
|
||||
var f = document.createElement("iframe");
|
||||
@@ -131,7 +131,7 @@
|
||||
var defineSlot = function defineSlot(adUnitPath, creatives, optDiv) {
|
||||
if (slotsById.has(optDiv)) {
|
||||
var _document$getElementB2;
|
||||
(_document$getElementB2 = document.getElementById(optDiv)) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.remove();
|
||||
(_document$getElementB2 = document.getElementById(optDiv)) === null || _document$getElementB2 === void 0 || _document$getElementB2.remove();
|
||||
return slotsById.get(optDiv);
|
||||
}
|
||||
var attributes = new Map;
|
||||
@@ -154,7 +154,7 @@
|
||||
} ];
|
||||
var num = (slotsPerPath.get(adUnitPath) || 0) + 1;
|
||||
slotsPerPath.set(adUnitPath, num);
|
||||
var id = "".concat(adUnitPath, "_").concat(num);
|
||||
var id = `${adUnitPath}_${num}`;
|
||||
var clickUrl = "";
|
||||
var collapseEmptyDiv = null;
|
||||
var services = new Set;
|
||||
@@ -328,8 +328,8 @@
|
||||
setVideoContent: noopThis,
|
||||
updateCorrelator: noopFunc
|
||||
};
|
||||
var _window = window, _window$googletag = _window.googletag, googletag = _window$googletag === void 0 ? {} : _window$googletag;
|
||||
var _googletag$cmd = googletag.cmd, cmd = _googletag$cmd === void 0 ? [] : _googletag$cmd;
|
||||
var {googletag: googletag = {}} = window;
|
||||
var {cmd: cmd = []} = googletag;
|
||||
googletag.apiReady = true;
|
||||
googletag.cmd = [];
|
||||
googletag.cmd.push = function(a) {
|
||||
@@ -385,17 +385,17 @@
|
||||
}
|
||||
try {
|
||||
var trace = console.trace.bind(console);
|
||||
var label = "".concat(ADGUARD_PREFIX, " ");
|
||||
var label = `${ADGUARD_PREFIX} `;
|
||||
if (source.engine === "corelibs") {
|
||||
label += source.ruleText;
|
||||
} else {
|
||||
if (source.domainName) {
|
||||
label += "".concat(source.domainName);
|
||||
label += `${source.domainName}`;
|
||||
}
|
||||
if (source.args) {
|
||||
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
|
||||
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
|
||||
} else {
|
||||
label += "#%#//scriptlet('".concat(source.name, "')");
|
||||
label += `#%#//scriptlet('${source.name}')`;
|
||||
}
|
||||
}
|
||||
if (trace) {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<p>
|
||||
Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="/LICENSE" target="_blank">AGPL-3.0</a>
|
||||
</p>
|
||||
<p>Last Build: 2025-01-03T19:34:56.027Z</p>
|
||||
<p>Last Build: 2025-01-03T19:39:30.012Z</p>
|
||||
<br>
|
||||
<ul class="directory-list">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user