Archived Comments (locked)

in
Subscribe to Archived Comments 8 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Mike Hicks Script's Author

I just loosened up the @include directives so it will now attempt to run on more pages. MySpace had been telling users to only login when they visit "www.myspace.com", but they're now breaking their own rules about the name of the login page. No code changes, just making it run more frequently.

 
Dink Scriptwright

doesn't seem to work again due to changes in myspace login page...
Please Update if possible...
TIA!!

 
Mike Hicks Script's Author

Hmm, I've never noticed the cursor being invisible like that on my systems (Firefox 2 and 3 on Linux and Windows). If anyone sees that issue, let me know what browser and OS you're using.

In other news, I've just changed the script around to only match on a substring like "Email_Textbox" for finding the relevant fields instead of searching for the specific element ID that they use (which changed yet again about a week ago). Hopefully this will be somewhat more robust. I'll upload my changes in a moment.

 
Chris4 Scriptwright

Comment posted below doesn't work, but the script (pdated 22nd May) works good. It's focused on the password box and when you start typing it types in the password box, but the cursor doesn't show which is a bit weird&annoying. Ah well.

 
Dink Scriptwright

I played around with the code and got it to work again...
copy and paste this code into the script to make it functional once more.

// ==UserScript==
// @name Focus password field on MySpace login page
// @namespace http://umn.edu/~hick0088/
// @description Put the cursor in the password field on the MySpace login screen (or the e-mail field if nothing's been filled in).
// @include http://www.myspace.com/
// @include http://www.myspace.com/*
// @include http://myspace.com/
// ==/UserScript==

(function() {
// Element IDs to use when searching through the document
idid = 'ctl00_ctl00_Main_cpMain_SplashDisplay_ctl00_Email_Textbox';
pwid = 'ctl00_ctl00_Main_cpMain_SplashDisplay_ctl00_Password_Textbox';
// Find the "E-Mail:" field
if (idfield = document.getElementById(idid)) {
if (idfield.value == "") {
// focus the "E-Mail:" field if it's blank.
idfield.focus();
} else {
if (pwfield = document.getElementById(pwid)) {
// otherwise, focus the "Password:" field
pwfield.focus();
}
}
}
})();

 
Dink Scriptwright

this script seems to need some attention as it is not working anymore....

 
Seifer Scriptwright

Yay! Thanks.
Was going to do that myself.. so annoying.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel