
// Amazon Affiliate Anti-Hijacker 6
// version 6.3 BETA!
// 2005-04-21
//
// --------------------------------------------------------------------
//
// Browser extensions, toolbars, and Greasemonkey user scripts can
// hijack your Amazon affiliate links.  This script tries to restore
// any damage done by such scripts.
//
// To use it, edit the line below that starts "var myAffiliateID ="
// to define your Amazon affiliate ID.  Then copy this script to
// your web server and link to it from each page on your site:
//
// <script type="text/javascript" src="/path/to/your/copy/of/antihijacker6.js"></script>
//

/* BEGIN LICENSE BLOCK
Copyright (C) 2005 Mark Pilgrim

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You can download a copy of the GNU General Public License at
http://diveintomark.org/projects/greasemonkey/COPYING
or get a free printed copy by writing to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
END LICENSE BLOCK */

var links, a, i;
links = document.getElementsByTagName("a");
for (i = 0; i < links.length; i += 1) {
    a = links[i];
    a.addEventListener = null;
    node = a.parentNode;
    while (node) {
        node.addEventListener = null;
        node = node.parentNode;
    }
}
document.addEventListener = null;
window.addEventListener = null;
window.setTimeout = null;

//
// ChangeLog
// 2005-04-21 - 6.3 - MAP - linted
// 2005-04-18 - 6.2 - MAP - tidy code
//
