Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Teleports Title
- // @version 1.0
- // @author Nusax
- // @match https://*.margonem.pl/
- // @exclude https://www.margonem.pl/
- // @match https://*.margonem.com/
- // @exclude https://www.margonem.com/
- // @exclude https://forum.margonem.pl/
- // @exclude https://commons.margonem.pl/
- // ==/UserScript==
- let items = {
- "Mythar": {
- title: "Mythar"
- },
- "Bandyckie Chowisko - skarbiec": {
- title: "Renegat"
- },
- "Ithan": {
- title: "ITHAN"
- },
- "Wulkan Politraki - Piekielne Czeluście":{
- title: "Arcymag"
- },
- "Czeluść Chimerycznej Natury - przedsionek":{
- title: "Hydra"
- },
- "Dolina Centaurów":{
- title: "Centaur"
- },
- "Potępione Zamczysko - sala ofiarna":{
- title: "SYBA"
- },
- "Drzewo Życia p.2":{
- title: "NYMP"
- },
- "Urwisko Vapora":{
- title: "TERRO"
- },
- "Katakumby Gwałtownej Śmierci":{
- title: "CHOP"
- },
- "Sala Lodowej Magii":{
- title: "ARTEK"
- },
- "Altepetl Mahoptekan":{
- title: "MAHO"
- },
- "Katakumby Antycznego Gniewu - przedsionek":{
- title: "DRAK"
- }
- };
- ((isSi) => {
- function initAddon() {
- if (isSi ? g.init < 5 : !Engine.allInit) {
- setTimeout(initAddon, 2000);
- return;
- }
- Object.values(isSi ? g.item : Engine.items.fetchLocationItems("g")).forEach(item => {
- if (item.name == "Zakonny teleport do Świątyni Hebrehotha III"|| item.name == "Kamień teleportujący do Altepetl Mahoptekan"
- || item.name == "Eventowy Kamień Czerwonego Smoka" || item.name == "Kamień Czerwonego Smoka" || item.name == "Ulotny Kamień Czerwonego Smoka" || item.name == "Niepozorny Kamień Czerwonego Smoka"|| item.name == "Kamień teleportujący do Ithan"|| item.name == "Kamień teleportujący do Werbin"|| item.name == "Kamień teleportujący do Mythar"|| item.name == "Kamień teleportujący do Eder"|| item.name == "Kamień teleportujący do Karka-han"|| item.name == "Kamień teleportujący do Thuzal"|| item.name == "Kamień teleportujący do Ithan"|| item.name == "Źródło magicznej mocy") {
- Object.keys(items).map(el => {
- if (isSi ? item.stat.includes(el) : item._cachedStats.opis.includes(el)) {
- isSi ? $(`#item${item.id}`).append(`<div style="z-index: auto !important; position: absolute; bottom: 11; font-size: 8px; font-weight: bold; color: white; left: 30%; transform: translateX(-25%)">${items[el].title}</div>`) : $(`.item-id-${item.id}`).append(`<div style="z-index: auto !important; position: absolute; bottom: 11; font-size: 8px; font-weight: bold; color: white; left: 30%; transform: translateX(-25%)">${items[el].title}</div>`);
- }
- })
- }
- });
- }
- window.onload = initAddon();
- })(/interface=si/.test(document.cookie))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement