Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create .tsv file #6

Closed
thucngv opened this issue Dec 16, 2021 · 3 comments
Closed

Create .tsv file #6

thucngv opened this issue Dec 16, 2021 · 3 comments

Comments

@thucngv
Copy link

thucngv commented Dec 16, 2021

Some people don't know how to create .tsv files.
I wrote this code to help generate .tsv file automatically after login
After login success, in Chrome open Developer Tools, switch to tab Console, paste the bellow script => Enter

(()=>{var e=[["name","address","sign","msg"],["Wallet1",sessionStorage.getItem("account-address"),sessionStorage.getItem("connect-sign"),sessionStorage.getItem("connect-signMsg")]],t="";e.forEach(function(n,a){dataString=n.join("\t"),t+=a<e.length?dataString+"\n":dataString});!function(e,t,n){var a=document.createElement("a");n=n||"application/octet-stream",navigator.msSaveBlob?navigator.msSaveBlob(new Blob([e],{type:n}),t):URL&&"download"in a?(a.href=URL.createObjectURL(new Blob([e],{type:n})),a.setAttribute("download",t),document.body.appendChild(a),a.click(),document.body.removeChild(a)):location.href="data:application/octet-stream,"+encodeURIComponent(e)}(t,"wallets.tsv","text/tsv;encoding:utf-8")})();

@locbud
Copy link

locbud commented Dec 18, 2021

how can we run the code above @thucngv ?

@thucngv
Copy link
Author

thucngv commented Dec 21, 2021

how can we run the code above @thucngv ?

After login success, in Chrome open Developer Tools, switch to tab Console, paste the Script => Enter

@MetaMon-game-player
Copy link
Owner

Added to README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants