NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name LtfEnhancedLight // @namespace yveswscripts // @description Verberg forumdelen met de knoppen onderaan de pagina // @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/LtfEnhancedLight // @supportURL https://github.com/YvesW // @updateURL https://openuserjs.org/meta/Yves_W/LtfEnhancedLight.meta.js // @downloadURL https://openuserjs.org/install/Yves_W/LtfEnhancedLight.user.js // @include *www.lunagang.nl/tipforum/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js // @require https://cdn.jsdelivr.net/js-cookie/2.2.0/js.cookie.js // @run-at document-start // ==/UserScript== window.addEventListener('DOMContentLoaded', function(e) { if (Cookies.get('LtfWO') || Cookies.get('LtfWOM')) { $("div.Wallop").toggle(); } if (Cookies.get('LtfFW')) { $("div.forabg:eq(0)").toggle(); } if (Cookies.get('LtfRS')) { $("div.forabg:eq(1)").toggle(); } if (Cookies.get('LtfOSRS')) { $("div.forabg:eq(2)").toggle(); } if (Cookies.get('LtfNonRS')) { $("div.forabg:eq(3)").toggle(); } window.removeEventListener(e.type, arguments.callee, true); }, true); window.addEventListener('load', function() { if (Cookies.get('LtfWOM')) { $("div.Wallop").insertAfter("div.navbar"); $("div.Wallop:eq(1)").toggle(); } $('<button>Non-RS</button><br>').prependTo('div.copyright').click(function() { if (Cookies.get('LtfNonRS')) { Cookies.remove("LtfNonRS"); } else { Cookies.set("LtfNonRS", 1); } $("div.forabg:eq(3)").toggle(); }); $('<button>OSRS<br></button>').prependTo('div.copyright').click(function() { if (Cookies.get('LtfOSRS')) { Cookies.remove("LtfOSRS"); } else { Cookies.set("LtfOSRS", 1); } $("div.forabg:eq(2)").toggle(); }); $('<button>RuneScape</button>').prependTo('div.copyright').click(function() { if (Cookies.get('LtfRS')) { Cookies.remove("LtfRS"); } else { Cookies.set("LtfRS", 1); } $("div.forabg:eq(1)").toggle(); }); $('<button>Forum & Website</button>').prependTo('div.copyright').click(function() { if (Cookies.get('LtfFW')) { Cookies.remove("LtfFW"); } else { Cookies.set("LtfFW", 1); } $("div.forabg:eq(0)").toggle(); }); $('<button>Wallop</button>').prependTo('div.copyright').click(function() { if (Cookies.get('LtfWO')) { Cookies.remove("LtfWO"); Cookies.remove("LtfWO"); } else { Cookies.set("LtfWO", 1); Cookies.remove("LtfWOM"); } location.reload(); }); $('<button>Move Wallop</button>').prependTo('div.copyright').click(function() { if (Cookies.get('LtfWOM')) { Cookies.remove("LtfWOM"); Cookies.remove("LtfWO"); } else { Cookies.set("LtfWOM", 1); Cookies.remove("LtfWO"); } location.reload(); }); }, false);