Add The Wrap

master
magnolia1234 2021-06-12 18:19:36 +02:00
parent dad9ab5849
commit 943679f57b
7 changed files with 17 additions and 12 deletions

View File

@ -162,6 +162,7 @@ _* free articles only._
[The Daily Beast](https://www.thedailybeast.com)* -
[The New Atlantis](https://www.thenewatlantis.com) -
[The Point Magazine](https://thepointmag.com) -
[The Wrap](https://www.thewrap.com) -
[Vanity Fair](https://www.vanityfair.com) -
[Variety](https://variety.com) -
[VeloNews](https://www.velonews.com)

View File

@ -158,6 +158,7 @@ var allow_cookies_default = [
'themarker.com',
'thenewatlantis.com',
'thewest.com.au',
'thewrap.com',
'time.com',
'timeshighereducation.com',
'towardsdatascience.com',
@ -392,6 +393,7 @@ var blockedRegexes = {
'thehindubusinessline.com': /(cdn\.cxense\.com\/|\.tinypass\.com\/)/,
'thenation.com': /\.tinypass\.com\//,
'thenewatlantis.com': /\.thenewatlantis\.com\/.+\/thenewatlantis\/js\/(gate|donate)\.js/,
'thewrap.com': /\.wallkit\.net\/js\//,
'time.com': /\/time\.com\/dist\/meter-wall-client-js\..+\.js/,
'timeshighereducation.com': /\.timeshighereducation\.com\/sites\/default\/files\/js\/js_bbCGL.+\.js/,
'valeursactuelles.com': /\.qiota\.com\//,
@ -763,16 +765,7 @@ ext_api.storage.onChanged.addListener(function (changes, namespace) {
ext_api.webRequest.handlerBehaviorChanged();
// Refresh the current tab
ext_api.tabs.query({
active: true,
currentWindow: true
}, function (tabs) {
if (tabs && tabs[0] && tabs[0].url.startsWith('http')) {
ext_api.tabs.update(tabs[0].id, {
url: tabs[0].url
});
}
});
refreshCurrentTab();
}
});
@ -1613,6 +1606,8 @@ function refreshCurrentTab() {
currentWindow: true
}, function (tabs) {
if (tabs && tabs[0] && tabs[0].url.startsWith('http')) {
if (ext_api.runtime.lastError)
return;
ext_api.tabs.update(tabs[0].id, {
url: tabs[0].url
});

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Chrome
Post-release
Add The Wrap
Fix-update Atlantico.fr
Fix-update Folha de S. Paulo (add blogs)
Fix-update La Stampa

View File

@ -2352,6 +2352,12 @@ else if (matchDomain('thepointmag.com')) {
removeDOMElement(elem);
}
else if (matchDomain('thewrap.com')) {
let paywall = document.querySelector('.wrappro-paywall');
if (paywall)
paywall.classList.remove('wrappro-paywall');
}
else if (matchDomain('time.com')) {
let body = document.querySelector('body');
if (body)

View File

@ -30,5 +30,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.2.4.5"
"version": "2.2.4.6"
}

View File

@ -435,6 +435,7 @@
"*://*.thestate.com/*",
"*://*.thetimes.co.uk/*",
"*://*.thewest.com.au/*",
"*://*.thewrap.com/*",
"*://*.thueringer-allgemeine.de/*",
"*://*.tijd.be/*",
"*://*.time.com/*",
@ -513,5 +514,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.2.4.5"
"version": "2.2.4.6"
}

View File

@ -284,6 +284,7 @@ var defaultSites =
"The Wall Street Journal (not Chinese)": "wsj.com",
"The Washington Post": "washingtonpost.com",
"The West Australian (+ regional)": "thewest.com.au",
"The Wrap": "thewrap.com",
"Time Magazine": "time.com",
"Times Higher Education": "timeshighereducation.com",
"Times of India": "###_timesofindia",