diff --git a/AltingetNoJS.user.js b/AltingetNoJS.user.js new file mode 100644 index 0000000..1807f2e --- /dev/null +++ b/AltingetNoJS.user.js @@ -0,0 +1,35 @@ +// ==UserScript== +// @name Altinget NoJS +// @description Altinget NoJS +// @include https://www.altinget.dk/* +// @version 1 +// @grant none +// ==/UserScript== + +/* SPDX-License-Identifier: Zlib + * Copyright (C) 2021 smpl */ + +var s = document.head.querySelectorAll('script, link, style'); +s.forEach( + function(se) { + se.parentNode.removeChild(se); + } +); + +var st = document.createElement('style'); +st.innerHTML = 'div { max-width: 640px }'; +document.head.appendChild(st); + +s = document.querySelectorAll('script'); + +s.forEach( + function(se) { + + if(/window.__NUXT__/.test(se.innerHTML)) { + var ScriptRaw = se.innerHTML; + var ArticleText = ScriptRaw.match(/\{article:\{[^}]*Text:"(.*?)(?' + JSON.parse('"' + ArticleText[1] + '"') + ''; + } + + } +); diff --git a/GulogGratisFixListImg.user.js b/GulogGratisFixListImg.user.js index 75931d3..fa2c00d 100644 --- a/GulogGratisFixListImg.user.js +++ b/GulogGratisFixListImg.user.js @@ -6,6 +6,9 @@ // @grant none // ==/UserScript== +/* SPDX-License-Identifier: Zlib + * Copyright (C) 2021 smpl */ + /* Hvis man browser guloggratis.dk med nedenstående tilladelser i * uMatrix og alt andet blokeret, så vises der ikke billeder i * annoncelister/søgninger.