Skip to content

Instantly share code, notes, and snippets.

@romer romer/export-friend-list.js Secret
Last active Jan 7, 2018

Embed
What would you like to do?
granbluefantasy export friend list
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("#profile/") === false) {
return
}
var result = [];
JSON.parse(JSON.stringify(Game.view.friend_model.attributes.list.models)).forEach(function (v) {
result.push(v.id + "\t=HYPERLINK(\"http://game.granbluefantasy.jp/#profile/\"&INDIRECT(ADDRESS(ROW(), COLUMN() - 1)), \"\")\t"+ v.name + "\t" + (parseInt(v.last_login) * 60 - (0 <= v.last_login.indexOf("以内") ? 1 : 0)));
});
return result.join("\n");
});
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("#profile/")===false){return}var a=[];JSON.parse(JSON.stringify(Game.view.friend_model.attributes.list.models)).forEach(function(b){a.push(b.id+'\t=HYPERLINK("http://game.granbluefantasy.jp/#profile/"&INDIRECT(ADDRESS(ROW(), COLUMN() - 1)), "★")\t'+b.name+"\t"+(parseInt(b.last_login)*60-(0<=b.last_login.indexOf("以内")?1:0)))});return a.join("\n")});
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.