ExpandSpiegel

By max 1 Last update Apr 9, 2006 — Installed 1,463 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 3 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
williampcasey User

Hmm This doesn't seem to work for http://www.spiegel.de/international/* , even if I add it manually. Any chance you could write a script with the same function for the English-language site?

 
Flo Fürstenb... User

Hah, that looks great :-D

Anyway, feel free to contact me (use my firstname at my lastname dot de for email) for the file or just take the changes for your script.

 
Flo Fürstenb... User

Thanks Max, I use both your Heise and Spiegel scripts and got to like them a lot.

I've made some modifications to ExpandSpiegel after the layout change in September 2006 (Spiegel now uses DIVs and even offers an 800px style for the main spContainer DIV, also I only show the breadcrumbs at the top of the article page instead of the full blown navigation bar).

I'll try to attach my changes here:

// ==UserScript==

// @name ExpandSpiegel

// @description Removes right column and navigation bar on Spiegel.de and expands left one

// @include http://www.spiegel.de/politik/*

// @include http://www.spiegel.de/wirtschaft/*

// @include http://www.spiegel.de/panorama/*

// @include http://www.spiegel.de/sport/*

// @include http://www.spiegel.de/kultur/*

// @include http://www.spiegel.de/netzwelt/*

// @include http://www.spiegel.de/wissenschaft/*

// @include http://www.spiegel.de/unispiegel/*

// @include http://www.spiegel.de/schulspiegel/*

// @include http://www.spiegel.de/reise/*

// @include http://www.spiegel.de/auto/*

// ==/UserScript==

var mustPerish = document.evaluate("//*[@id='spHeader'] | //div[@class='spSpecialArticles']",

document,

null,

XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,

null);

var mustGrow = document.evaluate("//div[@id='spContainer']",

document,

null,

XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,

null);

var myVar;

if (mustPerish) {

for (var i = 0; i < mustPerish.snapshotLength; i++) {

myVar = mustPerish.snapshotItem(i);

myVar.parentNode.removeChild(myVar);

}

}

if (mustGrow) {

for (var i = 0; i < mustGrow.snapshotLength; i++) {

myVar = mustGrow.snapshotItem(i);

myVar.setAttribute('class','spFullScreen');

}

}

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel