mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 07:37:47 +01:00
Fix-update Saechsische Zeitung (amp)
This commit is contained in:
parent
1e82bfc7d1
commit
9c945afccd
3 changed files with 14 additions and 1 deletions
|
@ -865,6 +865,18 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
|||
["blocking"]
|
||||
);
|
||||
|
||||
// saechsische.de amp-redirect
|
||||
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
return;
|
||||
}
|
||||
var updatedUrl = details.url.replace('-plus-amp.html', '-plus.html');
|
||||
return { redirectUrl: updatedUrl };
|
||||
},
|
||||
{urls:["*://*.saechsische.de/*-plus-amp.html*"], types:["main_frame"]},
|
||||
["blocking"]
|
||||
);
|
||||
|
||||
// fix nytimes x-frame-options (hidden iframe content)
|
||||
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
|
|
|
@ -5,6 +5,7 @@ Post-release
|
|||
Add MediaNama (India)
|
||||
Remove Mitteldeutsche Zeitung (obsolete)
|
||||
Fix-update Prensa Iberica
|
||||
Fix-update Saechsische Zeitung (amp)
|
||||
Fix-update The Economic Times (mobile/India)
|
||||
Fix-update Valor Economico (Google webcache)
|
||||
|
||||
|
|
|
@ -516,5 +516,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.2.1.5"
|
||||
"version": "2.2.1.6"
|
||||
}
|
Loading…
Reference in a new issue