From ce1e4048105f7081ede743c141a125eac4c939a7 Mon Sep 17 00:00:00 2001 From: jspenguin2017 Date: Tue, 31 Dec 2019 00:44:58 -0700 Subject: [PATCH] No commit message --- src/content/rules-specific.js | 70 ++++++++++++++++++++--------------- src/manifest.json | 2 +- 2 files changed, 41 insertions(+), 31 deletions(-) diff --git a/src/content/rules-specific.js b/src/content/rules-specific.js index d6d169d407..52d5b5b866 100644 --- a/src/content/rules-specific.js +++ b/src/content/rules-specific.js @@ -474,36 +474,6 @@ if (a.domCmp(["thechive.com"])) { broadcastResult() { }, }`); } -if (a.domCmp(["richonrails.com"])) { - a.ready(() => { - $(".article-content").after(`
`).remove(); - const payload = `""`; - $.request({ - method: "POST", - url: $(".article-content").data("url"), - headers: { - "Accept": "text/javascript", - }, - payload: a.serialize({ - html: payload, - }), - }, (result) => { - const exec = result.replace("$('.article-content')", "$('.article-content-2')"); - a.inject(`(() => { - "use strict"; - ${exec} - })();`, true); - }, () => { }); - }); -} if (a.domCmp(["rmprepusb.com"])) { a.cookie("jot_viewer", "3"); } @@ -2995,3 +2965,43 @@ if (a.domCmp([ } // ----------------------------------------------------------------------------------------------------------------- // + +//@pragma-if-debug + +// Google reviewers says this code looks sketchy; this rule is inherited from Anti-Adblock Killer and I actually have +// no idea what it does, so removing this rule from package published on extension store + +if (a.domCmp(["richonrails.com"])) { + a.ready(() => { + $(".article-content").after(`
`).remove(); + const payload = `""`; + $.request({ + method: "POST", + url: $(".article-content").data("url"), + headers: { + "Accept": "text/javascript", + }, + payload: a.serialize({ + html: payload, + }), + }, (result) => { + const exec = result.replace("$('.article-content')", "$('.article-content-2')"); + a.inject(`(() => { + "use strict"; + ${exec} + })();`, true); + }, () => { }); + }); +} + +//@pragma-end-if + +// ----------------------------------------------------------------------------------------------------------------- // diff --git a/src/manifest.json b/src/manifest.json index 4174244855..b3ebff9221 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -54,7 +54,7 @@ "webRequest", "webRequestBlocking" ], - "version": "15.0.0.172", + "version": "15.0.0.173", "web_accessible_resources": [ "resources/*" ]