mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2025-12-31 17:40:25 +00:00
deploy: 0046f38f1085796ba7bc35a2e59af2a7d3c3a15b
This commit is contained in:
88
Assets/www-google-analytics-com_analytics.js
Normal file
88
Assets/www-google-analytics-com_analytics.js
Normal file
@@ -0,0 +1,88 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
// https://developers.google.com/analytics/devguides/collection/analyticsjs/
|
||||
const noopfn = function () {
|
||||
};
|
||||
//
|
||||
const Tracker = function () {
|
||||
};
|
||||
const p = Tracker.prototype;
|
||||
p.get = noopfn;
|
||||
p.set = noopfn;
|
||||
p.send = noopfn;
|
||||
//
|
||||
const w = window;
|
||||
const gaName = w.GoogleAnalyticsObject || 'ga';
|
||||
const gaQueue = w[gaName];
|
||||
const ga = function () {
|
||||
const len = arguments.length;
|
||||
if (len === 0) { return; }
|
||||
const args = Array.from(arguments);
|
||||
let fn;
|
||||
let a = args[len - 1];
|
||||
if (a instanceof Object && typeof a.hitCallback === 'function') {
|
||||
fn = a.hitCallback;
|
||||
} else if (a instanceof Function) {
|
||||
fn = () => { a(ga.create()); };
|
||||
} else {
|
||||
const pos = args.indexOf('hitCallback');
|
||||
if (pos !== -1 && typeof args[pos + 1] === 'function') {
|
||||
fn = args[pos + 1];
|
||||
}
|
||||
}
|
||||
if (typeof fn !== 'function') { return; }
|
||||
try {
|
||||
fn();
|
||||
} catch (ex) {
|
||||
}
|
||||
};
|
||||
ga.create = function () {
|
||||
return new Tracker();
|
||||
};
|
||||
ga.getByName = function () {
|
||||
return new Tracker();
|
||||
};
|
||||
ga.getAll = function () {
|
||||
return [new Tracker()];
|
||||
};
|
||||
ga.remove = noopfn;
|
||||
// https://github.com/uBlockOrigin/uAssets/issues/2107
|
||||
ga.loaded = true;
|
||||
w[gaName] = ga;
|
||||
// https://github.com/gorhill/uBlock/issues/3075
|
||||
const dl = w.dataLayer;
|
||||
if (dl instanceof Object) {
|
||||
if (dl.hide instanceof Object && typeof dl.hide.end === 'function') {
|
||||
dl.hide.end();
|
||||
dl.hide.end = () => { };
|
||||
}
|
||||
if (typeof dl.push === 'function') {
|
||||
const doCallback = function (item) {
|
||||
if (item instanceof Object === false) { return; }
|
||||
if (typeof item.eventCallback !== 'function') { return; }
|
||||
setTimeout(item.eventCallback, 1);
|
||||
item.eventCallback = () => { };
|
||||
};
|
||||
dl.push = new Proxy(dl.push, {
|
||||
apply: function (target, thisArg, args) {
|
||||
doCallback(args[0]);
|
||||
return Reflect.apply(target, thisArg, args);
|
||||
}
|
||||
});
|
||||
if (Array.isArray(dl)) {
|
||||
const q = dl.slice();
|
||||
for (const item of q) {
|
||||
doCallback(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// empty ga queue
|
||||
if (typeof gaQueue === 'function' && Array.isArray(gaQueue.q)) {
|
||||
const q = gaQueue.q.slice();
|
||||
gaQueue.q.length = 0;
|
||||
for (const entry of q) {
|
||||
ga(...entry);
|
||||
}
|
||||
}
|
||||
})();
|
||||
15
Assets/www-google-analytics-com_cx_api.js
Normal file
15
Assets/www-google-analytics-com_cx_api.js
Normal file
@@ -0,0 +1,15 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
const noopfn = function () {
|
||||
};
|
||||
window.cxApi = {
|
||||
chooseVariation: function () {
|
||||
return 0;
|
||||
},
|
||||
getChosenVariation: noopfn,
|
||||
setAllowHash: noopfn,
|
||||
setChosenVariation: noopfn,
|
||||
setCookiePath: noopfn,
|
||||
setDomainName: noopfn
|
||||
};
|
||||
})();
|
||||
107
Assets/www-google-analytics-com_ga.js
Normal file
107
Assets/www-google-analytics-com_ga.js
Normal file
@@ -0,0 +1,107 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
const noopfn = function () {
|
||||
};
|
||||
//
|
||||
const Gaq = function () {
|
||||
};
|
||||
Gaq.prototype.Na = noopfn;
|
||||
Gaq.prototype.O = noopfn;
|
||||
Gaq.prototype.Sa = noopfn;
|
||||
Gaq.prototype.Ta = noopfn;
|
||||
Gaq.prototype.Va = noopfn;
|
||||
Gaq.prototype._createAsyncTracker = noopfn;
|
||||
Gaq.prototype._getAsyncTracker = noopfn;
|
||||
Gaq.prototype._getPlugin = noopfn;
|
||||
Gaq.prototype.push = function (a) {
|
||||
if (typeof a === 'function') {
|
||||
a(); return;
|
||||
}
|
||||
if (Array.isArray(a) === false) { return; }
|
||||
// https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiDomainDirectory#_gat.GA_Tracker_._link
|
||||
if (
|
||||
typeof a[0] === 'string' &&
|
||||
/(^|\.)_link$/.test(a[0]) &&
|
||||
typeof a[1] === 'string'
|
||||
) {
|
||||
try {
|
||||
window.location.assign(a[1]);
|
||||
} catch (ex) {
|
||||
}
|
||||
}
|
||||
if (a[0] === '_set' && a[1] === 'hitCallback' && typeof a[2] === 'function') {
|
||||
a[2]();
|
||||
}
|
||||
};
|
||||
//
|
||||
const tracker = (function () {
|
||||
const out = {};
|
||||
const api = [
|
||||
'_addIgnoredOrganic _addIgnoredRef _addItem _addOrganic',
|
||||
'_addTrans _clearIgnoredOrganic _clearIgnoredRef _clearOrganic',
|
||||
'_cookiePathCopy _deleteCustomVar _getName _setAccount',
|
||||
'_getAccount _getClientInfo _getDetectFlash _getDetectTitle',
|
||||
'_getLinkerUrl _getLocalGifPath _getServiceMode _getVersion',
|
||||
'_getVisitorCustomVar _initData _linkByPost',
|
||||
'_setAllowAnchor _setAllowHash _setAllowLinker _setCampContentKey',
|
||||
'_setCampMediumKey _setCampNameKey _setCampNOKey _setCampSourceKey',
|
||||
'_setCampTermKey _setCampaignCookieTimeout _setCampaignTrack _setClientInfo',
|
||||
'_setCookiePath _setCookiePersistence _setCookieTimeout _setCustomVar',
|
||||
'_setDetectFlash _setDetectTitle _setDomainName _setLocalGifPath',
|
||||
'_setLocalRemoteServerMode _setLocalServerMode _setReferrerOverride _setRemoteServerMode',
|
||||
'_setSampleRate _setSessionTimeout _setSiteSpeedSampleRate _setSessionCookieTimeout',
|
||||
'_setVar _setVisitorCookieTimeout _trackEvent _trackPageLoadTime',
|
||||
'_trackPageview _trackSocial _trackTiming _trackTrans',
|
||||
'_visitCode'
|
||||
].join(' ').split(/\s+/);
|
||||
for (const method of api) {
|
||||
out[method] = noopfn;
|
||||
}
|
||||
out._getLinkerUrl = function (a) {
|
||||
return a;
|
||||
};
|
||||
// https://github.com/AdguardTeam/Scriptlets/issues/154
|
||||
out._link = function (a) {
|
||||
if (typeof a !== 'string') { return; }
|
||||
try {
|
||||
window.location.assign(a);
|
||||
} catch (ex) {
|
||||
}
|
||||
};
|
||||
return out;
|
||||
})();
|
||||
//
|
||||
const Gat = function () {
|
||||
};
|
||||
Gat.prototype._anonymizeIP = noopfn;
|
||||
Gat.prototype._createTracker = noopfn;
|
||||
Gat.prototype._forceSSL = noopfn;
|
||||
Gat.prototype._getPlugin = noopfn;
|
||||
Gat.prototype._getTracker = function () {
|
||||
return tracker;
|
||||
};
|
||||
Gat.prototype._getTrackerByName = function () {
|
||||
return tracker;
|
||||
};
|
||||
Gat.prototype._getTrackers = noopfn;
|
||||
Gat.prototype.aa = noopfn;
|
||||
Gat.prototype.ab = noopfn;
|
||||
Gat.prototype.hb = noopfn;
|
||||
Gat.prototype.la = noopfn;
|
||||
Gat.prototype.oa = noopfn;
|
||||
Gat.prototype.pa = noopfn;
|
||||
Gat.prototype.u = noopfn;
|
||||
const gat = new Gat();
|
||||
window._gat = gat;
|
||||
//
|
||||
const gaq = new Gaq();
|
||||
(function () {
|
||||
const aa = window._gaq || [];
|
||||
if (Array.isArray(aa)) {
|
||||
while (aa[0]) {
|
||||
gaq.push(aa.shift());
|
||||
}
|
||||
}
|
||||
})();
|
||||
window._gaq = gaq.qf = gaq;
|
||||
})();
|
||||
22
Assets/www-googletagmanager-com_gtm.js
Normal file
22
Assets/www-googletagmanager-com_gtm.js
Normal file
@@ -0,0 +1,22 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
const noopfn = function () {
|
||||
};
|
||||
const w = window;
|
||||
w.ga = w.ga || noopfn;
|
||||
const dl = w.dataLayer;
|
||||
if (dl instanceof Object === false) { return; }
|
||||
if (dl.hide instanceof Object && typeof dl.hide.end === 'function') {
|
||||
dl.hide.end();
|
||||
}
|
||||
if (typeof dl.push === 'function') {
|
||||
dl.push = function (o) {
|
||||
if (
|
||||
o instanceof Object &&
|
||||
typeof o.eventCallback === 'function'
|
||||
) {
|
||||
setTimeout(o.eventCallback, 1);
|
||||
}
|
||||
};
|
||||
}
|
||||
})();
|
||||
@@ -1,6 +1,6 @@
|
||||
########################################
|
||||
# Sukka's Surge Rules - Reject Base
|
||||
# Last Updated: 2022-12-08T14:07:01.155Z
|
||||
# Last Updated: 2022-12-08T15:51:36.739Z
|
||||
# Size: 109897
|
||||
# License: AGPL 3.0
|
||||
# Homepage: https://ruleset.skk.moe
|
||||
@@ -37431,6 +37431,7 @@
|
||||
.eventsteam.pro
|
||||
.eventstream.dodopizza.com
|
||||
.eventtracker.elitedaily.com
|
||||
.eventtracking.hubapi.com
|
||||
.eventtrick.com
|
||||
.eventuallybraid.com
|
||||
.eventwisparwil.ru
|
||||
@@ -39529,7 +39530,6 @@
|
||||
.fitcenterz.com
|
||||
.fitchedgiveth.com
|
||||
.fitfas.ru
|
||||
.fitgirl-repacks-site.org
|
||||
.fitnessalltime.com
|
||||
.fitnessdepotottawa.com
|
||||
.fitthings.info
|
||||
|
||||
12
Modules/sukka_enhance_adblock.sgmodule
Normal file
12
Modules/sukka_enhance_adblock.sgmodule
Normal file
@@ -0,0 +1,12 @@
|
||||
#!name=[Sukka] Enhance Better ADBlock for Surge
|
||||
#!desc=增强 ADBlock 效果、恢复网站正常功能
|
||||
# Use Build/build.js to generate the list
|
||||
|
||||
[MITM]
|
||||
hostname = %APPEND% *.google-analytics.com *.googletagmanager.com
|
||||
|
||||
[URL Rewrite]
|
||||
^.*\.google-analytics\.com/analytics\.js https://ruleset.skk.moe/Assets/www-google-analytics-com_analytics.js 302
|
||||
^.*\.google-analytics\.com/ga\.js https://ruleset.skk.moe/Assets/www-google-analytics-com_ga.js 302
|
||||
^.*\.googletagmanager\.com/gtm\.js https://ruleset.skk.moe/Assets/www-googletagmanager-com_gtm.js 302
|
||||
^.*\.google-analytics\.com/cx/api\.js https://ruleset.skk.moe/Assets/www-google-analytics-com_cx_api.js 302
|
||||
@@ -24,11 +24,11 @@
|
||||
<main class="container">
|
||||
<h1>Sukka Surge Ruleset Server</h1>
|
||||
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
|
||||
<p>Last Build: 2022-12-08T14:07:01.382Z</p>
|
||||
<p>Last Build: 2022-12-08T15:51:37.104Z</p>
|
||||
<hr>
|
||||
<br>
|
||||
<ul>
|
||||
<li><a href="List/domainset/apple_cdn.conf" target="_blank">List/domainset/apple_cdn.conf</a></li><li><a href="List/domainset/cdn.conf" target="_blank">List/domainset/cdn.conf</a></li><li><a href="List/domainset/download.conf" target="_blank">List/domainset/download.conf</a></li><li><a href="List/domainset/icloud_private_relay.conf" target="_blank">List/domainset/icloud_private_relay.conf</a></li><li><a href="List/domainset/my_proxy.conf" target="_blank">List/domainset/my_proxy.conf</a></li><li><a href="List/domainset/reject.conf" target="_blank">List/domainset/reject.conf</a></li><li><a href="List/domainset/reject_phishing.conf" target="_blank">List/domainset/reject_phishing.conf</a></li><li><a href="List/domainset/reject_sukka.conf" target="_blank">List/domainset/reject_sukka.conf</a></li><li><a href="List/ip/apple_services.conf" target="_blank">List/ip/apple_services.conf</a></li><li><a href="List/ip/china_ip.conf" target="_blank">List/ip/china_ip.conf</a></li><li><a href="List/ip/domestic.conf" target="_blank">List/ip/domestic.conf</a></li><li><a href="List/ip/download.conf" target="_blank">List/ip/download.conf</a></li><li><a href="List/ip/neteasemusic.conf" target="_blank">List/ip/neteasemusic.conf</a></li><li><a href="List/ip/reject.conf" target="_blank">List/ip/reject.conf</a></li><li><a href="List/ip/stream.conf" target="_blank">List/ip/stream.conf</a></li><li><a href="List/ip/telegram.conf" target="_blank">List/ip/telegram.conf</a></li><li><a href="List/non_ip/apple_cdn.conf" target="_blank">List/non_ip/apple_cdn.conf</a></li><li><a href="List/non_ip/apple_services.conf" target="_blank">List/non_ip/apple_services.conf</a></li><li><a href="List/non_ip/cdn.conf" target="_blank">List/non_ip/cdn.conf</a></li><li><a href="List/non_ip/direct.conf" target="_blank">List/non_ip/direct.conf</a></li><li><a href="List/non_ip/domestic.conf" target="_blank">List/non_ip/domestic.conf</a></li><li><a href="List/non_ip/global.conf" target="_blank">List/non_ip/global.conf</a></li><li><a href="List/non_ip/global_plus.conf" target="_blank">List/non_ip/global_plus.conf</a></li><li><a href="List/non_ip/my_direct.conf" target="_blank">List/non_ip/my_direct.conf</a></li><li><a href="List/non_ip/my_proxy.conf" target="_blank">List/non_ip/my_proxy.conf</a></li><li><a href="List/non_ip/my_reject.conf" target="_blank">List/non_ip/my_reject.conf</a></li><li><a href="List/non_ip/neteasemusic.conf" target="_blank">List/non_ip/neteasemusic.conf</a></li><li><a href="List/non_ip/reject.conf" target="_blank">List/non_ip/reject.conf</a></li><li><a href="List/non_ip/sogouinput.conf" target="_blank">List/non_ip/sogouinput.conf</a></li><li><a href="List/non_ip/stream.conf" target="_blank">List/non_ip/stream.conf</a></li><li><a href="List/non_ip/telegram.conf" target="_blank">List/non_ip/telegram.conf</a></li><li><a href="Modules/Game_Console_SNAT.sgmodule" target="_blank">Modules/Game_Console_SNAT.sgmodule</a></li><li><a href="Modules/google_cn_307.sgmodule" target="_blank">Modules/google_cn_307.sgmodule</a></li><li><a href="Modules/ios_hide_vpn_icon.sgmodule" target="_blank">Modules/ios_hide_vpn_icon.sgmodule</a></li><li><a href="Modules/rixCloud_local_dns_mapping.sgmodule" target="_blank">Modules/rixCloud_local_dns_mapping.sgmodule</a></li><li><a href="Modules/sukka_common_always_realip.sgmodule" target="_blank">Modules/sukka_common_always_realip.sgmodule</a></li><li><a href="Modules/sukka_exclude_reservered_ip.sgmodule" target="_blank">Modules/sukka_exclude_reservered_ip.sgmodule</a></li><li><a href="Modules/sukka_fix_network_alert.sgmodule" target="_blank">Modules/sukka_fix_network_alert.sgmodule</a></li><li><a href="Modules/sukka_mitm_all_hostnames.sgmodule" target="_blank">Modules/sukka_mitm_all_hostnames.sgmodule</a></li><li><a href="Modules/sukka_mitm_hostnames.sgmodule" target="_blank">Modules/sukka_mitm_hostnames.sgmodule</a></li><li><a href="Modules/sukka_surge_network_test_domain.sgmodule" target="_blank">Modules/sukka_surge_network_test_domain.sgmodule</a></li><li><a href="Modules/sukka_unlock_abema.sgmodule" target="_blank">Modules/sukka_unlock_abema.sgmodule</a></li><li><a href="Modules/sukka_unlock_emby.sgmodule" target="_blank">Modules/sukka_unlock_emby.sgmodule</a></li><li><a href="Modules/sukka_url_rewrite.sgmodule" target="_blank">Modules/sukka_url_rewrite.sgmodule</a></li>
|
||||
<li><a href="List/domainset/apple_cdn.conf" target="_blank">List/domainset/apple_cdn.conf</a></li><li><a href="List/domainset/cdn.conf" target="_blank">List/domainset/cdn.conf</a></li><li><a href="List/domainset/download.conf" target="_blank">List/domainset/download.conf</a></li><li><a href="List/domainset/icloud_private_relay.conf" target="_blank">List/domainset/icloud_private_relay.conf</a></li><li><a href="List/domainset/my_proxy.conf" target="_blank">List/domainset/my_proxy.conf</a></li><li><a href="List/domainset/reject.conf" target="_blank">List/domainset/reject.conf</a></li><li><a href="List/domainset/reject_phishing.conf" target="_blank">List/domainset/reject_phishing.conf</a></li><li><a href="List/domainset/reject_sukka.conf" target="_blank">List/domainset/reject_sukka.conf</a></li><li><a href="List/ip/apple_services.conf" target="_blank">List/ip/apple_services.conf</a></li><li><a href="List/ip/china_ip.conf" target="_blank">List/ip/china_ip.conf</a></li><li><a href="List/ip/domestic.conf" target="_blank">List/ip/domestic.conf</a></li><li><a href="List/ip/download.conf" target="_blank">List/ip/download.conf</a></li><li><a href="List/ip/neteasemusic.conf" target="_blank">List/ip/neteasemusic.conf</a></li><li><a href="List/ip/reject.conf" target="_blank">List/ip/reject.conf</a></li><li><a href="List/ip/stream.conf" target="_blank">List/ip/stream.conf</a></li><li><a href="List/ip/telegram.conf" target="_blank">List/ip/telegram.conf</a></li><li><a href="List/non_ip/apple_cdn.conf" target="_blank">List/non_ip/apple_cdn.conf</a></li><li><a href="List/non_ip/apple_services.conf" target="_blank">List/non_ip/apple_services.conf</a></li><li><a href="List/non_ip/cdn.conf" target="_blank">List/non_ip/cdn.conf</a></li><li><a href="List/non_ip/direct.conf" target="_blank">List/non_ip/direct.conf</a></li><li><a href="List/non_ip/domestic.conf" target="_blank">List/non_ip/domestic.conf</a></li><li><a href="List/non_ip/global.conf" target="_blank">List/non_ip/global.conf</a></li><li><a href="List/non_ip/global_plus.conf" target="_blank">List/non_ip/global_plus.conf</a></li><li><a href="List/non_ip/my_direct.conf" target="_blank">List/non_ip/my_direct.conf</a></li><li><a href="List/non_ip/my_proxy.conf" target="_blank">List/non_ip/my_proxy.conf</a></li><li><a href="List/non_ip/my_reject.conf" target="_blank">List/non_ip/my_reject.conf</a></li><li><a href="List/non_ip/neteasemusic.conf" target="_blank">List/non_ip/neteasemusic.conf</a></li><li><a href="List/non_ip/reject.conf" target="_blank">List/non_ip/reject.conf</a></li><li><a href="List/non_ip/sogouinput.conf" target="_blank">List/non_ip/sogouinput.conf</a></li><li><a href="List/non_ip/stream.conf" target="_blank">List/non_ip/stream.conf</a></li><li><a href="List/non_ip/telegram.conf" target="_blank">List/non_ip/telegram.conf</a></li><li><a href="Modules/Game_Console_SNAT.sgmodule" target="_blank">Modules/Game_Console_SNAT.sgmodule</a></li><li><a href="Modules/google_cn_307.sgmodule" target="_blank">Modules/google_cn_307.sgmodule</a></li><li><a href="Modules/ios_hide_vpn_icon.sgmodule" target="_blank">Modules/ios_hide_vpn_icon.sgmodule</a></li><li><a href="Modules/rixCloud_local_dns_mapping.sgmodule" target="_blank">Modules/rixCloud_local_dns_mapping.sgmodule</a></li><li><a href="Modules/sukka_common_always_realip.sgmodule" target="_blank">Modules/sukka_common_always_realip.sgmodule</a></li><li><a href="Modules/sukka_enhance_adblock.sgmodule" target="_blank">Modules/sukka_enhance_adblock.sgmodule</a></li><li><a href="Modules/sukka_exclude_reservered_ip.sgmodule" target="_blank">Modules/sukka_exclude_reservered_ip.sgmodule</a></li><li><a href="Modules/sukka_fix_network_alert.sgmodule" target="_blank">Modules/sukka_fix_network_alert.sgmodule</a></li><li><a href="Modules/sukka_mitm_all_hostnames.sgmodule" target="_blank">Modules/sukka_mitm_all_hostnames.sgmodule</a></li><li><a href="Modules/sukka_mitm_hostnames.sgmodule" target="_blank">Modules/sukka_mitm_hostnames.sgmodule</a></li><li><a href="Modules/sukka_surge_network_test_domain.sgmodule" target="_blank">Modules/sukka_surge_network_test_domain.sgmodule</a></li><li><a href="Modules/sukka_unlock_abema.sgmodule" target="_blank">Modules/sukka_unlock_abema.sgmodule</a></li><li><a href="Modules/sukka_unlock_emby.sgmodule" target="_blank">Modules/sukka_unlock_emby.sgmodule</a></li><li><a href="Modules/sukka_url_rewrite.sgmodule" target="_blank">Modules/sukka_url_rewrite.sgmodule</a></li>
|
||||
</ul>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user