// ==UserScript== // @name Compact Mode Many More Links // @namespace http://www.panix.com/~eli/ // @description Adds a bunch of extra Function and Go To links to compact mode. // @include *kingdomofloathing.com/compactmenu.php* // @include *kingdomofloathing.com/topmenu.php* // ==/UserScript== var func_sel = document.getElementsByTagName("select")[0]; var func_opts = func_sel.getElementsByTagName('option'); var goto_sel = document.getElementsByTagName("select")[1]; var goto_opts = goto_sel.getElementsByTagName('option'); var addopt=null; var marker="::"; // originally "➤" but it changed line height var logpre="CompactModeGM: "; console.log(logpre + "Original sizes funct: " + func_opts.length + " and goto: " + goto_opts.length); // non-infinite loop safety: adding 18 items to goto menu var gcnt=goto_opts.length + 20; // and adding 15 items to functions var fcnt=func_opts.length + 17; // FUNCTION menu for (i=0;i