Add The New York Review of Books
parent
6e6c72efa4
commit
3f7484e5ce
|
@ -73,6 +73,7 @@ Visit the [Firefox repository](https://bitbucket.org/magnolia1234/bypass-paywall
|
|||
[The Christian Science Monitor](https://www.csmonitor.com) -
|
||||
[The Nation](https://www.thenation.com) -
|
||||
[The New Republic](https://newrepublic.com) -
|
||||
[The New York Review of Books](https://www.nybooks.com) -
|
||||
[The New York Times](https://www.nytimes.com) -
|
||||
[The New Yorker](https://www.newyorker.com) -
|
||||
[The Washington Post](https://www.washingtonpost.com) -
|
||||
|
|
|
@ -63,6 +63,7 @@ var allow_cookies = [
|
|||
'nknews.org',
|
||||
'noordhollandsdagblad.nl',
|
||||
'nrz.de',
|
||||
'nybooks.com',
|
||||
'nytimes.com',
|
||||
'nzz.ch',
|
||||
'parool.nl',
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add The New York Review of Books
|
||||
|
||||
* v1.9.1.1 (2020-10-19)
|
||||
Hotfix remove cookies (www)
|
||||
|
|
|
@ -815,15 +815,17 @@ else if (matchDomain('faz.net')) {
|
|||
str = str.replace(/(?:^|[\w\"\“])(\.|\?|!)(?=[A-ZÖÜ\„][A-Za-zÀ-ÿ\„]{1,})/gm, "$&\n\n");
|
||||
str = str.replace(/([a-z\"\“])(?=[A-Z](?=[A-Za-zÀ-ÿ]+))/gm, "$&\n\n");
|
||||
// exceptions: names with alternating lower/uppercase (no general fix)
|
||||
str = str.replace(/Glaxo\n\nSmith\n\nKline/g, "GlaxoSmithKline");
|
||||
str = str.replace(/Ba\n\nFin/g, "BaFin");
|
||||
str = str.replace(/Bil\n\nMoG/g, "BilMoG");
|
||||
str = str.replace(/Eu\n\nGH/g, "EuGH");
|
||||
str = str.replace(/If\n\nSG/g, "IfSG");
|
||||
str = str.replace(/med\n\nRxiv/g, "medRxiv");
|
||||
str = str.replace(/m\n\nRNA/g, "mNRA");
|
||||
str = str.replace(/St\n\nVO/g, "StVO");
|
||||
str = str.replace(/Berl\n\nHG/g, "BerlHG");
|
||||
let str_rep_arr = ["BaFin", "BerlHG", "BilMoG", "EuGH", "GlaxoSmithKline", "IfSG", "iMessage", "iOS", "iPad", "iPhone", "medRxiv", "mNRA", "StVO"];
|
||||
let str_rep_split, str_rep_src;
|
||||
for (let str_rep of str_rep_arr) {
|
||||
str_rep_split = str_rep.split(/([a-z]+)(?=[A-Z](?=[A-Za-z]+))/);
|
||||
str_rep_src = str_rep_split.reduce(function (accumulator, currentValue) {
|
||||
return accumulator + currentValue + ((currentValue !== currentValue.toUpperCase()) ? '\n\n' : '');
|
||||
});
|
||||
if (str_rep_src.endsWith('\n\n'))
|
||||
str_rep_src = str_rep_src.slice(0, -2);
|
||||
str = str.replace(new RegExp(str_rep_src, "g"), str_rep);
|
||||
}
|
||||
str = str.replace(/De\n\n([A-Z])/g, "De$1");
|
||||
str = str.replace(/La\n\n([A-Z])/g, "La$1");
|
||||
str = str.replace(/Le\n\n([A-Z])/g, "Le$1");
|
||||
|
@ -1382,6 +1384,12 @@ else if (matchDomain("quotidiano.net")) {
|
|||
}
|
||||
}
|
||||
|
||||
else if (matchDomain("nybooks.com")) {
|
||||
let paywall_article = document.querySelector('.paywall-article');
|
||||
if (paywall_article)
|
||||
paywall_article.classList.remove('paywall-article');
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
|
|
@ -183,6 +183,7 @@
|
|||
"*://*.nrc.nl/*",
|
||||
"*://*.nrz.de/*",
|
||||
"*://*.ntnews.com.au/*",
|
||||
"*://*.nybooks.com/*",
|
||||
"*://*.nymag.com/*",
|
||||
"*://*.nytimes.com/*",
|
||||
"*://*.nzherald.co.nz/*",
|
||||
|
@ -315,5 +316,5 @@
|
|||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.9.1.1"
|
||||
"version": "1.9.1.2"
|
||||
}
|
1
sites.js
1
sites.js
|
@ -176,6 +176,7 @@ var defaultSites =
|
|||
"The Nation": "thenation.com",
|
||||
"The New Republic": "newrepublic.com",
|
||||
"The New Statesman": "newstatesman.com",
|
||||
"The New York Review of Books": "nybooks.com",
|
||||
"The New York Times": "nytimes.com",
|
||||
"The New Yorker": "newyorker.com",
|
||||
"The News-Gazette": "news-gazette.com",
|
||||
|
|
Loading…
Reference in New Issue