Skip to content

Commit

Permalink
AG-37145 revert dist
Browse files Browse the repository at this point in the history
  • Loading branch information
maximtop committed Nov 12, 2024
1 parent 8f735a6 commit 4c90576
Show file tree
Hide file tree
Showing 33 changed files with 136,478 additions and 727 deletions.
2 changes: 1 addition & 1 deletion dist/build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=2.0.0
version=1.12.1
8 changes: 4 additions & 4 deletions dist/redirect-files/amazon-apstag.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand Down
8 changes: 4 additions & 4 deletions dist/redirect-files/ati-smarttag.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand Down
2 changes: 1 addition & 1 deletion dist/redirect-files/click2load.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
if (originUrl.substring(questionMarkIndex).length === 1) {
divider = '';
}
return `${originUrl}${divider}${unblockTokenName}${SEARCH_PARAMS_DIVIDER}${unblockTokenValue}`;
return "".concat(originUrl).concat(divider).concat(unblockTokenName).concat(SEARCH_PARAMS_DIVIDER).concat(unblockTokenValue);
};
var extRun = function extRun() {
var replaceUrl = getReplaceUrl(originUrl, EXT_UNBLOCK_PARAM, extUnblockToken);
Expand Down
8 changes: 4 additions & 4 deletions dist/redirect-files/didomi-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand Down
8 changes: 4 additions & 4 deletions dist/redirect-files/fingerprintjs2.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand Down
8 changes: 4 additions & 4 deletions dist/redirect-files/fingerprintjs3.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand Down
8 changes: 4 additions & 4 deletions dist/redirect-files/gemius.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand Down
14 changes: 7 additions & 7 deletions dist/redirect-files/google-analytics-ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand All @@ -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: name, verbose: verbose} = source;
var name = source.name, verbose = source.verbose;
if (!forced && !verbose) {
return;
}
var nativeConsole = console.log;
if (!convertMessageToString) {
nativeConsole(`${name}:`, message);
nativeConsole("".concat(name, ":"), message);
return;
}
nativeConsole(`${name}: ${message}`);
nativeConsole("".concat(name, ": ").concat(message));
}
const updatedArgs = args ? [].concat(source).concat(args) : [ source ];
try {
Expand Down
10 changes: 5 additions & 5 deletions dist/redirect-files/google-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
queue.push = push;
queue.forEach(push);
}
var {dataLayer: dataLayer, google_optimize: google_optimize} = window;
var _window = window, dataLayer = _window.dataLayer, google_optimize = _window.google_optimize;
if (dataLayer instanceof Object === false) {
return;
}
Expand Down Expand Up @@ -98,17 +98,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand Down
24 changes: 12 additions & 12 deletions dist/redirect-files/google-ima3.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
for (var i = 0; i < types.length; i += 1) {
var _this$listeners$get;
var type = types[i];
(_this$listeners$get = this.listeners.get(type)) === null || _this$listeners$get === void 0 || _this$listeners$get.delete(callback);
(_this$listeners$get = this.listeners.get(type)) === null || _this$listeners$get === void 0 ? void 0 : _this$listeners$get.delete(callback);
}
};
};
Expand Down Expand Up @@ -247,7 +247,7 @@
AdsLoader.prototype.requestAds = function(adsRequest, userRequestContext) {
var _this = this;
requestAnimationFrame((function() {
var {ADS_MANAGER_LOADED: ADS_MANAGER_LOADED} = AdsManagerLoadedEvent.Type;
var ADS_MANAGER_LOADED = AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED;
var event = new ima.AdsManagerLoadedEvent(ADS_MANAGER_LOADED, adsRequest, userRequestContext);
_this._dispatch(event);
}));
Expand Down Expand Up @@ -428,17 +428,17 @@
return this.vastErrorCode;
};
this.toString = function() {
return `AdError ${this.errorCode}: ${this.message}`;
return "AdError ".concat(this.errorCode, ": ").concat(this.message);
};
};
AdError.ErrorCode = {};
AdError.Type = {};
var isEngadget = function isEngadget() {
try {
for (var _i3 = 0, _Object$values = Object.values(window.vidible._getContexts()); _i3 < _Object$values.length; _i3++) {
var _ctx$getPlayer;
var _ctx$getPlayer, _ctx$getPlayer$div;
var ctx = _Object$values[_i3];
if ((_ctx$getPlayer = ctx.getPlayer()) !== null && _ctx$getPlayer !== void 0 && (_ctx$getPlayer = _ctx$getPlayer.div) !== null && _ctx$getPlayer !== void 0 && _ctx$getPlayer.innerHTML.includes("www.engadget.com")) {
if ((_ctx$getPlayer = ctx.getPlayer()) !== null && _ctx$getPlayer !== void 0 && (_ctx$getPlayer$div = _ctx$getPlayer.div) !== null && _ctx$getPlayer$div !== void 0 && _ctx$getPlayer$div.innerHTML.includes("www.engadget.com")) {
return true;
}
}
Expand Down Expand Up @@ -611,17 +611,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand All @@ -636,16 +636,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: name, verbose: verbose} = source;
var name = source.name, verbose = source.verbose;
if (!forced && !verbose) {
return;
}
var nativeConsole = console.log;
if (!convertMessageToString) {
nativeConsole(`${name}:`, message);
nativeConsole("".concat(name, ":"), message);
return;
}
nativeConsole(`${name}: ${message}`);
nativeConsole("".concat(name, ": ").concat(message));
}
const updatedArgs = args ? [].concat(source).concat(args) : [ source ];
try {
Expand Down
12 changes: 6 additions & 6 deletions dist/redirect-files/googlesyndication-adsbygoogle.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
if (!areIframesDefined) {
adElems[i].setAttribute(statusAttrName, "done");
var aswiftIframe = document.createElement("iframe");
aswiftIframe.id = `${ASWIFT_IFRAME_MARKER}${i}`;
aswiftIframe.id = "".concat(ASWIFT_IFRAME_MARKER).concat(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 = `${GOOGLE_ADS_IFRAME_MARKER}${i}`;
googleadsIframe.id = "".concat(GOOGLE_ADS_IFRAME_MARKER).concat(i);
googleadsIframe.style = css;
adElems[i].appendChild(googleadsIframe);
var innerGoogleadsIframe = document.createElement("iframe");
Expand All @@ -67,17 +67,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand Down
20 changes: 10 additions & 10 deletions dist/redirect-files/googletagservices-gpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
};
var recreateIframeForSlot = function recreateIframeForSlot(slot) {
var _document$getElementB;
var eid = `google_ads_iframe_${slot.getId()}`;
(_document$getElementB = document.getElementById(eid)) === null || _document$getElementB === void 0 || _document$getElementB.remove();
var eid = "google_ads_iframe_".concat(slot.getId());
(_document$getElementB = document.getElementById(eid)) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.remove();
var node = document.getElementById(slot.getSlotElementId());
if (node) {
var f = document.createElement("iframe");
Expand Down Expand Up @@ -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 || _document$getElementB2.remove();
(_document$getElementB2 = document.getElementById(optDiv)) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.remove();
return slotsById.get(optDiv);
}
var attributes = new Map;
Expand All @@ -154,7 +154,7 @@
} ];
var num = (slotsPerPath.get(adUnitPath) || 0) + 1;
slotsPerPath.set(adUnitPath, num);
var id = `${adUnitPath}_${num}`;
var id = "".concat(adUnitPath, "_").concat(num);
var clickUrl = "";
var collapseEmptyDiv = null;
var services = new Set;
Expand Down Expand Up @@ -328,8 +328,8 @@
setVideoContent: noopThis,
updateCorrelator: noopFunc
};
var {googletag: googletag = {}} = window;
var {cmd: cmd = []} = googletag;
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;
googletag.apiReady = true;
googletag.cmd = [];
googletag.cmd.push = function(a) {
Expand Down Expand Up @@ -385,17 +385,17 @@
}
try {
var trace = console.trace.bind(console);
var label = `${ADGUARD_PREFIX} `;
var label = "".concat(ADGUARD_PREFIX, " ");
if (source.engine === "corelibs") {
label += source.ruleText;
} else {
if (source.domainName) {
label += `${source.domainName}`;
label += "".concat(source.domainName);
}
if (source.args) {
label += `#%#//scriptlet('${source.name}', '${source.args.join("', '")}')`;
label += "#%#//scriptlet('".concat(source.name, "', '").concat(source.args.join("', '"), "')");
} else {
label += `#%#//scriptlet('${source.name}')`;
label += "#%#//scriptlet('".concat(source.name, "')");
}
}
if (trace) {
Expand Down
Loading

0 comments on commit 4c90576

Please sign in to comment.