NGU Stay Active

Keeps You Active in NGU ShoutBox

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        NGU Stay Active
// @namespace   http://www.nextgenupdate.com
// @description Keeps You Active in NGU ShoutBox
// @include     /^https?:\/\/www\.nextgenupdate\.com\/forums\/infernoshout\.php\?do=detach$/
// @include     /^https?:\/\/www\.nextgenupdate\.com\/forums\/(forumhome|index)\.php$/
// @include     /^https?:\/\/www\.nextgenupdate\.com\/forums.?.?$/
// @version     1.02
// @grant       none
// ==/UserScript==
$(document).ready(function(){function o(){console.log("Retrieiving the Active Shoutbox Users list"),setTimeout(function(){iboxoshouts.fetch_users()},3e3),console.log("Checking if you are in the Active Shoutbox Users list"),$("#shoutbox_users_frame").text().indexOf(e)<0?(console.log("You are not in the Active Shoutbox Users list"),console.log("Sending shout"),iboxoshouts.shout.ajax=new vB_AJAX_Handler(!0),iboxoshouts.shout.ajax.send("infernoshout.php","do=shout&message=["),setTimeout(function(){if(document.querySelectorAll("[ondblclick]").length>0){console.log("Deleting shout");var o=document.querySelectorAll("[ondblclick]")[0];iboxoshouts.shout.ajax.send("infernoshout.php","do=doeditshout&shoutid="+o.getAttribute("ondblclick").slice(41,-2)+"&shout=&delete=1"),iboxoshouts.fetch_users()}},3e3)):console.log("You are still in the Active Shoutbox Users list"),setTimeout(o,3e3)}var e="Sloth";console.log("Setting Idle Limit to -1"),iboxoshouts.idletimelimit=-1,o()});