Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Renaissance Kingdoms
- // @namespace weiwen.renaissancekingdoms
- // @include http://www.renaissancekingdoms.com/*
- // @version 1
- // ==/UserScript==
- // Styling
- 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('.zonePubDroiteContenant, .colonneEntiere, #bandeau_jeux { display: none; }')
- addGlobalStyle('.colonneContenu { width: 785px !important; }')
- addGlobalStyle('.cadre_interieur { width: 950px !important; }')
- addGlobalStyle('.toggle { float: left; clear: left; }')
- addGlobalStyle('label { float: left; margin: auto; color: rgb(243, 197, 105); clear: right;}')
- $(document).ready(function() {
- $(".zone_aapDeco").html('<input type="checkbox" id="titlebarMod" class="toggle" checked="checked"><label>Titlebar Mod</label>');
- var timerID = setInterval(updateTitlebar, 60 * 1000);
- $("#titlebarMod").change(function() {
- if (this.checked) {
- updateTitlebar();
- timerID = setInterval(updateTitlebar, 60 * 1000);
- } else {
- clearInterval(timerID);
- }
- });
- });
- function updateTitlebar() {
- var timeLeft = $(".countdown_amount").html();
- var currentAction = $(".elementActivite").html();
- document.title = "("+timeLeft+") "+currentAction;
- //$("#favicon").attr("href","favicon2.png");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement