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":"",
|
"maxVersion":"",
|
||||||
"priority":100,
|
"priority":100,
|
||||||
"inRepository":true,
|
"inRepository":true,
|
||||||
"lastUpdated":"2009-05-29 22:30:00"
|
"lastUpdated":"2009-05-29 22:55:00"
|
||||||
}
|
}
|
||||||
|
|
||||||
function detectWeb(doc, url) {
|
function detectWeb(doc, url) {
|
||||||
|
@ -16,12 +16,10 @@ function detectWeb(doc, url) {
|
||||||
var nsResolver = namespace ? function(prefix) {
|
var nsResolver = namespace ? function(prefix) {
|
||||||
if (prefix == 'x') return namespace; else return null;
|
if (prefix == 'x') return namespace; else return null;
|
||||||
} : null;
|
} : null;
|
||||||
|
|
||||||
if (url.match(/\/groups\/[^\/]+\/items/)) {
|
// Skip private groups
|
||||||
var span = doc.getElementById('libraryGroupID');
|
if (url.match(/\/groups\/[0-9]+\/items/)) {
|
||||||
if (!span) {
|
return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var a = doc.evaluate('//li[@id="library-tab"]/a[text()="My Library"]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext();
|
var a = doc.evaluate('//li[@id="library-tab"]/a[text()="My Library"]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue