So, How do I install this?
Originally Posted by Garrett
www.xhtmlthis.com/tutorial/test.html
Update:
Download the Prototype Library, and include it on your page.
Then use this code:
Code:
Event.observe(window, 'load', function() {
$$('a[href^="http://"]').each(function(element) {
element.observe('click', function(event) {
window.location = 'http://www.xhtmlthis.com/tutorial/url.php?url='+this.href;
Event.stop(event);
}.bindAsEventListener(element))
});
});
It will look for all URLS with http:// in the beginning and do what you want when they click on it. So in this case go to a php page that asks them.
You can test it out, I have different examples on the page. When they redirect it will give you an example of what you wanted.
Update 2:
I am going to make a Greasescript for this, to prank people
All links will go to some random site.
|