Add The Wrap

merge-requests/2/head
magnolia1234 3 years ago
parent fcf81955b9
commit 7016f8fe3b

@ -128,6 +128,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)

@ -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
});

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

@ -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)

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

@ -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",

Loading…
Cancel
Save