Skip to content

Instantly share code, notes, and snippets.

@niku
Created August 18, 2008 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niku/5932 to your computer and use it in GitHub Desktop.
Save niku/5932 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Auto Login bike_news_plus
// @description Enters password in bike_news_plus's login
// @namespace http://niku.name/
// @include http://pita.paffy.ac/news/admin.cgi
// ==/UserScript==
(function() {
pre = document.referrer;
now = document.URL;
if(pre!=now){
document.forms[0][1].value = "YourPassword";
document.forms[0].submit();
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment