mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:07:47 +01:00
Add Southern Weekly (China)
This commit is contained in:
parent
ab38151989
commit
154d1b9c22
6 changed files with 30 additions and 1 deletions
|
@ -530,6 +530,7 @@ Grupo Vocento (ABC) regional sites like
|
|||
[Nikkei Asian Review](https://asia.nikkei.com) -
|
||||
[NK News](https://www.nknews.org)* -
|
||||
[South China Morning Post](https://www.scmp.com) -
|
||||
[Southern Weekly](https://www.infzm.com) -
|
||||
[Tech in Asia](https://www.techinasia.com) -
|
||||
[The Diplomat](https://www.thediplomat.com) -
|
||||
[The Japan Times](https://www.japantimes.co.jp)
|
||||
|
|
|
@ -89,6 +89,7 @@ var allow_cookies_default = [
|
|||
'ilgiorno.it',
|
||||
'ilrestodelcarlino.it',
|
||||
'independent.ie',
|
||||
'infzm.com',
|
||||
'intelligentinvestor.com.au',
|
||||
'jpost.com',
|
||||
'knack.be',
|
||||
|
@ -910,6 +911,18 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
|||
["blocking"]
|
||||
);
|
||||
|
||||
// infzm.com redirect to wap (mobile)
|
||||
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
return;
|
||||
}
|
||||
var updatedUrl = details.url.replace('.com/contents/', '.com/wap/#/content/');
|
||||
return { redirectUrl: updatedUrl };
|
||||
},
|
||||
{urls:["*://www.infzm.com/contents/*"], types:["main_frame"]},
|
||||
["blocking"]
|
||||
);
|
||||
|
||||
// fix nytimes x-frame-options (hidden iframe content)
|
||||
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Southern Weekly (China)
|
||||
Fix The Daily Telegraph (au)
|
||||
|
||||
* v2.2.9.0 (2021-07-11)
|
||||
|
|
|
@ -1961,6 +1961,18 @@ else if (matchDomain(['houstonchronicle.com', 'sfchronicle.com'])) {
|
|||
removeDOMElement(wrapper);
|
||||
}
|
||||
|
||||
else if (matchDomain('infzm.com')) {
|
||||
let url = window.location.href;
|
||||
if (url.includes('/wap/#/')) {
|
||||
let container = document.querySelector('section.container');
|
||||
if (container)
|
||||
container.classList.remove('container');
|
||||
let overlay = document.querySelector('div.article-content[style]');
|
||||
if (overlay)
|
||||
overlay.removeAttribute('style');
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('inkl.com')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
let menu_btn = document.querySelector('div.left-buttons-container button.menu-btn');
|
||||
|
|
|
@ -231,6 +231,7 @@
|
|||
"*://*.ilsecoloxix.it/*",
|
||||
"*://*.inc.com/*",
|
||||
"*://*.independent.ie/*",
|
||||
"*://*.infzm.com/*",
|
||||
"*://*.inkl.com/*",
|
||||
"*://*.inquirer.com/*",
|
||||
"*://*.intelligentinvestor.com.au/*",
|
||||
|
@ -534,5 +535,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.2.9.1"
|
||||
"version": "2.2.9.2"
|
||||
}
|
1
sites.js
1
sites.js
|
@ -225,6 +225,7 @@ var defaultSites =
|
|||
"Slate": "slate.com",
|
||||
"SOFREP": "sofrep.com",
|
||||
"South China Morning Post": "scmp.com",
|
||||
"Southern Weekly": "infzm.com",
|
||||
"Sports Illustrated": "si.com",
|
||||
"Star Tribune": "startribune.com",
|
||||
"Statista": "statista.com",
|
||||
|
|
Loading…
Reference in a new issue