Skip to content

Instantly share code, notes, and snippets.

@romer romer/gbf-pickup.js Secret
Last active Jun 14, 2017

Embed
What would you like to do?
gran blue fantasy item-pickup Bookmarklet
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;
});
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
You can’t perform that action at this time.