Last active
March 8, 2017 18:44
-
-
Save LeviticusMB/f5fbb3111977b6935c9d7c8268f7f276 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name DN | |
// @namespace dn.se | |
// @description Läsbar DN.se | |
// @include http://www.dn.se/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
document.addEventListener("DOMContentLoaded", function(event) { | |
document.head.innerHTML += ` | |
<style type='text/css'> | |
.article__premium-content { | |
display: block !important; | |
} | |
.js-paywall { | |
display: none !important; | |
} | |
</style>`; | |
window.setInterval(function() { | |
var mask = document.querySelector('.article__body--mask'); | |
if (mask) mask.classList.remove('article__body--mask'); | |
}, 1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment