URL rewrite?

Ask for help about FlashGot, no registration needed to post
Post Reply
rwgk

URL rewrite?

Post by rwgk »

Hi,
I have
Flashgot 1.2
Mac OS 10.5.7
Firefox 3.5.2
SpeedDownload 5.2.1

A web page serves ULRs like this:

javascript:showWaitText();document.location.href='http://1.2.3.4/0123456789ABCDEF/?m=dl'

Is there a way to get Flashgot to rewrite the URL, to remove the leading javascript code up to the
quote and the trailing quote?

Ralf
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: URL rewrite?

Post by therube »

URL where this occurs?


Perhaps the Build Gallery can help - using the JavaScript Functions to strip the unwanted text.

(Don't ask me how to do that?)


Otherwise, if you save the links to a file, then used Vim (or SED or similar) something like this...

Code: Select all

s/.*=\'// ;  remove everything up to "http"
s/\'$//   ;  remove closing ' character
(If you don't know Vim or SED, that probably won't help you much.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 SeaMonkey/1.1.17
rwgk

Re: URL rewrite?

Post by rwgk »

> URL where this occurs?

save.tv

It isn't openly accessible AFAIK; I pay a fee.

> Perhaps the Build Gallery can help - using the JavaScript Functions to strip the unwanted text.

It looks complicated... (and I only have one URL at a time)

> Otherwise, if you save the links to a file, then used Vim (or SED or similar) something like this...

It still requires lots of clicks and keystrokes. My hope is to make it work with Alt-click again,
as it was in the past until save.tv decided to put the javascript stuff around the URL. :-(

Ralf
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: URL rewrite?

Post by Giorgio Maone »

FlashGot 1.2.0.1 makes an attempt at it.
How does it work for you?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
rwgk

Re: URL rewrite?

Post by rwgk »

Giorgio Maone wrote:FlashGot 1.2.0.1 makes an attempt at it.
How does it work for you?
It works perfectly! Alt-Click does the trick again. What a relief!

Thank you very much!!!

Ralf
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Post Reply