MetroSave

Add Save button to Metrolyrics site

Author
Zart
Daily installs
0
Total installs
5
Ratings
0 0 0
Version
2.2
Created
2017-03-13
Updated
2017-03-20
License
N/A
Applies to

Supports desktop and mobile versions. You can also use downloader as bookmarklet:

javascript:var%20r=document.querySelectorAll('.verse,.writers:not(:last-child),.lyric-source>*:not(:nth-last-child(-n+2))');for(var%20i=0,s=[];i<r.length;i++){for(var%20j=0;j<r[i].childNodes.length;s.push(r[i].childNodes[j++].textContent));if(r[i].tagName=='P')s.push('\n\n');else%20s.push('\n');}%20s=s.join('\n').replace(/\n{2,3}/g,'\n').replace(/\n/gm,'\r\n');%20var%20a=document.createElement('A');a.target='void';a.download=ml.lyricName+'.txt';var%20unsafe=/[^\0-\x7f\xa9]/,BOM='\ufeff';if(unsafe.test(s))a.href=encodeURI('data:text/plain;utf8,'+BOM+s);else%20a.href='data:text/plain;quoted-printable,'+escape(s);a.click();

In mobile browsers (where bookmarklets disabled) you can copy all except first "j", type "j" in address bar, "Paste", "Enter"

avascript:var%20r=document.querySelectorAll('.verse,.writers:not(:last-child),.lyric-source>*:not(:nth-last-child(-n+2))');for(var%20i=0,s=[];i<r.length;i++){for(var%20j=0;j<r[i].childNodes.length;s.push(r[i].childNodes[j++].textContent));if(r[i].tagName=='P')s.push('\n\n');else%20s.push('\n');}%20s=s.join('\n').replace(/\n{2,3}/g,'\n').replace(/\n/gm,'\r\n');%20var%20a=document.createElement('A');a.target='void';a.download=ml.lyricName+'.txt';var%20unsafe=/[^\0-\x7f\xa9]/,BOM='\ufeff';if(unsafe.test(s))a.href=encodeURI('data:text/plain;utf8,'+BOM+s);else%20a.href='data:text/plain;quoted-printable,'+escape(s);a.click();