Skip to content

Instantly share code, notes, and snippets.

@benok
Last active May 23, 2024 10:05
Show Gist options
  • Save benok/e8ef4bc93cadd60fcd561879abac9409 to your computer and use it in GitHub Desktop.
Save benok/e8ef4bc93cadd60fcd561879abac9409 to your computer and use it in GitHub Desktop.
UserScript for Xikestor managed switch SKS3200M to auto-select English on login
// ==UserScript==
// @name Xikestor managed switch SKS3200M auto-select english on login
// @namespace https://github.com/benok
// @version 2024.05.23.1
// @description auto-select "English" on login (confirmed on firmware version 1.9)
// @author benok
// @match http://192.168.10.12/login.cgi
// @match http://(modify with your ip here)/login.cgi
// @icon https://xikestor.com/img/web_support/XikeStor.jpg
// @grant none
// @updateURL https://gist.githubusercontent.com/benok/e8ef4bc93cadd60fcd561879abac9409/raw/master/SKS3200M-auto-select-english.js
// @downloadURL https://gist.githubusercontent.com/benok/e8ef4bc93cadd60fcd561879abac9409/raw/master/SKS3200M-auto-select-english.js
// @supportURL https://gist.githubusercontent.com/benok/e8ef4bc93cadd60fcd561879abac9409
// ==/UserScript==
const click_english = async function () {
document.querySelector("#text_box > div:nth-child(7) > input[type=radio]:nth-child(2)").click(); // terriblly marked up HTML...
}
await click_english();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment