MetroSave

Add Save button to Metrolyrics site

作者
Zart
日安装量
0
总安装量
5
评分
0 0 0
版本
2.2
创建于
2017-03-13
更新于
2017-03-20
大小
2.6 KB
许可证
暂无
适用于

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();