[RESOLVED] Mendeley Importer and NoScript
-
tnumrych
[RESOLVED] Mendeley Importer and NoScript
I am having trouble successfully using NoScript and the Mendeley Web Importer. Mendeley is a research management tool and the Web Importer is a tool that "lets you import references and documents from over 30 academic databases with a single click." I don't know much about Java but the importer uses the following script to allow for automatic importing:
javascript:document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('src','http://www.mendeley.com/min.php/bookmarklet');
The only way I can use the Web Importer is to disable NoScript. It has been whitelisted.
Can anyone help?
Thanks.
javascript:document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('src','http://www.mendeley.com/min.php/bookmarklet');
The only way I can use the Web Importer is to disable NoScript. It has been whitelisted.
Can anyone help?
Thanks.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
- Giorgio Maone
- Site Admin
- Posts: 9546
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Mendeley Importer and NoScript
Does whitelisting both mendeley.com and the website you're trying to import from help?
Could you provide a working example?
Could you provide a working example?
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
-
tnumrych
Re: Mendeley Importer and NoScript
Not sure what you mean by "working example" but let me try to explain it better.
Without NoScript enabled, clicking on the Web Importer in the bookmarks toolbar opens a window lists all of the references and documents available on the current webpage (for example scholar.google.com) and gives you a choice of the references and documents you would like to import (but only if the source site you are attempting to import contains references/documents in a format compatible with Mendley of which there is a list on Mendeley.com). With NoScript enabled clicking on the Web Importer yields nothing, the window does not open which prevents me from choosing which references and documents I want to import.
Both mendeley.com and google.com are whitelisted.
Without NoScript enabled, clicking on the Web Importer in the bookmarks toolbar opens a window lists all of the references and documents available on the current webpage (for example scholar.google.com) and gives you a choice of the references and documents you would like to import (but only if the source site you are attempting to import contains references/documents in a format compatible with Mendley of which there is a list on Mendeley.com). With NoScript enabled clicking on the Web Importer yields nothing, the window does not open which prevents me from choosing which references and documents I want to import.
Both mendeley.com and google.com are whitelisted.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
- Giorgio Maone
- Site Admin
- Posts: 9546
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Mendeley Importer and NoScript
I suppose http://scholar.google.com is not enough, it needs to be populated with search results.tnumrych wrote:Not sure what you mean by "working example" but let me try to explain it better.
Without NoScript enabled, clicking on the Web Importer in the bookmarks toolbar opens a window lists all of the references and documents available on the current webpage (for example scholar.google.com)
Could you please provide me with the address of a page where I can launch the bookmarklet on and expect it to visibly work?
Thanks.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
-
tnumrych
Re: Mendeley Importer and NoScript
Any search query in scholar.google.com would work, but here is one:
http://scholar.google.com/scholar?hl=en ... =&as_vis=0
http://scholar.google.com/scholar?hl=en ... =&as_vis=0
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
- Giorgio Maone
- Site Admin
- Posts: 9546
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Mendeley Importer and NoScript
Please check latest development build.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
-
Dr. Gunn
Re: Mendeley Importer and NoScript
Giorgio, let me know if you need help getting the bookmarklet to be compatible with NoScript. I can put you in touch with one of the Mendeley devs if you need to know more about the bookmarklet.
Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.78 Safari/532.5
- Giorgio Maone
- Site Admin
- Posts: 9546
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Mendeley Importer and NoScript
Thanks, but as far as I can tell latest development build should just work. Doesn't it?Dr. Gunn wrote:Giorgio, let me know if you need help getting the bookmarklet to be compatible with NoScript. I can put you in touch with one of the Mendeley devs if you need to know more about the bookmarklet.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
-
AnotherMendeleyUser
Re: Mendeley Importer and NoScript
Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
- Giorgio Maone
- Site Admin
- Posts: 9546
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Mendeley Importer and NoScript
Unfortunately their code has changed in the meanwhile, and to cope with the asynchronous technique they're using now you need:
- latest development build
- Allowing both the current site and mendeley.com

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
-
AnotherMendeleyUser
Re: Mendeley Importer and NoScript
It works fine for me now! Lots of thanks. 
Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Re: [RESOLVED] Mendeley Importer and NoScript
Hi, I am using the current mendeley importer. It is basically a bookmark that contains a javascript:
javascript:document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('src','https://www.mendeley.com/minified/bookmarklet.js');
When I want to use it with google scholar mendeley gets blocked for cross site scripting. But I would like to allow it. I think that the soloution is to write an exeption like the one for google:
^https?://([a-z]+)\.google\.(?:[a-z]{1,3}\.)?[a-z]+/(?:search|custom|\1)\?
My attempt for google scholar is:
^https://scholar\.google\.de
But it does not work. Does anyone know how to write the exeption correctly? Maybe google scholar could get a built in exeption just like the google main page has?
Thanks in advance.
javascript:document.getElementsByTagName('body')[0].appendChild(document.createElement('script')).setAttribute('src','https://www.mendeley.com/minified/bookmarklet.js');
When I want to use it with google scholar mendeley gets blocked for cross site scripting. But I would like to allow it. I think that the soloution is to write an exeption like the one for google:
^https?://([a-z]+)\.google\.(?:[a-z]{1,3}\.)?[a-z]+/(?:search|custom|\1)\?
My attempt for google scholar is:
^https://scholar\.google\.de
But it does not work. Does anyone know how to write the exeption correctly? Maybe google scholar could get a built in exeption just like the google main page has?
Thanks in advance.
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Re: [RESOLVED] Mendeley Importer and NoScript
If the XSS filter is being triggered, then there should be messages in the Browser Console (Ctrl+Shift+J). Can you copy and paste them here?
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.
True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0
Re: [RESOLVED] Mendeley Importer and NoScript
Hi Thrawn,
I just noticed that the previously postet output has some youtube in there. So it should be the wrong output.
This has NoScript in it, so it should be the correct output:
[NoScript InjectionChecker] JavaScript Injection in u;setTimeout(function(){U={};},1000);}break;}t=(n==="SPAN"||n==="B"||n==="I"||n==="EM")&&t.parentNode;}});}(navigator.sendBeacon,{});gs_is_ios&&gs_uas("AppleWebKit")&&!gs_uas("CriOS")&&(gs_uas("OS
(function anonymous() {
(navigator.sendBeacon,{});gs_is_ios&&gs_uas("AppleWebKit") /* COMMENT_TERMINATOR */
DUMMY_EXPR
})
[NoScript XSS] Ein verdächtiger Upload zu [https://www.mendeley.com/import/html/## ... llapse%3Ac
I hope it is correct this time. I will delete the previous post if I can.
I just noticed that the previously postet output has some youtube in there. So it should be the wrong output.
This has NoScript in it, so it should be the correct output:
[NoScript InjectionChecker] JavaScript Injection in u;setTimeout(function(){U={};},1000);}break;}t=(n==="SPAN"||n==="B"||n==="I"||n==="EM")&&t.parentNode;}});}(navigator.sendBeacon,{});gs_is_ios&&gs_uas("AppleWebKit")&&!gs_uas("CriOS")&&(gs_uas("OS
(function anonymous() {
(navigator.sendBeacon,{});gs_is_ios&&gs_uas("AppleWebKit") /* COMMENT_TERMINATOR */
DUMMY_EXPR
})
[NoScript XSS] Ein verdächtiger Upload zu [https://www.mendeley.com/import/html/## ... llapse%3Ac
I hope it is correct this time. I will delete the previous post if I can.
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Re: [RESOLVED] Mendeley Importer and NoScript
Only Moderators can delete posts, I'll do it for you.
I can come up with an XSS exception from that console message but I'm unable to get enough information about Mendeley to determine whether it's actually XSS vulnerable or not. What they are doing is equivalent to XSS...
I can come up with an XSS exception from that console message but I'm unable to get enough information about Mendeley to determine whether it's actually XSS vulnerable or not. What they are doing is equivalent to XSS...
*Always* check the changelogs BEFORE updating that important software!
-