Skip to content

Commit

Permalink
deploy: update dist v1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Atlassian Bamboo committed Mar 7, 2023
1 parent 36fc030 commit de45d19
Show file tree
Hide file tree
Showing 10 changed files with 2,698 additions and 532 deletions.
2 changes: 1 addition & 1 deletion dist/build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.8.2
version=1.9.1
8 changes: 7 additions & 1 deletion dist/redirect-files/google-analytics-ga.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,16 @@
function noopFunc() {}
function logMessage(source, message) {
let forced = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
let convertMessageToString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
const name = source.name, ruleText = source.ruleText, verbose = source.verbose;
if (!forced && !verbose) {
return;
}
const nativeConsole = console.log;
if (!convertMessageToString) {
nativeConsole("".concat(name, ":"), message);
return;
}
let messageStr = "".concat(name, ": ").concat(message);
if (ruleText) {
const RULE_MARKER = "#%#//scriptlet";
Expand All @@ -119,7 +125,7 @@
messageStr += "; cannot apply rule: ".concat(ruleWithoutDomains);
}
}
console.log(messageStr);
nativeConsole(messageStr);
}
const updatedArgs = args ? [].concat(source).concat(args) : [ source ];
try {
Expand Down
8 changes: 7 additions & 1 deletion dist/redirect-files/google-ima3.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,16 @@
function noopFunc() {}
function logMessage(source, message) {
let forced = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
let convertMessageToString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
const name = source.name, ruleText = source.ruleText, verbose = source.verbose;
if (!forced && !verbose) {
return;
}
const nativeConsole = console.log;
if (!convertMessageToString) {
nativeConsole("".concat(name, ":"), message);
return;
}
let messageStr = "".concat(name, ": ").concat(message);
if (ruleText) {
const RULE_MARKER = "#%#//scriptlet";
Expand All @@ -591,7 +597,7 @@
messageStr += "; cannot apply rule: ".concat(ruleWithoutDomains);
}
}
console.log(messageStr);
nativeConsole(messageStr);
}
const updatedArgs = args ? [].concat(source).concat(args) : [ source ];
try {
Expand Down
8 changes: 7 additions & 1 deletion dist/redirect-files/noeval.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@
}
function logMessage(source, message) {
let forced = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
let convertMessageToString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
const name = source.name, ruleText = source.ruleText, verbose = source.verbose;
if (!forced && !verbose) {
return;
}
const nativeConsole = console.log;
if (!convertMessageToString) {
nativeConsole("".concat(name, ":"), message);
return;
}
let messageStr = "".concat(name, ": ").concat(message);
if (ruleText) {
const RULE_MARKER = "#%#//scriptlet";
Expand All @@ -50,7 +56,7 @@
messageStr += "; cannot apply rule: ".concat(ruleWithoutDomains);
}
}
console.log(messageStr);
nativeConsole(messageStr);
}
const updatedArgs = args ? [].concat(source).concat(args) : [ source ];
try {
Expand Down
7 changes: 4 additions & 3 deletions dist/redirects.json

Large diffs are not rendered by default.

27 changes: 23 additions & 4 deletions dist/redirects.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# AdGuard Scriptlets (Redirects Source)
# Version 1.8.2
# Version 1.9.1
#
- title: 1x1-transparent.gif
description: |-
Expand Down Expand Up @@ -86,6 +86,7 @@
||example.org/style.css$stylesheet,redirect=noopcss
```
aliases:
- noop.css
- blank-css
file: noopcss.css
contentType: text/css
Expand Down Expand Up @@ -1272,10 +1273,16 @@
function noopFunc() {}
function logMessage(source, message) {
let forced = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
let convertMessageToString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
const name = source.name, ruleText = source.ruleText, verbose = source.verbose;
if (!forced && !verbose) {
return;
}
const nativeConsole = console.log;
if (!convertMessageToString) {
nativeConsole("".concat(name, ":"), message);
return;
}
let messageStr = "".concat(name, ": ").concat(message);
if (ruleText) {
const RULE_MARKER = "#%#//scriptlet";
Expand All @@ -1285,7 +1292,7 @@
messageStr += "; cannot apply rule: ".concat(ruleWithoutDomains);
}
}
console.log(messageStr);
nativeConsole(messageStr);
}
const updatedArgs = args ? [].concat(source).concat(args) : [ source ];
try {
Expand Down Expand Up @@ -2022,10 +2029,16 @@
function noopFunc() {}
function logMessage(source, message) {
let forced = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
let convertMessageToString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
const name = source.name, ruleText = source.ruleText, verbose = source.verbose;
if (!forced && !verbose) {
return;
}
const nativeConsole = console.log;
if (!convertMessageToString) {
nativeConsole("".concat(name, ":"), message);
return;
}
let messageStr = "".concat(name, ": ").concat(message);
if (ruleText) {
const RULE_MARKER = "#%#//scriptlet";
Expand All @@ -2035,7 +2048,7 @@
messageStr += "; cannot apply rule: ".concat(ruleWithoutDomains);
}
}
console.log(messageStr);
nativeConsole(messageStr);
}
const updatedArgs = args ? [].concat(source).concat(args) : [ source ];
try {
Expand Down Expand Up @@ -2986,10 +2999,16 @@
}
function logMessage(source, message) {
let forced = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
let convertMessageToString = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
const name = source.name, ruleText = source.ruleText, verbose = source.verbose;
if (!forced && !verbose) {
return;
}
const nativeConsole = console.log;
if (!convertMessageToString) {
nativeConsole("".concat(name, ":"), message);
return;
}
let messageStr = "".concat(name, ": ").concat(message);
if (ruleText) {
const RULE_MARKER = "#%#//scriptlet";
Expand All @@ -2999,7 +3018,7 @@
messageStr += "; cannot apply rule: ".concat(ruleWithoutDomains);
}
}
console.log(messageStr);
nativeConsole(messageStr);
}
const updatedArgs = args ? [].concat(source).concat(args) : [ source ];
try {
Expand Down
87 changes: 48 additions & 39 deletions dist/scriptlets.corelibs.json

Large diffs are not rendered by default.

Loading

0 comments on commit de45d19

Please sign in to comment.