Greasy Fork

Grepotemas

themes for the game Grepolis

目前为 2019-11-17 提交的版本。查看 最新版本

作者
JoeMan
评分
0 0 0
版本
0.0.3
创建于
2019-11-17
更新于
2019-11-17
大小
4.5 KB
许可证
暂无
适用于

// ==UserScript==
// @name Grepotemas
// @namespace Temas para Gerpolis
// @version 0.0.3
// @author JoeMan
// @updateURL https://raw.githubusercontent.com/AligatorJoe/Grepotemas/master/Grepotemas
// @downloadURL https://grepotemas.blogspot.com/2019/09/grepotemas.html
// @description themes for the game Grepolis
// @include http://*.grepolis.com/*
// @include https://*.grepolis.com/*
// @exclude https://*.forum.grepolis.com/*
// @exclude https://wiki.*.grepolis.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
// @icon https://i.imgur.com/qYhrH44.gif
// @copyright 2019, JoeMan
var myString = "Reload script Grepolis Themes";
alert(myString);
// @license-end
// ==/UserScript==
var version = '0.2';
/***********************************************************************************************
* Description :
* Version: 0.0.3
* Script created for you.
* Show themes blog.
* Grepotemas window is draggable.
* Open and wax your search without leaving the game.
* Grepotemas always near you.
* CONTENT LOCK: Users may need to disable protection due to "unsafe" iframe elements.
* Resolution: Just click on the shield icon in the address bar and enable unsafe content. USE AT YOUR OWN RISK.
*
**********************************************************************************************/
var uw = unsafeWindow || window, $ = uw.jQuery || jQuery, DATA, GM;
GM = (typeof GM_info === 'object');
console.log('%c-Grepotemas- Ready', 'color: blue; font-size: 1em; font-weight: bolder; ');
var dbf_tooltip = "Grepotemas";
$('.gods_area').append('

');
$('.dbf_btn').tooltip(dbf_tooltip);
$('.dbf_btn').on('mousedown', function () {
$('.dbf_icon').addClass('click');
});
$('.dbf_btn').on('mouseup', function () {
$('.dbf_icon').removeClass('click');
});
$('.dbf_btn').click(editDBF);
$('body').append('

Grepotemas all themes for your game:close
Grepotemas

');
function editDBF() {
var x = document.getElementById('dbfwndw');
if (x.style.display === 'none') {
x.style.display = 'block';
} else {
x.style.display = 'none';
}
}
$('.ui-dialog-titlebar-close').on('mousedown', function () {
$('.dbf_icon').addClass('click');
});
$('.ui-dialog-titlebar-close').on('mouseup', function () {
$('.dbf_icon').removeClass('click');
});
$('.ui-dialog-titlebar-close').click(editDBF);
$( "#dbfwndw" ).draggable();