Wordpress 'Press This' JS bookmarklet: bUsTEd!

Ask for help about NoScript, no registration needed to post
no.Man
Posts: 3
Joined: Sun Nov 29, 2009 3:32 am

Wordpress 'Press This' JS bookmarklet: bUsTEd!

Post by no.Man »

NS 1.9.9.18

tried a bunch of hacking around to get this to work, but the only fix is to temp allow the site which is no good since it needs to work with a multitude of sites. i've been unable to find exactly what option in NS is blocking this. domains changed in following code...

Code: Select all

javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://mysite.com/wp-admin/press-this.php',l=d.location,e=encodeURIComponent,g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2';function%20a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=720,height=570')){l.href=g;}}setTimeout(a,0);void(0);
looks like another fella fixed it by changing the code a bit, but it ain't working for me. here's his:

Code: Select all

javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://mysite.com/wp-admin/press-this.php',l=d.location,e=encodeURIComponent,g=f+'?u='+e(l.href)+'&t='+e(d.title)+'&s='+e(s)+'&v=2';function%20a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=720,height=570')){l.href=g;}};a();void(0);
EDIT: should mention that NS failing to prompt what was blocked doesn't help. also tried with logging to console enabled and nothing there either.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
User avatar
Giorgio Maone
Site Admin
Posts: 9546
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Wordpress 'Press This' JS bookmarklet: bUsTEd!

Post by Giorgio Maone »

The bookmarklet works for me in its original version (first listing of yours), even though what I could test is just that a popup open and the proper wordpress plugin URL is loaded.
Is there some other problem I should check for?
Could you try using NoScript Options|Reset and check if your problem persists?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
no.Man
Posts: 3
Joined: Sun Nov 29, 2009 3:32 am

Re: Wordpress 'Press This' JS bookmarklet: bUsTEd!

Post by no.Man »

hi Giorgio Maone - thanks for your input

i tried resetting NS and it didn't work. the problem is that, when i click the bookmarklet, nothing happens - no new tab, no feedback from NS, no console information (if i have write to console enabled in NS about:config). the only way it works is if i allow the site and this isn't reasonable since we're talking a multitude of sites. i'd like to provide more detail, but i don't know where to go next :?:

EDIT: also i tried disabling all other extensions that i though might present a conflict (AB+, BetterPrivacy, Control de Scripts, etc.) - no joy

also tried putting a wrong URL into the bookmarklet so it couldn't call my press-this.php just to see if i could atleast get a blank tab like you did - no joy.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
User avatar
Giorgio Maone
Site Admin
Posts: 9546
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Wordpress 'Press This' JS bookmarklet: bUsTEd!

Post by Giorgio Maone »

Could you try on a clean profile?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
no.Man
Posts: 3
Joined: Sun Nov 29, 2009 3:32 am

Re: Wordpress 'Press This' JS bookmarklet: bUsTEd!

Post by no.Man »

just tried it Giorgio. installed only NS - all default - and the custom button ext. that holds the JS. everything else was default. no good. tested with noscript.net. if i temp allow the domain it works, if not it doesn't. i did modify one of the nsLogin*.js files to force FF to remember 'nocache' passwords, but i doubt this would cause it.

EDIT: don't know if this'll help at all, but the bookmarklet script doesn't work for an empty (new) tab either.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Post Reply