-
Notifications
You must be signed in to change notification settings - Fork 0
/
lifeformbonus.js
37 lines (35 loc) · 1.04 KB
/
lifeformbonus.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// ==UserScript==
// @name LifeForm Bonus
// @namespace http://tampermonkey.net/
// @version 2023-12-11
// @description add shortcut button for lifeform menu
// @author Hari Seldon
// @match https://*.ogame.gameforge.com/game/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gameforge.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
const MenuLF = (function(){
function init(){
set_html();
}
function set_html(){
var url = window.location.hostname;
const result = `<li>
<span class="menu_icon">
<div class="menuImage lifeform ipiHintable">
</div>
</span>
<a class="menubutton ipiHintable" href="https://${url}/game/index.php?page=ingame&component=lfbonuses" target="_self">
<span class="textlabel">LifeForm Bonus</span>
</a>
</li>`;
document.querySelector( '#menuTable' ).innerHTML += result;
}
return {
init
};
})();
MenuLF.init();
})();