Don't show icon on private groups in zotero.org translator
This commit is contained in:
parent
dcd35f8e9b
commit
643073da54
2 changed files with 6 additions and 8 deletions
|
@ -1 +1 @@
|
|||
2009-05-29 22:30:00
|
||||
2009-05-29 22:55:00
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"maxVersion":"",
|
||||
"priority":100,
|
||||
"inRepository":true,
|
||||
"lastUpdated":"2009-05-29 22:30:00"
|
||||
"lastUpdated":"2009-05-29 22:55:00"
|
||||
}
|
||||
|
||||
function detectWeb(doc, url) {
|
||||
|
@ -16,12 +16,10 @@ function detectWeb(doc, url) {
|
|||
var nsResolver = namespace ? function(prefix) {
|
||||
if (prefix == 'x') return namespace; else return null;
|
||||
} : null;
|
||||
|
||||
if (url.match(/\/groups\/[^\/]+\/items/)) {
|
||||
var span = doc.getElementById('libraryGroupID');
|
||||
if (!span) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Skip private groups
|
||||
if (url.match(/\/groups\/[0-9]+\/items/)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var a = doc.evaluate('//li[@id="library-tab"]/a[text()="My Library"]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext();
|
||||
|
|
Loading…
Add table
Reference in a new issue