first commit

This commit is contained in:
Jeena Paradies 2011-02-21 13:53:49 +01:00
commit c9cbaa7e87
5 changed files with 36 additions and 0 deletions

0
README Normal file
View file

0
background.html Normal file
View file

17
contentscript.js Normal file
View file

@ -0,0 +1,17 @@
var lyrics = document.getElementById("content_h").innerHTML;
var text = "<ul id='lyrics_ul'><li>" + lyrics.split("<br>").join("&nbsp;</li><li>") + "&nbsp;</li></ul>";
var content = document.getElementById("content");
content.style.visibility = "visible";
content.style.padding = "20px";
content.style.fontFamily = "Monaco, Courier, monospace";
content.style.fontSize = "12px";
content.innerHTML = text;
var lis = content.getElementsByTagName("li");
for (var i=0; i < lis.length; i++) {
if((i+1)%2) {
lis[i].style.backgroundColor = "#efefef";
}
lis[i].style.padding = "4px 10px";
}

BIN
icon128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

19
manifest.json Normal file
View file

@ -0,0 +1,19 @@
{
"name": "Lyrics copy & paste",
"version": "1.0",
"description": "Make lyrics copy & pastable.",
"icons": {
"128": "icon128.png"
},
"homepage_url": "http://jeena.net",
"permissions": [
"http://www.lyricsfreak.com/"
],
"content_scripts": [
{
"matches": ["http://www.lyricsfreak.com/*"],
"js": ["contentscript.js"],
"run_at": "document_end"
}
]
}