ETS2MP Forum Improvements

Make everything about the ETS2MP Forums better

Stan na 02-04-2015. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        ETS2MP Forum Improvements
// @namespace   01255896330214578554752036582540147522025120323038985687458
// @description Make everything about the ETS2MP Forums better
// @include     *forum.ets2mp.com/*
// @include     *forum.ets2mp.com
// @require     https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
// @version     0.1.5.1
// @grant       GM_getValue
// @grant       GM_setValue
// ==/UserScript==

$(document).ready(function(){function o(o){var e=GM_getValue(o);return e}function e(o,e){GM_setValue(o,e)}var r=o("ets2_forum_bg");r&&$("#ipboard_body").css({background:r}),$("#footer_utilities ul li a").css({color:"black",background:"#F1F1F1",boxShadow:"0 0 3px 3px darkgrey"}).mouseenter(function(){$(this).css("color","blue")}).mouseleave(function(){$(this).css("color","black")}),$("#user_navigation ul").prepend('<li><a title="Edit the background color of this page" href="javascript: ;" style="color: white !important; border: none !important; -moz-user-select: none; -ms-user-select: none; user-select: none;" id="bg_color_change_link">Background</a></li>'),$("#bg_color_change_link").click(function(){var o=prompt("Enter a CSS valid color to use as the background\n\nMore on CSS Colors here bit.ly/CSSafe\n\n","random");"random"==o&&(o="#"+("000000"+(16777215*Math.random()<<0).toString(16)).slice(-6)),$("#ipboard_body").css({background:o}),e("ets2_forum_bg",o)})});