External Link & Phishing Highlighter

By lucideer Last update Aug 21, 2008 — Installed 884 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 5 posts, 3 voices



Jesse Andrews Admin

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

 
eugenga Scriptwright

I continue using this script :-), and have some improvement
1. check if B.href not null (tag "a" without href, navigation made by onclick event)
2. in href javascript instead url
in this cases you script add emply space, I added something like this, or you can mark by javascript icon

var BH = B[A].href;
if(BH&&(!BH.match(document.domain+'|@|javascript:'))) {
var C=BH.split("/");

 
lucideer Script's Author

@eugenga
Thanks for that, have never noticed but I updated 'center left'. (Although not tested)

I actually prefer to keep the icon padding to a minimum (16px) so as not to affect the link positioning too much (it causes links to wrap on some sites)

 
eugenga Scriptwright

When in FF set large scale (few times press Ctrl +) with option 'Only text' - icon move up under text baseline. Or when link is in large font size. Simple solution to correct this:
// add
B[A].style.backgroundPosition="center left";

// change 16 px to 18px, optional, for 2px interval between icon and link
B[A].style.paddingLeft="18px";

 
lucideer Script's Author

It's handy for picking out phishing links, but don't rely on it as an icon only appears for some sites.
Doesn't work on GMail2 and some other highly AJAXified sites due to link rewriting and such.

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