Last active
August 29, 2015 14:14
-
-
Save RottenMind/1acaafb64bcf889f8a81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...so deleting unwanted Charsettings can be done, but filter and remove | |
// If character numbers have changed reload page | |
if (charcount != settings["charcount"]) { | |
console.log("Reloading gateway to update character count"); | |
var keys = GM_listValues(); | |
var charSetting_list = GM_getValues(charSettings); | |
console.log("keys inside", keys,charSetting_list); | |
//var whats =(charSettings.length / settings["charcount"]); | |
//console.log("wht is this", whats); | |
for (i = 0; i < keys.length; i++) { | |
var key = keys[i]; | |
unsafeWindow.location.href = current_Gateway; // edited by RottenMind | |
return; | |
} | |
} | |
// Delete all saved settings // MAC-NW: Not sure this could of worked before with how it was coded... | |
if (wipe_set()) { | |
var settingwipe = wipe_set(); | |
if (settingwipe) { | |
var keys = GM_listValues(); | |
console.log("keys inside", keys); | |
for (i = 0; i < keys.length; i++) { | |
var key = keys[i]; | |
GM_deleteValue(key); | |
} | |
} | |
} | |
ZERO char, means 1 character, "tasklist0" not exist because char. has no list done. | |
var keys = GM_listValues() | |
["paused", "debug", "optionals", "autopurchase", "trainassets", "refinead", "openrewards", "autoreload", "autovendor_junk", "autovendor_kits_altars_limit", "autovendor_kits_altars_all", "autovendor_profresults", "autovendor_pots1", "autovendor_pots2", "autovendor_pots3", "autovendor_pots4", "autovendor_rank1", "autovendor_rank2", "autovendor_rank3", "autologin", "nw_username", "nw_password", "autoexchange", "bankchar", "banktransmin", "bankcharmin", "banktransrate", "charcount", "nw_charname0", "Event_Siege0", "Leadership0", "BlackIce0", "Jewelcrafting0", "Armorsmithing_Med0", "Armorsmithing_Heavy0", "Leatherworking0", "Tailoring0", "Artificing0", "Weaponsmithing0", "Alchemy0", "set_wipe", "autopurchase_leadership_assets"] | |
Here is 3x char., | |
var keys = GM_listValues() | |
["paused", "debug", "optionals", "autopurchase", "trainassets", "refinead", "openrewards", "autoreload", "autovendor_junk", "autovendor_kits_altars_limit", "autovendor_kits_altars_all", "autovendor_profresults", "autovendor_pots1", "autovendor_pots2", "autovendor_pots3", "autovendor_pots4", "autovendor_rank1", "autovendor_rank2", "autovendor_rank3", "autologin", "nw_username", "nw_password", "autoexchange", "bankchar", "banktransmin", "bankcharmin", "banktransrate", "charcount", "nw_charname0", "Event_Siege0", "Leadership0", "BlackIce0", "Jewelcrafting0", "Armorsmithing_Med0", "Armorsmithing_Heavy0", "Leatherworking0", "Tailoring0", "Artificing0", "Weaponsmithing0", "Alchemy0", "set_wipe", "autopurchase_leadership_assets", "nw_charname1", "Event_Siege1", "Leadership1", "BlackIce1", "Jewelcrafting1", "Armorsmithing_Med1", "Armorsmithing_Heavy1", "Leatherworking1", "Tailoring1", "Artificing1", "Weaponsmithing1", "Alchemy1", "nw_charname2", "Event_Siege2", "Leadership2", "BlackIce2", "Jewelcrafting2", "Armorsmithing_Med2", "Armorsmithing_Heavy2", "Leatherworking2", "Tailoring2", "Artificing2", "Weaponsmithing2", "Alchemy2"] | |
Here third listing, GM_values store order can change, and this char. has "tasklist" done, | |
["tasklist0", "paused", "debug", "optionals", "autopurchase", "trainassets", "refinead", "openrewards", "autoreload", "autovendor_junk", "autovendor_kits_altars_limit", "autovendor_kits_altars_all", "autovendor_profresults", "autovendor_pots1", "autovendor_pots2", "autovendor_pots3", "autovendor_pots4", "autovendor_rank1", "autovendor_rank2", "autovendor_rank3", "autologin", "nw_username", "nw_password", "autoexchange", "bankchar", "banktransmin", "bankcharmin", "banktransrate", "charcount", "nw_charname0", "Event_Siege0", "Leadership0", "BlackIce0", "Jewelcrafting0", "Armorsmithing_Med0", "Armorsmithing_Heavy0", "Leatherworking0", "Tailoring0", "Artificing0", "Weaponsmithing0", "Alchemy0", "set_wipe", "autopurchase_leadership_assets"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment