apacallyps Wrote:......
Am I missing a step in getting Sidki's Yahoo filter operational?
Dunno, I don't use his config set, so I'm not the one to ask, sorry.
My filter is a "bit" simpler, it goes like this:
PHP Code:
Name = "Yahoo login page cleaner, semi-auto login"
Active = TRUE
URL = "[^/]++login.yahoo.com\w/"
Limit = 32767
Match = "<body*(<p>Sign in.</p>|<h1>Sign in(<br>|) to Yahoo!</h1>)*</legend>"
Replace = "<body LoadOff="document.forms.login_form.login.value='YourYahooUsernameHere';document.forms.login_form.passwd.focus()">"
Explanation:
Note that I do not include my password. For some reason, I can't bring myself to do that. I do it for nearly all my other secure logins, but not for Yahoo. Call me a Luddite, but there we are.
What I've done is simply to make the onload statement supply the form's field with my username, and then set the focus to the password field, making it ready for me to type in said password. To add the already-filled-in password to your filter, remove the word 'focus()', and replace it with
value='YourPasswordHere', and that should take care of the job at hand.
I'm sure you noticed that the name of the filter is "page cleaner", right? So the filter actually looks for the first thing to ordinarily appear on the page, matches all the way to the form fields, and then tosses it all out the window.

That's half the battle.
At this point, another filter kicks in, and it "cleans" the rest of the page, like so:
PHP Code:
Name = "kill Yahoo's mail crap at bottom"
Active = TRUE
URL = "[^/]++login.yahoo.com\w/"
Limit = 24576
Match = "(<p id="sigcopys">|(^/>)\s</fieldset>)*</body>"
Replace = "\r\n"
"<input type="submit" name=".save" value="Sign In"></form>"
"\r\n</body>"
"\r\n</html>"
"\k"
This filter looks for some crud with a particular id parameter, or else the end of the fieldset (Yahoo sometimes mixes things up), which comes immediately after the fields but before the submit button. It then captures everything up to the closing Body tag. The replacement text simply puts the Submit button back, politely closes the Body and HTML tags, then kills the connection. All you see are two fields and a button - how cool is that?!

(Let alone how much quicker it loads.)
One more thing..... if you are using a filter to block the onLoad function in the Body tag, you'll have to either exclude it in the Match field, or use a list (like I did), here:
PHP Code:
Name = "OnLoad unloader"
Active = TRUE
URL = "^$LST(LoaderList)"
Limit = 16
Match = "on(L|l)oad="
Replace = "LoadOff="
In every instance where I use the onLoad function, I completely rewrite it for my needs. Otherwise, I let Scott do his thing.
OK, I think that's it. A two-part filter, and a list to use with the onLoad blocker (supplied in the default config set), and we're off to the races!
HTH
Oddysey