NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name LtfEnhanced
// @namespace yveswscripts
// @description Haalt de oldschool look terug van ltf, met wat tweaks. NOTE: Dit is gepersonaliseerd voor mij, heel basaal en WIP. LtfEnhancedLight wordt aangeraden als je Ltf wil aanpassen.
// @author Yves W
// @version 0.1.3.1
// @copyright 2015+, Yves W (openuserjs.org/users/Yves_W)
// @license MIT
// @homepageURL https://openuserjs.org/scripts/Yves_W/LtfEnhanced
// @supportURL https://github.com/YvesW
// @updateURL https://openuserjs.org/meta/Yves_W/LtfEnhanced.meta.js
// @downloadURL https://openuserjs.org/install/Yves_W/LtfEnhanced.user.js
// @include *www.lunagang.nl/tipforum/*
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @run-at document-start
// ==/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);
}
addGlobalStyle('#wrap { max-width: 1620px !important; }'); //aanpassen indien je de breedte wil wijzigen
//addGlobalStyle('.headerbar { max-width: 1860px !important; }'); //aanpassen indien je de breedte wil wijzigen
addGlobalStyle('.headerbar { max-width: -moz-calc(100% - 38px) !important; }'); //aanpassen indien je de breedte wil wijzigen
addGlobalStyle('.headerbar { max-width: -webkit-calc(100% - 38px) !important; }'); //aanpassen indien je de breedte wil wijzigen
addGlobalStyle('.headerbar { max-width: calc(100% - 38px) !important; }'); //aanpassen indien je de breedte wil wijzigen
//addGlobalStyle('#wrap { margin: 1 300 !important; }'); //aanpassen indien je de breedte wil wijzigen
//addGlobalStyle('.postbody { width: 1220px !important; }'); //voorbeeld even groot als hoe breed het uitziet bij mensen zonder widescreen ipv 76% of max width nah idk, moet nakijken
window.addEventListener('DOMContentLoaded', function(e) {
//$("div.forabg:eq(4) div ul:eq(1) li:eq(2) dl dt div").prepend('<br>'); //poging centreren, ouderrwets ivm forumdeel verwijderd
$("#page-body div.forabg").slice( 1, 3 ).remove();//verberg alle RS-delen; Evenementen, RS & OSRS
$("div.Wallop").toggle();
window.removeEventListener(e.type, arguments.callee, true);
}, true);
window.addEventListener('load', function() {
$("div.Wallop").insertAfter("div.navbar");
$("div.Wallop:eq(1)").toggle();
}, false);