ETS2MP Forum Improvements

Make everything about the ETS2MP Forums better

当前为 2015-04-02 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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
// @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");$("#ipboard_body").css({background:o}),e("ets2_forum_bg",o)})});