[Neopets] Mysterious Symol Hole Reload Button

Simple scriptlet that adds a "Try again" button after diving down the hole to reload the page.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         [Neopets] Mysterious Symol Hole Reload Button
// @namespace    https://greasyfork.org/en/scripts/444939
// @version      0.3
// @description  Simple scriptlet that adds a "Try again" button after diving down the hole to reload the page.
// @author       Piotr Kardovsky
// @match        http*://www.neopets.com/medieval/symolhole.phtml
// @match        http*://neopets.com/medieval/symolhole.phtml
// @icon         http://www.neopets.com//favicon.ico
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    let smg = document.querySelector('.symolhole_content');
    let enb = document.getElementById('enterhole');
    let btn = document.createElement('button');
    btn.classList.add('button-default__2020', 'button-red__2020', 'btn-single__2020');
    btn.innerText = "TRY AGAIN!";
    btn.style.display = 'none';
    btn.addEventListener('click', () => { window.location.reload(); });
    smg.append(btn)
    enb.addEventListener('click', () => {setTimeout(() => {btn.style.display = 'block'}, 6600)});
})();