Source
JavaScript::Bookmarklet Blog - 2005-01-26 - nofollow属性のリンクを強調よりjavascript:(
function(){
var links=document.getElementsByTagName('a');
for(i=0;i<links.length;i){
var theLink=links[i];
if(theLink.getAttribute('rel')=='nofollow'){
theLink.style.backgroundColor='red';
theLink.style.color='white';
theLink.style.fontWeight='bold';
theLink.style.textDecoration='none';
}
}
}
)();
Test
nofollowのリンクを強調
nofollow有
nofollow無
Reference
JavaScript::Bookmarklet Blog - 2005-01-26 - nofollow属性のリンクを強調http://bookmarklet.daa.jp/blog/archives/000048.html
via
www.textfile.org - 2005-01-27http://www.hyuki.com/tf/200501#i20050127133458