From 7f27f70f69d7015adc8b6e10e8e9f1363da90e1a Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 8 Feb 2021 21:44:18 +0100 Subject: [PATCH] Fix-update Cors Anywhere (link to allow access) --- changelog.txt | 1 + contentScript.js | 7 +++++++ manifest.json | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index f6d4b15..62ecdd5 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Fix-update Cors Anywhere (link to allow access) * v2.0.7.0 (2021-02-07) Add Diario de Ibiza/Mallorca, Faro de Vigo & La Provincia (Spain) diff --git a/contentScript.js b/contentScript.js index 93519a7..63210af 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2144,6 +2144,13 @@ function replaceDomElementExt(url, proxy, base64, selector, text_fail = '') { a_link.href = url; a_link.target = '_blank'; text_fail_div.appendChild(a_link); + text_fail_div.appendChild(document.createElement('br')); + let cors_link = document.createElement('a'); + cors_link.innerText = '-> bpc: allow temporary access to cors-anywhere'; + cors_link.href = 'https://cors-anywhere.herokuapp.com/corsdemo'; + cors_link.target = '_blank'; + cors_link.setAttribute('style', 'font-weight: bold;'); + text_fail_div.appendChild(cors_link); } article.insertBefore(text_fail_div, article.firstChild); } diff --git a/manifest.json b/manifest.json index b9fc09c..efb7f35 100644 --- a/manifest.json +++ b/manifest.json @@ -460,5 +460,5 @@ "*://*.userzoom.com/*", "*://*.wsj.net/*" ], - "version": "2.0.7.0" + "version": "2.0.7.1" } \ No newline at end of file