This commit is contained in:
magnolia1234 2020-06-20 09:43:02 +02:00
parent 504b7140bf
commit e3ef95e7ed
5 changed files with 19 additions and 3 deletions

View File

@ -17,11 +17,11 @@ Here you can also find a limited permissions version (custom sites will not be w
Install add-on by downloading xpi-file.
### List of supported websites
#### United States of America
##### World news
[First Things](https://www.firstthings.com) -
[Foreign Policy](https://www.foreignpolicy.com) -
[Harper's Magazine](https://harpers.org) -
[Inkl](https://www.inkl.com) -
[National Review](https://www.nationalreview.com) -
[The American Interest](https://www.the-american-interest.com) -
[The Atlantic](https://www.theatlantic.com) -
@ -75,7 +75,7 @@ Install add-on by downloading xpi-file.
[SofRep](https://sofrep.com) -
[The Daily Beast](https://www.thedailybeast.com)*
##### Local US news
##### Local USA news
[Baltimore Sun](https://www.baltimoresun.com) -
[Crain's Chicago Business](https://www.chicagobusiness.com) -
[Chicago Tribune](https://www.chicagotribune.com) -

View File

@ -42,6 +42,7 @@ var allow_cookies = [
'heraldsun.com.au',
'humo.be',
'independent.ie',
'inkl.com',
'intelligentinvestor.com.au',
'kleinezeitung.at',
'lc.nl',
@ -413,7 +414,8 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
return { cancel: true };
}
if (!isSiteEnabled(details)) {
let inkl_site = (matchUrlDomain('cdn.jsdelivr.net', details.url) && matchUrlDomain('inkl.com', header_referer) && isSiteEnabled({url: header_referer}));
if (!isSiteEnabled(details) && !(inkl_site)) {
return;
}

View File

@ -688,6 +688,17 @@ else if (matchDomain('ftm.nl')) {
removeDOMElement(banner_pp);
}
else if (matchDomain('inkl.com')) {
document.addEventListener('DOMContentLoaded', () => {
let article_container = document.querySelector('div.article-content-container');
if (article_container)
article_container.setAttribute("style", "overflow: visible;");
let gradient_container = document.querySelector('div.gradient-container');
if (gradient_container)
gradient_container.setAttribute("style", "height:auto;");
});
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View File

@ -114,6 +114,7 @@
"*://*.ilmessaggero.it/*",
"*://*.inc.com/*",
"*://*.independent.ie/*",
"*://*.inkl.com/*",
"*://*.inquirer.com/*",
"*://*.intelligentinvestor.com.au/*",
"*://*.irishtimes.com/*",
@ -243,6 +244,7 @@
"*://*.evolok.net/*",
"*://*.flip-pay.com/*",
"*://*.htmedia.in/*",
"*://*.jsdelivr.net/*",
"*://*.lightboxcdn.com/*",
"*://*.lp4.io/*",
"*://*.nyt.com/*",

View File

@ -65,6 +65,7 @@ var defaultSites =
"Il Manifesto": "ilmanifesto.it",
"Il Messaggero": "ilmessaggero.it",
"Illawarra Mercury": "illawarramercury.com.au",
"Inkl": "inkl.com",
"Intelligent Investor": "intelligentinvestor.com.au",
"Irish Independent": "independent.ie",
"Kleine Zeitung": "kleinezeitung.at",