Does anyone know anything about source codes?
When using the Japanese website goo for lyrics, they block the right click and copy functions...
I guessed there must be a workaround in finding some link in the source code to get to the lyrics through another way.
So when looking at the source code I found that the text in question should be located around here:
"/sp/lyric/print_json.php?callback=draw&id=w2GQizqDofjNZGwzp9WjjdjXlIrzgN%2FaBgYHflggGDg%3D%3AFFoLLcbgXyhHvpHF%2BsYqK%2B5gb%2BtIwhS9wtcUf3ESBdE%3D"
But I cannot find it. ^^
Can anyone help me? I want to learn about source codes! xD
Here is the webpage:
http://music.goo.ne.jp/lyric/LYRUTND42304/index.html
And the complete source code:
view-source:http://music.goo.ne.jp/lyric/LYRUTND42304/index.html
-Mesqueeb
When using the Japanese website goo for lyrics, they block the right click and copy functions...
I guessed there must be a workaround in finding some link in the source code to get to the lyrics through another way.
So when looking at the source code I found that the text in question should be located around here:
Quote:<script type="text/javascript">And I tried doing a couple of things with this part of the link:
var cn;
function xcanvas(uu, canvasNodes) {
cn= canvasNodes;
var s = document.createElement('script');
s.setAttribute('src', '/sp/lyric/print_json.php?callback=draw&id=w2GQizqDofjNZGwzp9WjjdjXlIrzgN%2FaBgYHflggGDg%3D%3AFFoLLcbgXyhHvpHF%2BsYqK%2B5gb%2BtIwhS9wtcUf3ESBdE%3D');
document.getElementsByTagName('head')[0].appendChild(s);
}
function draw(data){
var y = 20;
document.getElementById('canvas').height = ( ( data.length + 1 ) * y );
var ctx = cn[0].getContext("2d");
ctx.textBaseline = "top";
ctx.font = '15px MS Pゴシック';
var i = 0;
for ( i = 0; i < data.length; i++ ){
ctx.fillText(data[i ], 0, y * i );
}
}
// IE9以上
var msie=navigator.appVersion.toLowerCase();
msie=(msie.indexOf('msie')>-1)?parseInt(msie.replace(/.*msie[ ]/,'').match(/^[0-9]+/)):0;
if(msie>8){
cn= getElementById('canvas');
var s = document.createElement('script');
s.setAttribute('src', '/sp/lyric/print_json.php?callback=draw&id=w2GQizqDofjNZGwzp9WjjdjXlIrzgN%2FaBgYHflggGDg%3D%3AFFoLLcbgXyhHvpHF%2BsYqK%2B5gb%2BtIwhS9wtcUf3ESBdE%3D');
document.getElementsByTagName('head')[0].appendChild(s);
}
</script>
"/sp/lyric/print_json.php?callback=draw&id=w2GQizqDofjNZGwzp9WjjdjXlIrzgN%2FaBgYHflggGDg%3D%3AFFoLLcbgXyhHvpHF%2BsYqK%2B5gb%2BtIwhS9wtcUf3ESBdE%3D"
But I cannot find it. ^^
Can anyone help me? I want to learn about source codes! xD
Here is the webpage:
http://music.goo.ne.jp/lyric/LYRUTND42304/index.html
And the complete source code:
view-source:http://music.goo.ne.jp/lyric/LYRUTND42304/index.html
-Mesqueeb
Edited: 2012-01-05, 4:54 am

