Skip to content

Instantly share code, notes, and snippets.

@feildmaster
Last active October 15, 2026 23:58
Show Gist options
  • Select an option

  • Save feildmaster/29ee1258a3a68b265ec761883c284b89 to your computer and use it in GitHub Desktop.

Select an option

Save feildmaster/29ee1258a3a68b265ec761883c284b89 to your computer and use it in GitHub Desktop.
Sample Underscript Plugin
// ==UserScript==
// @name Sample Plugin Script
// @namespace https://github.com/your_name
// @version 0.7.0
// @description try to take over the world!
// @author You
// @match https://*.undercards.net/*
// @exclude https://*.undercards.net/*/*
// @exclude https://undercards.net/*/*
// @require https://raw.githubusercontent.com/UCProjects/UnderScript/master/src/checkerV2.js
// @grant none
// ==/UserScript==
(function() {
// Set your plugin name
const pluginName = 'Sample Plugin';
const underscript = window.underscript;
function setup( ) {
const plugin = underscript.plugin(pluginName);
// For more details about plugins see: https://feildmaster.github.io/UnderScript/api/underscript/plugin
// Uncomment if you want settings
// registerSettings(plugin);
// Do your stuff here (or elsewhere, I suppose)
}
function registerSettings(plugin) {
// For full documentation see: https://feildmaster.github.io/UnderScript/api/plugin/settings
plugin.settings().add({
key: 'unique.key',
name: 'Your setting',
});
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment