Grepotemas

themes for the game Grepolis

  1. // ==UserScript==
  2. // @name Grepotemas
  3. // @namespace Temas para Gerpolis
  4. // @version 0.0.4
  5. // @author JoeMan
  6. // @description themes for the game Grepolis
  7. // @include http://*.grepolis.com/*
  8. // @include https://*.grepolis.com/*
  9. // @exclude https://*.forum.grepolis.com/*
  10. // @exclude https://wiki.*.grepolis.com/*
  11. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
  12. // @icon https://i.imgur.com/qYhrH44.gif
  13. var myString = "Reload script Grepolis Themes";
  14. alert(myString);
  15. // @license-end
  16. // ==/UserScript==
  17. var version = '0.0.4';
  18. /***********************************************************************************************
  19. * Description :
  20. * Version: 0.0.4
  21. * Script created for you.
  22. * Show themes blog.
  23. * Grepotemas window is draggable.
  24. * Open and wax your search without leaving the game.
  25. * Grepotemas always near you.
  26. * CONTENT LOCK: Users may need to disable protection due to "unsafe" iframe elements.
  27. * Resolution: Just click on the shield icon in the address bar and enable unsafe content. USE AT YOUR OWN RISK.
  28. *
  29. **********************************************************************************************/
  30. var uw = unsafeWindow || window, $ = uw.jQuery || jQuery, DATA, GM;
  31. GM = (typeof GM_info === 'object');
  32. console.log('%c-Grepotemas- Ready', 'color: blue; font-size: 1em; font-weight: bolder; ');
  33. var dbf_tooltip = "Grepotemas";
  34. $('.gods_area').append('<div class="btn_settings circle_button dbf_btn" style="top:55px;right:111px;z-index:10;"><div class="dbf_icon js-caption" style="margin:1px 0px 0px -3px;width:120px;height:120px;background:url(https://i.imgur.com/qYhrH44.gif) no-repeat 0px 0px;background-size:33%"></div></div>');
  35. $('.dbf_btn').tooltip(dbf_tooltip);
  36. $('.dbf_btn').on('mousedown', function () {
  37. $('.dbf_icon').addClass('click');
  38. });
  39. $('.dbf_btn').on('mouseup', function () {
  40. $('.dbf_icon').removeClass('click');
  41. });
  42. $('.dbf_btn').click(editDBF);
  43. $('body').append('<div id="dbfwndw" class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-draggable js-window-main-container dbfwndw" tabindex="-1" style="position:relative;outline: 0px; z-index: 1031; height: auto; width: 800px; top: 96.5px; left: 124px; display: none;" role="dialog" aria-labelledby="ui-id-6"><div id="drag" class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span id="ui-id-6" class="ui-dialog-title">Grepotemas all themes for your game:</span><a href="#" class="ui-dialog-titlebar-close ui-corner-all" role="button"><span class="ui-icon ui-icon-closethick">close</span></a></div><div class="gpwindow_frame ui-dialog-content ui-widget-content" style="display: block; width: auto; min-height: 0px; height: 600px;" scrolltop="0" scrollleft="0"><div class="gpwindow_left"></div><div class="gpwindow_right"></div><div class="gpwindow_bottom"><div class="gpwindow_left corner"></div><div class="gpwindow_right corner"></div></div><div class="gpwindow_top"><div class="gpwindow_left corner"></div><div class="gpwindow_right corner"></div></div><div id="gpwnd_1005" class="gpwindow_content"><div class="game_border"><div class="game_border_top"></div><div class="game_border_bottom"></div><div class="game_border_left"></div><div class="game_border_right"></div><div class="game_border_corner corner1"></div><div class="game_border_corner corner2"></div><div class="game_border_corner corner3"></div><div class="game_border_corner corner4"></div><div class="game_header bold" style="height:18px;"><div style="float:left; padding-right:10px;">Grepotemas</div></div><p style="height:501;width:792;z-index=2000;min-height:501px;min-width:792;height:100%;width:100%;"><iframe src="https://grepotemas.blogspot.com/" name="dbfiframe" allowTransparency="true" frameborder="0" style="height:501;width:792;z-index=2000;min-height:501px;min-width:792;height:100%;width:100%;";></iframe></p></div></div>');
  44. function editDBF() {
  45. var x = document.getElementById('dbfwndw');
  46. if (x.style.display === 'none') {
  47. x.style.display = 'block';
  48. } else {
  49. x.style.display = 'none';
  50. }
  51. }
  52. $('.ui-dialog-titlebar-close').on('mousedown', function () {
  53. $('.dbf_icon').addClass('click');
  54. });
  55. $('.ui-dialog-titlebar-close').on('mouseup', function () {
  56. $('.dbf_icon').removeClass('click');
  57. });
  58. $('.ui-dialog-titlebar-close').click(editDBF);
  59. $( "#dbfwndw" ).draggable();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址