Skip to content

Instantly share code, notes, and snippets.

@Sitethief
Created July 17, 2021 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sitethief/9c29ff65397d1eb4a45d25d422e58231 to your computer and use it in GitHub Desktop.
Save Sitethief/9c29ff65397d1eb4a45d25d422e58231 to your computer and use it in GitHub Desktop.
Focus on gift nation input
// ==UserScript==
// @name NSFocusGiftNationInput
// @namespace sitethiefs-ns-scripts
// @version 0.1
// @description Focus on gift nation input
// @author Sitethief of Vylixan
// @match https://www.nationstates.net/*/gift=1
// @icon https://www.google.com/s2/favicons?domain=nationstates.net
// @grant none
// ==/UserScript==
(function() {
'use strict';
let input = document.getElementById('entity_name');
if (input) {
input.focus();
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment