Page 1 of 1
Bookmarklets doesn't work when called from about:blank
Posted: Sat Jul 04, 2009 6:20 pm
by jerryawallace
Hi there,
I got a few simple bookmarklets that won't work anymore with Firefox 3.5/Noscript when called from about:blank
Example
here.
If I refer to the example:
1. Open a new tab
2. type "lh" in address bar
Result = not working
1. Open a new tab
2. Open any page on the noscript whitelist
3. type "lh" in address bar
Result = works
about:blank is on the whitelist but the bookmarklets won't execute. Tried latest NoScript version and development build but no luck. I think it stopped working since Firefox 3.5 (not 100% sure). Am I missing something?
Appreciate the help
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 11:52 am
by therube
Looks to be unrelated to NoScript.
I don't see a simple LH working at all. It still is returning,
http://lifehacker.com/search/%s rather then
http://lifehacker.com/.
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 1:42 pm
by jerryawallace
Hi,
just tested this with a new profile:
Code: Select all
javascript:if('%s') location.href='http://lifehacker.com/search/%s';else location.href='http://lifehacker.com/';
as bookmark address and lh as a keyword. Works perfectly. lh redirects to lifehacker.com and lh keyword redirects to
http://lifehacker.com/search/keyword
Also it worked for several months with Firefox 3.*, Noscript and several other addons. Maybe Mozilla changed something strange about the way about:blank gets handled with the 3.5 Update and now Noscript won't recognize about:blank correctly?
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 1:59 pm
by therube
?
Code: Select all
javascript:if('%s') location.href='http://lifehacker.com/search/%s';else location.href='http://lifehacker.com/';
Typing the above into the URL bar in FF2, FF3, & FF3.5 - all with NoScript disabled, all yield:
Bad Request
Your browser sent a request that this server could not understand.
And leave me at this URL:
http://lifehacker.com/search/%s
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 2:36 pm
by jerryawallace
Hi,
very strange. I did a quick screencast to show the stuff i try to achieve:
http://www.screencast.com/t/llbPrlVD
Done with a blank Firefox 3.5.
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 2:57 pm
by therube
And if you start FF in
Safe Mode do you get the same results?
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 3:03 pm
by jerryawallace
Hi,
yes the bookmarklets also work with my standard profile in safe mode.
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 3:56 pm
by therube
Anyone else care to chime in?
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 5:08 pm
by Giorgio Maone
It works fine on a clean
profile with just NoScript.
Are you using the unofficial development build of Tab Mix Plus?
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 8:42 pm
by jerryawallace
Yes I am. And when I deactivate TMP the problem is gone. Seems to be a known problem? Shame on me for not investigating more

Just a bug in TMP then? Thanks a lot for the help, guess I'll have to wait for a proper TMP version.
Greetings
Re: Bookmarklets doesn't work when called from about:blank
Posted: Sun Jul 05, 2009 10:10 pm
by Giorgio Maone
Re: Bookmarklets doesn't work when called from about:blank
Posted: Mon Jul 06, 2009 12:23 am
by jerryawallace
Works fine, thank you very much!
For most products you can only dream about support like that.
You, sir, are awesome

Re: Bookmarklets doesn't work when called from about:blank
Posted: Tue Jul 07, 2009 12:29 am
by therube
And why doesn't it work for me

?
Regardless of NoScript, regardless of about:blank, regardless of any extensions, any time I do not include a search parameter, I end up at:
If I do include a search parameter, it does successfully load the search page as expected.
At no point, does it seem, that the ELSE condition is being fulfilled?
Code: Select all
javascript:if('%s') location.href='http://lifehacker.com/search/%s';else location.href='http://lifehacker.com/';