The West Chat Auto Opener

Automatically opens the alliance chat on startup.

目前为 2018-04-28 提交的版本。查看 最新版本

// ==UserScript==
// @name        The West Chat Auto Opener
// @author      Mr. Perseus
// @namespace   tw-perseus
// @description Automatically opens the alliance chat on startup.
// @include     https://*.the-west.*/game.php*
// @include     http://*.the-west.*/game.php*
// @include     https://*.tw.innogames.*/game.php*
// @include     http://*.tw.innogames.*/game.php*
// @version     0.0.2
// @grant       none
// ==/UserScript==

"use strict";(function(a){var b=document.createElement("script");b.setAttribute("type","application/javascript"),b.textContent="("+a+")();",document.body.appendChild(b),document.body.removeChild(b)})(function(){var a={version:"0.0.2"};a.InitUpdater=function(){setTimeout(function(){$.getScript("https://glcdn.githack.com/knom_retsam/the-west-public/raw/master/script-updater.js",function(){if(scriptUpdater.TWCAO>a.version)var b=new west.gui.Dialog("Update: The West Chat Auto Opener","<span>Update Available<br><br><b>v"+scriptUpdater.TWCAO+":</b><br>"+scriptUpdater.TWCAONew+"</span>",west.gui.Dialog.SYS_WARNING).addButton("Update",function(){b.hide(),location.href="https://gf.qytechs.cn/scripts/44030-the-west-chat-auto-opener/code/The%20West%20Chat%20Auto%20Opener.user.js"}).addButton("cancel").show()})},5e3)},a.OpenChat=function(){var a=0,b=function b(){a++;$("div[id^=\"room_alliance_\"] .row_title").length&&$("div[id^=\"room_alliance_\"] .row_title").trigger("click"),20>a&&!$("div[class^=\"chat_room room_alliance_\"]").length&&setTimeout(b,1e3)};setTimeout(b,5e3)},$(document).ready(function(){try{a.InitUpdater(),a.OpenChat()}catch(a){console.log(a.stack)}})});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址