mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:57:48 +01:00
Add Republic.ru
This commit is contained in:
parent
6e12ce527f
commit
3758b47174
5 changed files with 11 additions and 1 deletions
|
@ -207,6 +207,8 @@ Install add-on by downloading xpi-file.
|
|||
[Trouw](https://www.trouw.nl) -
|
||||
[Volkskrant](https://www.volkskrant.nl) -
|
||||
[Vrij Nederland](https://www.vn.nl)
|
||||
##### Russia
|
||||
[Republic.ru](https://republic.ru)
|
||||
##### Spain
|
||||
[El Mundo](https://www.elmundo.es) -
|
||||
[El País](https://elpais.com)
|
||||
|
|
|
@ -123,6 +123,7 @@ const use_google_bot_default = [
|
|||
'miamiherald.com',
|
||||
'ntnews.com.au',
|
||||
'quora.com',
|
||||
'republic.ru',
|
||||
'seekingalpha.com',
|
||||
'switzersuperreport.com.au',
|
||||
'theathletic.co.uk',
|
||||
|
@ -382,7 +383,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
|
|||
}
|
||||
|
||||
// remove cookies Discover Magazine
|
||||
if (matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer)) {
|
||||
if (matchUrlDomain('ctfassets.net', details.url) && matchUrlDomain('discovermagazine.com', header_referer) && isSiteEnabled({url: 'https://www.discovermagazine.com'})) {
|
||||
ext_api.cookies.getAll({domain: 'discovermagazine.com'}, function(cookies) {
|
||||
for (let cookie of cookies) {
|
||||
ext_api.cookies.remove({url: (cookie.secure ? "https://" : "http://") + cookie.domain + cookie.path, name: cookie.name});
|
||||
|
|
|
@ -679,6 +679,11 @@ else if (matchDomain('independent.ie')) {
|
|||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('republic.ru')) {
|
||||
let paywall = document.querySelector('.paywall-section');
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
|
|
@ -169,6 +169,7 @@
|
|||
"*://*.quora.com/*",
|
||||
"*://*.qz.com/*",
|
||||
"*://*.repubblica.it/*",
|
||||
"*://*.republic.ru/*",
|
||||
"*://*.sacbee.com/*",
|
||||
"*://*.sandiegouniontribune.com/*",
|
||||
"*://*.science-et-vie.com/*",
|
||||
|
|
1
sites.js
1
sites.js
|
@ -113,6 +113,7 @@ var defaultSites =
|
|||
"Pittsburgh Post Gazette": "post-gazette.com",
|
||||
"Quartz": "qz.com",
|
||||
"Quora": "quora.com",
|
||||
"Republic.ru": "republic.ru",
|
||||
"San Diego Union Tribune": "sandiegouniontribune.com",
|
||||
"San Francisco Chronicle": "sfchronicle.com",
|
||||
"Science & Vie": "science-et-vie.com",
|
||||
|
|
Loading…
Reference in a new issue