Viadeo | Qui a consulté mon profil ?

By Jarod_ Last update Nov 15, 2009 — Installed 319 times.

There are 1 previous version of this script.

// ==UserScript==
// @name           Viadeo | Qui a consulté mon profil ?
// @namespace      http://blog.kodono.info/wordpress/greasemonkey/
// @description    Permet de voir le profil de ceux qui ont consulté le nôtre
// @include        http://www.viadeo.com/monreseau/consultation/*
// @version        2009111300
// ==/UserScript==

var aProfils = document.getElementsByClassName("textcenter");
for (var i=0; i < aProfils.length; i++) {
  var link  = aProfils[i].getElementsByTagName("a")[0];
  var image = aProfils[i].getElementsByTagName("img")[0];
  if (image.src != "/v_img/visuel/nophotof.jpg") {
    var m = image.src.match(/memberId=(\w*)/);
    if (m != null && m.length==2) link.href = "http://www.viadeo.com/recherche/profil/?memberId=" + m[1];
  }
}