// ==UserScript== // @name Neopets - Bring back the Maps!! (Update: 4-15-22) // @description Displays interactable map images on World pages. Original map image and link mapping from Jellyneo: https://www.jellyneo.net/?go=guidetoneopia // @author A lazy fool // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js // @match *://www.neopets.com/explore.phtml* // @match *://www.neopets.com/water/index.phtml // @match *://www.neopets.com/water/index_ruins.phtml // @match *://www.neopets.com/medieval/index_farm.phtml // @match *://www.neopets.com/medieval/index_evil.phtml // @match *://www.neopets.com/pirates/warfwharf.phtml // @match *://www.neopets.com/worlds/index_geraptiku.phtml // @match *://www.neopets.com/art/ // @match *://www.neopets.com/worlds/index_roo.phtml // @match *://www.neopets.com/shenkuu/index.phtml // @match *://www.neopets.com/desert/sakhmet.phtml // @match *://www.neopets.com/desert/qasala.phtml // @match *://www.neopets.com/prehistoric/index.phtml // @match *://www.neopets.com/prehistoric/plateau.phtml // @match *://www.neopets.com/space/index.phtml // @match *://www.neopets.com/space/hangar.phtml // @match *://www.neopets.com/space/recreation.phtml // ==/UserScript== $("").appendTo("head"); /* Formatting */ var mapFormat, mapArea, mapImage = ''; var credits = '

(Map from Jellyneo.net)


'; var mapContainer = document.getElementsByClassName("page-title__2020"); var currentUrl = location.pathname; determineMap(); var formatting = '

' + mapFormat + credits + '
'; mapContainer[0].innerHTML += formatting; function determineMap() { /* Explore */ if(currentUrl == "/explore.phtml"){ $("").appendTo("head"); var firstMap = 'Neopia CentralKiko LakeRoo IslandMeridellBrightvaleHaunted WoodsKrawk IslandFaerielandVirtupetsTyranniaMaraquaMystery IslandLost DesertTerror MountainKreludorRotate'; var secondMap = 'Terror MountainVirtupetsMystery IslandLutari IslandAltadorKreludorShenkuuMoltaraRotate'; mapImage = '
'; mapArea = firstMap + secondMap;} /* Faerieland else if(currentUrl == "/faerieland/index.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/faerieland/faeriecity.phtml"){ mapArea= ''; mapImage = '';} */ /* Haunted Woods else if (currentUrl == "/halloween/index.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/halloween/index_fair.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/halloween/neovia.phtml"){ mapArea = ''; mapImage = '';} */ /* Kiko Lake */ /*else if (currentUrl == "/worlds/index_kikolake.phtml"){ mapArea = ''; mapImage = '';}*/ /* Krawk Island else if (currentUrl == "/pirates/index.phtml"){ mapArea = ''; mapImage = '';}*/ else if (currentUrl == "/pirates/warfwharf.phtml"){ mapArea = ''; mapImage = '';} /* Kreludor else if (currentUrl == "/moon/index.phtml"){ mapArea = ''; mapImage = '';} */ /* Maraqua */ else if (currentUrl == "/water/index.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/water/index_ruins.phtml"){ mapArea = ''; mapImage = '';} /* Meridell (Meri Acres Farm)*/ else if (currentUrl == "/medieval/index_farm.phtml"){ mapArea = ''; mapImage = '';} /* Darigan Citadel */ else if (currentUrl == "/medieval/index_evil.phtml"){ mapArea = ''; mapImage = '';} /* Moltara else if (currentUrl == "/magma/index.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/magma/caves.phtml"){ mapArea = ''; mapImage = '';} */ /* Lost City of Geraptiku (Mystery Island) */ else if (currentUrl == "/worlds/index_geraptiku.phtml"){ mapArea = ''; mapImage = '';} /* Neopia Central else if (currentUrl == "/objects.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/market_bazaar.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/market_plaza.phtml"){ mapArea = ''; mapImage = ''; }*/ else if (currentUrl == "/art/"){ mapArea = ''; mapImage = '';} /* Roo Island */ else if (currentUrl == "/worlds/index_roo.phtml"){ mapArea = ''; mapImage = '';} /* Shenkuu */ else if (currentUrl == "/shenkuu/index.phtml"){ mapArea = ''; mapImage = '';} /* Terror Mountain else if (currentUrl == "/winter/index.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/winter/icecaves.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/winter/terrormountain.phtml"){ mapArea = ' '; mapImage = '';}*/ /* Sakhmet City (Lost Desert) */ else if (currentUrl == "/desert/sakhmet.phtml"){ mapArea = ''; mapImage = '';} /* Qasala (Lost Desert) */ else if (currentUrl == "/desert/qasala.phtml"){ mapArea = ''; mapImage = '';} /* Tyrannia */ else if (currentUrl == "/prehistoric/index.phtml"){ mapArea = ' '; mapImage = ''; } else if (currentUrl == "/prehistoric/plateau.phtml"){ mapArea = ''; mapImage = '';} /* Virtupets Space Station */ else if (currentUrl == "/space/index.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/space/recreation.phtml"){ mapArea = ''; mapImage = '';} else if (currentUrl == "/space/hangar.phtml"){ mapArea = ''; mapImage = '';} mapFormat = mapArea + mapImage; }