clear archive.org input fields

By SD-DAken Last update Apr 5, 2009 — Installed 57 times. Daily Installs: 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0

There are 1 previous version of this script.

// ==UserScript==
// @author         Andreas Jung
// @name           clear archive.org input fields
// @namespace      http://www.w3.org/1999/xhtml 
// @description    Removes http:// from the input fields on *.archive.org
// @include        http://web.archive.org/*
// @include        http://www.archive.org/*
// @include        http://archive.org/*
// ==/UserScript==

// This file is licensed under Creative Commons Attribution License
//
// http://creativecommons.org/licenses/by/3.0/
//
// Initial Developer:
// Andreas Jung (sd-daken.deviantart.com)
//
// Contributor(s):
//

inputs = document.getElementsByTagName("input");
for (i=0; i<inputs.length; i++) {
   if (inputs[i].getAttribute("value") == "http://") {
      inputs[i].setAttribute("value", "");
   }
}