Avatar von kostenfaktor
  • kostenfaktor

mehr als 1000 Beiträge seit 29.12.2013

Greasemonkey-Skript für altes Design

Das folgende Greasemonkey-Skript stellt das alte TP-Design bei Artikeln und im Forum weitgehend wieder her:

// ==UserScript==
// @name TP
// @namespace
// @version 1
// @grant none
// ==/UserScript==

function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}

if ( document.location.href.indexOf("")>-1 )//Skript-Anwendung einschränken z.B. durch: document.location.href.indexOf("/tp")
addGlobalStyle(
// --- Übersicht
'body { background-color: #C6D7DE !important; font-family: serif !important; font-size: large !important; line-height:140% !important;}'
+' .spalte,.max344,.tp-z,.top-ad,.ad-high,.bottom-ad-fr, .tp-footer, .amazon {display: none !important;}'
+' .main { background: #C6D7DE !important; top: 40px !important; border-bottom: 0 !important; min-width: 860px !important; }'
+' .men-1 {top: 5px !important; min-width: 860px !important; }'
+' .null-gif { margin-top: -0.2em !important; margin-bottom: -0.2em !important; float: right !important;}' // Bilder
+' table.main-table { width: auto !important; margin-left: auto !important; margin-right: auto !important;} '
+' .main-table {padding-top: 0.5em !important;}'
+' .datum-leiste { background: #F7F3F7 !important; border: 0 !important; margin-bottom: 1em !important; font-weight: bold !important; }'
+' .flow { padding-left: 0 !important;}'
+' .news-s {background: transparent !important; padding-left: 0 !important; }'
+' .vcard {font-style: italic !important;}'
+' a.author:hover {background: transparent !important; text-decoration: underline !important;}'
//+' h2 a:hover {background: #C6D7DE !important; }'
+' .leftspace.blog ul li { font-size: smaller !important; line-height: 120% !important; margin-bottom: 0.5em !important; }'
+' .leftspace.blog ul { margin-top: -0.2em !important; margin-bottom: 0.2em !important;}'
+' h2 { margin-top: -0.5em !important; }'
+' .leftspace.home, .leftspace.next { width: 600px !important; background: #C6D7DE !important; padding-top: 0 !important;}'
+' .trenn-leiste { margin-bottom: 0.5em !important; padding-top: 0.2em !important; border-bottom: 2px solid #bbb !important; }'
+' .dtext { line-height: 120% !important; }'
+' #ietop { display: none !important; }'
+' .leftbox { margin-top: 8px !important; min-width: 680px !important; width: 800px !important; margin-left: auto !important; margin-right: auto !important; background-color: #eee !important; }'

// --- Nachricht
+' .mar0 { margin-bottom: 0.5em !important; }'
+' .version-div { text-align: right !important; padding: 0 !important; }'
+' .leftspace.artext, .leftspace.blog { width: 600px !important; text-align: justify !important; background: #eee !important; }'
+' .social { width: 360px !important; float: right !important; margin-top: 0 !important; padding-right: 0 !important; }'
+' .rz-autor { background: #eee !important; padding: 0 0 0 8px !important; margin-left: 1px !important;}'
+' .rz-endtext { font-style: italic !important; background: #eee !important; margin-bottom: 0 !important; padding: 2px 8px 2px 2px !important;}'
+' .rz-div { background: #eee !important; }'
+' .tp-url, div#breadcrumb, div#breadcrumb a { color: #222 !important; }'

+' .telepolis_all, a { color: brown !important; }' //LINKFARBE
+' .telepolis_all, a:visited { color: #661717 !important;} '//LINKFARBE
// 004a6b neue linkfarbe
//+' .irak_div, div a { color: #222 !important; }'

+' div#breadcrumb { margin: 0 !important; }'
+' div#breadcrumb a:hover, a.tp-url:hover { color: #666!important; background: transparent !important; }'
+' .forum { background: #eee !important; border-top: 1px solid #444 !important; padding-left: 1.5em !important; }'
+' h1, .zu { color: brown !important; }' //Überschrift
+' .link { font-size: larger !important; font-weight: normal !important; line-height: 120% !important; }'
+' .li-for { font-weight: normal !important; line-height: 110% !important; }'
+' .size80 { padding-top: 0.5em !important; font-size: smaller !important; }'
//+' .size80 b { margin-bottom: 1em !important; }'
+' .blog-sub { color: #444 !important; text-transform: none !important; font-size: medium !important; }'
+ ' strong { background: #ddd !important; }'
// --- Kommentar-Baum
+' .maintable { width:600px !important; margin: 0 !important; float: none !important; margin-left: auto !important; margin-right: auto !important; }'
+' .f-content { width:720px !important; border-bottom:0 !important; !important; background: #F7F3F7 !important;}'
+' .thread_tree { width:300px !important; }'
+' .forum_navi { width:760px !important; }'
+' .forum_navi li { margin-right: 0.2em !important; }'
+' .forum_aktion li { margin-right: 0.5em !important; }'
//+' .hover_line,.hover,.last { background: #F7F3F7 !important; }'

// --- Kommentar
+' .feedback_link { width:720px !important; padding-bottom: 2px !important; }'
+' .posting_text { width:720px !important; font-size: normal !important; font-family: times !important; line-height: 125% !important; padding-bottom: 2px !important; }'
+' .quote { border-left: 2px solid #777 !important; color: #444 !important; padding-left: 2px !important; padding-top: 1px !important; }'

// --- unterstrichene Links
+' a:hover { text-decoration: underline !important;}'

// --- Navi
+' .navi_top { background: red important!; text-size: smaller !important; }'

//kommentare unter artikel
//+' .for { width:720px !important; padding-bottom: 2px !important; }'
//+' .forum { width:720px !important; padding-bottom: 2px !important; }'
+' .for { solid brown !important; color: brown !important; padding-left: 2px !important; padding-top: 1px !important; }'
//+' .forum { border-left: 2px solid #777 !important; color: #444 !important; padding-left: 2px !important; padding-top: 1px !important; }'

);
else
addGlobalStyle(
// --- heise
' #container_content { margin-top: -100px !important; }'
);

Bewerten
- +
Anzeige