The Easiest Way to Save and Share Code Snippets on the web

Your snipt has been migrated to #newsnipt successfully.

My Banner

javascript

posted: Jul, 29th 2010 | jump to bottom

// Hello World! example user script
 
// version 0.1 BETA!
 
// 2005-04-22
 
// Copyright (c) 2005, Mark Pilgrim
 
// Released under the GPL license
 
// http://www.gnu.org/copyleft/gpl.html
 
//
 
// --------------------------------------------------------------------
 
//
 
// This is a Greasemonkey user script.
 
//
 
// To install, you need Greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/748
 
// Then restart Firefox and revisit this script.
 
// Under Tools, there will be a new menu item to "Install User Script".
 
// Accept the default configuration and install.
 
//
 
// To uninstall, go to Tools/Manage User Scripts,
 
// select "Hello World", and click Uninstall.
 
//
 
// --------------------------------------------------------------------
 
//
 
// ==UserScript==
 
// @name          GVSU myBanner remember login
 
// @namespace     http://diveintogreasemonkey.org/download/
 
// @description   Makes the GVSU myBanner login form remeber usernames and passwords.
 
// @include       https://mybanner.gvsu.edu/PROD/*
 
// ==/UserScript==
 
 
 
if (document.getElementsByTagName) { 
 
var inputElements = document.getElementsByTagName("form"); 
 
for (i=0; inputElements[i]; i++) { 
 
 
 
inputElements[i].setAttribute("autocomplete","on"); 
 
//if current input element has the disableAutoComplete class set. 
 
}//loop thru input elements 
 
}//basic DOM-happiness-check 
7 views