Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed Dec 29, 2018
1 parent 69d8a18 commit c5606e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions src/content/rules-specific.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -------------------------------------------------------------------------- //
// --------------------------------------------------------------------------------------------- //

// Nano Defender - An anti-adblock defuser
// Copyright (C) 2016-2018 Nano Defender contributors
Expand All @@ -16,15 +16,15 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

// -------------------------------------------------------------------------- //
// --------------------------------------------------------------------------------------------- //

// Content rules for specific websites.

// -------------------------------------------------------------------------- //
// --------------------------------------------------------------------------------------------- //

"use strict";

// -------------------------------------------------------------------------- //
// --------------------------------------------------------------------------------------------- //

// https://github.com/NanoMeow/QuickReports/issues/352
if (a.domCmp([
Expand Down Expand Up @@ -70,9 +70,10 @@ if (
a.loopbackXHR((ignored, url) => {
const path = url.substring(url.lastIndexOf('/') + 1);
if (path.startsWith("dmFkLnhtb")) { // vad.xml
return `<?xml version="1.0" encoding="UTF-8"?>
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast2.xsd" version="2.0">
</VAST>`;
return '<?xml version="1.0" encoding="UTF-8"?>\n' +
'<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' +
'xsi:noNamespaceSchemaLocation="vast2.xsd" version="2.0">\n' +
'</VAST>';
}
});
}
Expand All @@ -84,7 +85,7 @@ if (a.domCmp(["linkneverdie.com"])) {
});
}

// -------------------------------------------------------------------------- //
// --------------------------------------------------------------------------------------------- //

if (a.domCmp(["catchcoin.pw", "irc-source.com", "dashcatch.xyz"])) {
a.noAccess("adBlockDetected");
Expand Down Expand Up @@ -3012,13 +3013,12 @@ if (a.domCmp(["telerium.tv"])) {
});
}

// -------------------------------------------------------------------------- //
// --------------------------------------------------------------------------------------------- //

// Nano Adblocker does not support UserCSS because it breaks DOM Inspector,
// duct tape it here
// Nano Adblocker does not support UserCSS because it breaks DOM Inspector, duct tape it here

// TODO - Convert to filter (or remove if already in uAssets) when minimum
// required version of Chrome can handle removing injected stylesheet
// TODO - Convert to filter (or remove if already in uAssets) when minimum required version of
// Chrome can handle removing injected stylesheet

if (a.domCmp([
"hdblog.it",
Expand Down Expand Up @@ -3048,4 +3048,4 @@ if (a.domCmp([
});
}

// -------------------------------------------------------------------------- //
// --------------------------------------------------------------------------------------------- //
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"webRequest",
"webRequestBlocking"
],
"version": "15.0.0.83",
"version": "15.0.0.84",
"web_accessible_resources": [
"resources/*"
]
Expand Down

0 comments on commit c5606e6

Please sign in to comment.