Fix-update Inkl (disable newsletter login)
This commit is contained in:
parent
8454c14f75
commit
bf69ecad0c
@ -462,6 +462,18 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
["blocking"]
|
||||
);
|
||||
|
||||
// inkl disable newsletter login
|
||||
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
return;
|
||||
}
|
||||
var updatedUrl = details.url.replace(/etok=[\w]*&/, '');
|
||||
return { redirectUrl: updatedUrl };
|
||||
},
|
||||
{urls:["*://*.inkl.com/*"], types:["main_frame"]},
|
||||
["blocking"]
|
||||
);
|
||||
|
||||
const faz_uaMobile = "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.122 Mobile Safari/537.36";
|
||||
ext_api.webRequest.onBeforeSendHeaders.addListener(
|
||||
function (details) {
|
||||
|
@ -5,6 +5,7 @@ Post-release
|
||||
Add NYmag-sites Grub Street, The Cut & Vulture
|
||||
Add Quotidiano.net (Italy)
|
||||
Add The West Australian (+ regional)
|
||||
Fix-update Inkl (disable newsletter login)
|
||||
Fix-update Toronto Star (external cookie-script)
|
||||
Update opt-in tab (default settings)
|
||||
|
||||
|
@ -925,8 +925,6 @@ else if (matchDomain('ftm.nl')) {
|
||||
|
||||
else if (matchDomain('inkl.com')) {
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
if (window.location.href.includes('?'))
|
||||
window.location.href = window.location.href.split('?')[0];
|
||||
let menu_btn = document.querySelector('div.left-buttons-container button.menu-btn');
|
||||
if (!menu_btn) {
|
||||
let article_container = document.querySelector('div.article-content-container');
|
||||
|
@ -315,5 +315,5 @@
|
||||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.9.0.6"
|
||||
"version": "1.9.0.7"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user