Skip to content

Instantly share code, notes, and snippets.

@miraizu-k
Created February 18, 2023 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miraizu-k/ce79be666622cbeba0d7602805f4b141 to your computer and use it in GitHub Desktop.
Save miraizu-k/ce79be666622cbeba0d7602805f4b141 to your computer and use it in GitHub Desktop.
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