Mental Note – Videos to Watch Later

Tagged Under : , , , ,

Here are some videos on facebook that Joanne recommended me to watch. Cant watch them now, will catch up on these later. I thought I might as well share it with you.
http://www.facebook.com/video/video.php?v=166921723972&ref=nf <- Joanne Says its Superb

http://www.facebook.com/video/video.php?v=79099859899&ref=nf

http://www.facebook.com/video/video.php?v=1103004008858&ref=nf

http://www.facebook.com/video/video.php?v=76771486562&ref=nf

Do You Use the Google Counter Script for Search Rankings?

Tagged Under : , , , , , , , , , , , , , , , , , , , ,

As part of my work, I use Google Counter Script which is an addon for Greasemonkey. The script helps me add a numeric count at the left handside of each search results. This is a great help if you are looking for search rankings (although I am looking at this lesser by the day due to other search factors).

If you use this script as well for a long time you might see that the counter doesnt appear. What happened? Basically Google did some changes to its search results <div> tags and that caused the script to break.

If you like to a quick fix, here’s the source code that will fix the current SERPs on Google.I modded this from Bruno Torres’s Google Counter script. Basically added the parts that are bold in the sourcecode below.

// ==UserScript==

// @name            Google Counter
// @author          Bruno Torres <http://brunotorres.net/>
// @namespace       http://brunotorres.net/greasemonkey/
// @description     Adds an ordinal number at the left side of each search result on Google results pages. It’s useful if you want to know promptly what position your site is in, whithout counting results “by hand”.
// @include         http://google.*/*
// @include         http://www.google.*/*

// ==/UserScript==

(function() {
var ps = document.getElementsByTagName(‘li’);
var spans = document.getElementsByTagName(‘span’);
var page = 0;
var count = -1;
var num = window.location.href.match(“num=([0-9]+)”);

num = (num == null)? 10 : num[1];

for (var i = 0, span; span = spans[i]; i++)
if (span.className == ‘i’)
page = span.innerHTML – 1;

for (var i = 0, p; p = ps[i]; i++) {
if (p.className == ‘g’){
count++;
p.innerHTML = ‘<strong>’ + ((count + 1) + (page * num)) + ‘. </strong>’ + ps[i].innerHTML;
}else if (p.className == ‘g w0′){
count++;
p.innerHTML = ‘<strong>’ + ((count + 1) + (page * num)) + ‘. </strong>’ + ps[i].innerHTML;
}

}

})();