Delicious.com Thumbs

By Cissy Shi Last update Apr 1, 2011 — Installed 1,674 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Cissy Shi Script's Author

@ Burn

The thumbnails will only show when you use "Full View".

 
Burn Scriptwright

@ Cissy Shi

Your script is not working, I made some changes if you want to update it:

function init() {
if(document.getElementById("bookmark-list-options")) {
add_style();
var li = document.getElementsByTagName('li');
for (var i=0; i<li.length; i++) {
if (/post/.test(li[i].className)) {
add_thumbnail(li[i].getElementsByTagName('h4')[0].childNodes[1]);
}
}
}
}

 
saji User

overflow: auto would work better than clear: left for li.post

and making init() more like this:


add_style();
	var li = document.getElementsByTagName('li'); 
	for (i = 0; i < li.length; i++) {
		if (li[i].className=="post") {
			add_thumbnail(li[i].getElementsByTagName('h4')[0].childNodes[0]);
		}
	}

prevents from misputting a thumbnail before "Using Firefox?" block for instance

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel