Add Southern Weekly (China)
parent
700e4bcd57
commit
01f0ed8a7f
|
@ -564,6 +564,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 - Chrome
|
||||
|
||||
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');
|
||||
|
|
|
@ -38,5 +38,5 @@
|
|||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.2.9.1"
|
||||
"version": "2.2.9.2"
|
||||
}
|
|
@ -219,6 +219,7 @@
|
|||
"*://*.ilsecoloxix.it/*",
|
||||
"*://*.inc.com/*",
|
||||
"*://*.independent.ie/*",
|
||||
"*://*.infzm.com/*",
|
||||
"*://*.inkl.com/*",
|
||||
"*://*.inquirer.com/*",
|
||||
"*://*.intelligentinvestor.com.au/*",
|
||||
|
@ -522,5 +523,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.2.9.1"
|
||||
"version": "2.2.9.2"
|
||||
}
|
Loading…
Reference in New Issue