Skip to content

Instantly share code, notes, and snippets.

@romer romer/export-friend-stone.js Secret
Created Jan 4, 2018

Embed
What would you like to do?
granbluefantasy export friend stone
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 = [];
$('.prt-fix-support-wrap .prt-fix-support').each(function () {
var $spec = $(this).find('.prt-fix-spec'),
name = $spec.find('.prt-fix-name').text(),
lv = name.split(" ")[0];
name = name.replace(/Lv\d+\s*/, '');
result.push({name:name, level:parseInt(lv.replace('Lv', ''), 10), isMax: 0 < $spec.find('.bless-rank1-style').length, isFinal: 0 < $spec.find('.bless-rank2-style').length});
});
var outputs = [];
result.forEach(function (v) {
outputs.push(v.name == "" ? '' : (v.isFinal ? '' : (v.isMax ? '' : ''))+v.name);
});
return outputs.join("\t")
});
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=[];$(".prt-fix-support-wrap .prt-fix-support").each(function(){var e=$(this).find(".prt-fix-spec"),c=e.find(".prt-fix-name").text(),d=c.split(" ")[0];c=c.replace(/Lv\d+\s*/,"");a.push({name:c,level:parseInt(d.replace("Lv",""),10),isMax:0<e.find(".bless-rank1-style").length,isFinal:0<e.find(".bless-rank2-style").length})});var b=[];a.forEach(function(c){b.push(c.name==""?"":(c.isFinal?"":(c.isMax?"":""))+c.name)});return b.join("\t")});
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.