Greasy Fork

heise.de one Page

open articles always on one page

目前为 2017-06-23 提交的版本。查看 最新版本

// ==UserScript==
// @name        heise.de one Page
// @namespace   
// @description open articles always on one page
// @include     https://www.heise.de/*
// @version     1
// @grant       none
// ==/UserScript==



var links = document.evaluate("//a[contains(@href, 'meldung')]", document, null, 
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 
for (var i=0; i < links.snapshotLength; i++) 
{ 
  var thisLink = links.snapshotItem(i); 
  thisLink.href = thisLink.href.replace('html','html?artikelseite=all');
}