-
-
Save miraizu-k/cada23e411e1e39471bcd104c5580858 to your computer and use it in GitHub Desktop.
gran blue fantasy item-pickup Bookmarklet
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
javascript:(function (d) { | |
function c(a) { | |
if (!a) { | |
return; | |
} | |
var f = document.createElement("TEXTAREA"); | |
document.body.appendChild(f); | |
f.value = a; | |
f.select(); | |
try { | |
document.execCommand("copy"); | |
} catch (b) { | |
return false; | |
} finally { | |
f.remove(); | |
} | |
return true; | |
} | |
c(d()) | |
})(function () { | |
if (location.hash.indexOf("#item") === false) { | |
return | |
} | |
var output = ""; | |
['allTreasureItemList'].forEach(function (value) { | |
var obj = Game.view[value] || null; | |
if (obj === null) { | |
return; | |
} | |
Object.values(obj).forEach(function (item) { | |
output += item.name + "\t" + item.number + "\n"; | |
}); | |
}); | |
return output; | |
}); |
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
javascript:(function(a){function b(d){if(!d){return}var e=document.createElement("TEXTAREA");document.body.appendChild(e);e.value=d;e.select();try{document.execCommand("copy")}catch(c){return false}finally{e.remove()}return true}b(a())})(function(){if(location.hash.indexOf("#item")===false){return}var a="";["allTreasureItemList"].forEach(function(b){var c=Game.view[b]||null;if(c===null){return}Object.values(c).forEach(function(d){a+=d.name+"\t"+d.number+"\n"})});return a}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment