The Un-Official Proxomitron Forum

Full Version: Hotmail Link Fix Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
After hotmail changed their site around, certain links in email messages have been altered in a way that makes them unworkable.

I edited my hotmail web page for an example:

href="jol('http://ct.enews.eweek.com/rd/cts?d%3d186-1443-15-90-3996-160373-0-0-0-1');"

Every time I click on similar links I get:

http://ct.enews.eweek.com/rd/cts?d%3d186-1...-0-0-0-1');

I should get:

http://ct.enews.eweek.com/rd/cts?d%3d186-1...-160373-0-0-0-1

(The webpage doesn't clean up the ---> '); from the end of the link)

---

Hail Can anyone help me write a simple filter for removing these extra characters from the underlined link? I would do it myself, but the Proxo filter rules are somewhat complicated [wha] .

If its needed I use MyIE2 (IE6.0)

---

Webpage:
http://by19fd.bay19.hotmail.msn.com/cgi-bi...a861435a1059653

Link types that fail: href="jol('*');"
Troncc;

Hi, and Welcome to the forums!

more or less Wrote:... please help me strip the trailing single quote mark and closing parenthsis.

What I'd do in a case like this is fairly simple. After finding the link by matching on the offending text, I'd simply replace the junkascript function with a direct reference to the site that it's supposed to be going to. (Don't ask me why someone would think it's a good idea to use javascript where HTML does the job better, cheaper and faster. That's one of life's mysteries, as far as I'm concerned.)

Here's what I would use for the match string:

Code:
Match = "href="javascript:ol('\1');""

And my replace string would look like this:

Code:
Replace = "href="\1""

Beats the pants off of complicated quote stripping, etc. <_< Works every time for me! :P Also, since this filter is meant to be site specific, don't forget to put the appropriate address in the URL Match field of the filter. That way you can leave it on all the time, but Proxo won't waste time trying to execute it on every page. Wink

Hope this helped.


Oddysey
Thank you Oddysey. I appreciate it...
Troncc;

You're welcome.


Oddysey
Wow. That's the exact annoyance I was going to post.

Could you show me the entire code for that rule?
Stew;
Quote:Wow. That's the exact annoyance I was going to post.

Could you show me the entire code for that rule?
Well, that's what this forum is all about - solving problems once, instead of again and again. B)

Presumably, you're asking for the entire filter, in text format.... am I correct? Here's what I told Troncc he should use, in full form:

Code:
Name = "re-write hotmail javascript links"
Active = TRUE
URL = "[^/]++hotmail(|.msn).com/
Limit = 256
Match = "href="javascript:ol('\1');""
Replace = "href="\1""

Note that I placed Troncc's Hotmail website name in the URL field. Make sure this works for you, or else replace it with your specific website url.

HTH, and BTW, Welcome to the forum! Cheers


Oddysey
So the URL... that's the server, correct? If it was just the address for one page, filters wouldn't be very useful... cool. how do you make it match and replace something on every url?

Thanks for the code btw
(not sure if doubleposting is allowed)
The filter won't load... I mean, I've got it checked, and "apply"ed, but it doesn't change the source.... it works with the test html, but won't work for the real pages.
Try:

Code:
Name = "re-write hotmail javascript links"
Active = TRUE
URL = "[^/]++hotmail(|.msn).com/
Limit = 256
Match = "href=\"javascript:ol\(\'\1\'\);\""
Replace = "href="\1""

I escaped the ' " and ()s Eyes Closed Smile
wow, it worked! what did you change? I made my own homemade one for another site... can you tell me why it won't work? I just want it to make all references to d.whyville.net to be http://www.whyville.net


Name = "whyville link changer"
Active = TRUE
URL = "www.whyville.net"
Limit = 5000
Match = "d.whyville.net"
Replace = "www.whyville.net"
The filter works because in Proxomitron, the ', ", and () all have filtering functions. To specifically match one, you need to "nullify" its filtering function by placing a \ before it. So that before it looks like: (test) and after: \(test\Wink

Cheers

The Bytes Limit is too high; set it to 14. You can check approximately what your Bytes Limit should be by clicking on "Test Filter" in the filter edit window, pasting in the code and clicking on "Profile".

Most likely it isn't working because of the URL Match.

Try changing it to:

(www.|)whyville.net

the (www.|) part makes it match "http://www.whyville.net" as well as "http://whyville.net" (notice that there is no "www.")

EDIT: On whyville.net, I notice the links are "b.whyville.net", not "d.whyville.net" Smile!
Kye&# Wrote:The filter works because in Proxomitron, the ', ", and () all have filtering functions. To specifically match one, you need to "nullify" its filtering function by placing a \ before it. So that before it looks like: (test) and after: \(test\Wink

Cheers

The Bytes Limit is too high; set it to 14. You can check approximately what your Bytes Limit should be by clicking on "Test Filter" in the filter edit window, pasting in the code and clicking on "Profile".

Most likely it isn't working because of the URL Match.

Try changing it to:

(www.|)whyville.net

the (www.|) part makes it match "http://www.whyville.net" as well as "http://whyville.net" (notice that there is no "www.")

EDIT: On whyville.net, I notice the links are "b.whyville.net", not "d.whyville.net" Smile!
Arright, I tested 'er out and it said 32 bytes so I put that in.

Also, adjusted the url, to no avail.
btw there are a lot of links to d.whyville.net on the site, they're just inconspicuous I guess.
Try changing the URL match to:

(\w.|)whyville.net

Eyes Closed Smile
Hallelujah! It works finally! It was my fault actually. The frames on that site are annoying. Turns out everything I wanted to filter was on b.whyville.net.... yes. finally. Thanks! Hail
I have another annoyance already. Same site. But it's almost the exact same thing as the hotmail link thing.

I want
jpopMailWin( 'http://www.whyville.net/smmk/ymail/oneMail?id=55996263', 'OneMail' )

to be just the link
http://www.whyville.net/smmk/ymail/oneMail?id=55996263

(of course that number is dynamic)
Pages: 1 2
Reference URL's