Page 1 of 1

Evernote Web Clipper

Posted: Sun Aug 11, 2013 11:14 pm
by trin
The Evernote Web Clipper bookmarklet does not work for me.
Link https://evernote.com/webclipper/
Bookmarklet:

Code: Select all

javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})();
I have searched, and I have found other forum posts, but none that helped me.
NoScript says it has filtered a XSS attempt. It does not happen if I remove the check mark for "turn cross-site post requests into data-less get requests".

I have tried to add the following to the exceptions, but it has not worked:

Code: Select all

^https?://([a-z]*)\evernote.\com/[^"<>\?%]+$
^http://([a-z]*)\evernote.\com/[^"<>\?%]+$
^http://www\.evernote\.com/clip\.action$
^http://www\.evernote\.com/clip\.action\?url=
http://www\.evernote\.com/clip\.action\?url=
The first two are guesses considering what else is in the list. The others is from this forum.

I prefer to use the bookmarklet, and not the addon. The addon uses ram, and I don't want the icon on screen.
Any tips?

Re: Evernote Web Clipper

Posted: Mon Aug 12, 2013 2:19 am
by therube
First disable XSS.
If that doesn't work, then disable NoScript.
If that doesn't work, then figure that part out, re-enable NoScript & XSS, then go from there.

As far as XSS exception, start with http://evernote.com/webclipper/ & https://evernote.com/webclipper/.
If that works, then look to making it more specific ...


(I'm not saying to disable XSS, altogether, only for so long as to verify that it works with it disabled.)

Re: Evernote Web Clipper

Posted: Mon Aug 12, 2013 5:35 am
by Thrawn
Also, what is the exact message from the Error Console (Ctrl+Shift+J)? Probably on the Messages tab. You should be able to right-click on it and copy. Seeing the exact message will help to write an accurate exception rule.

Re: Evernote Web Clipper

Posted: Mon Aug 12, 2013 1:49 pm
by trin
It works with XSS off, and it works with NoScript disabled.

This is from clicking the bookmarklet on wikipedia.
Its too long to paste here.

Links
http://pastebin.com/XhiwqCNm
http://pastebin.com/CTkU4Scb

Heres a copy of the small stuff in the log after I clicked the bookmarklet:

Code: Select all

Timestamp: 2013-08-12 15:18:15
Warning: Use of attributes' nodeValue attribute is deprecated. Use value instead.
Source File: http://www.evernote.com/public/bookmarkClipper.js?13763134.94525
Line: 425







Timestamp: 2013-08-12 15:18:20
Warning: Unknown property 'zoom'.  Declaration dropped.
Source File: https://www.evernote.com/css/account.css?
Line: 635, Column: 8
Source Code:
    zoom:1;






	
Timestamp: 2013-08-12 15:18:20
Warning: Unknown property 'zoom'.  Declaration dropped.
Source File: https://www.evernote.com/css/account.css?
Line: 694, Column: 8
Source Code:
    zoom:1;






	
Timestamp: 2013-08-12 15:18:20
Warning: Unknown property '-moz-border-radius'.  Declaration dropped.
Source File: https://www.evernote.com/css/account.css?
Line: 990, Column: 20
Source Code:
  -moz-border-radius: 2px;






  
Timestamp: 2013-08-12 15:18:20
Warning: Error in parsing value for 'text-align'.  Declaration dropped.
Source File: https://www.evernote.com/css/account.css?
Line: 1111, Column: 14
Source Code:
  text-align: middle;






  
 Timestamp: 2013-08-12 15:18:20
Warning: Error in parsing value for 'background-repeat'.  Declaration dropped.
Source File: https://www.evernote.com/css/account.css?
Line: 1352, Column: 21
Source Code:
  background-repeat: none;






  
Timestamp: 2013-08-12 15:18:20
Warning: Error in parsing value for 'filter'.  Declaration dropped.
Source File: https://www.evernote.com/css/account.css?
Line: 1374, Column: 10
Source Code:
  filter: alpha(opacity = 25);






  
 Timestamp: 2013-08-12 15:18:20
Warning: Unknown property 'align'.  Declaration dropped.
Source File: https://www.evernote.com/css/account.css?
Line: 1934, Column: 9
Source Code:
    align: right;






	
Timestamp: 2013-08-12 15:18:20
Warning: Unknown property 'magin-left'.  Declaration dropped.
Source File: https://www.evernote.com/css/account.css?
Line: 1944, Column: 14
Source Code:
    magin-left: 150px;
	


Re: Evernote Web Clipper

Posted: Mon Aug 12, 2013 9:55 pm
by Thrawn
Try this exception:

Code: Select all

^https://www\.evernote\.com/clip\.action
Or if that one doesn't work:

Code: Select all

^https://www\.evernote\.com/clip\.action.*

Re: Evernote Web Clipper

Posted: Mon Aug 12, 2013 11:05 pm
by trin
Thrawn wrote:Try this exception:

Code: Select all

^https://www\.evernote\.com/clip\.action
Or if that one doesn't work:

Code: Select all

^https://www\.evernote\.com/clip\.action.*
Thanks!

Code: Select all

^https://www\.evernote\.com/clip\.action
Worked!

So it was probably the switch to SSL that changed the old tips from working...

Re: Evernote Web Clipper

Posted: Tue Aug 13, 2013 1:52 am
by Thrawn
trin wrote:

Code: Select all

^https://www\.evernote\.com/clip\.action
Worked!
Good to hear :). Thanks for posting the links to your error message.
So it was probably the switch to SSL that changed the old tips from working...
Yes, it was. Regular expression matching is very powerful, but not very forgiving.