-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 1.添加知网附件下载功能, 2. 知网引用数可设置保存字段, 3. 更新设置页面UI及翻译
- Loading branch information
Showing
14 changed files
with
257 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
if (!Zotero.Jasminum) { | ||
var fileLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] | ||
.getService(Components.interfaces.mozIJSSubScriptLoader); | ||
var scripts = ['jasminum', 'ui', 'scrape', 'utils']; | ||
scripts.forEach(s => fileLoader.loadSubScript('chrome://jasminum/content/scripts/' + s + '.js', {}, "UTF-8")); | ||
} | ||
|
||
|
||
window.addEventListener( | ||
"load", | ||
function (e) { | ||
Zotero.Jasminum.init(); | ||
if (window.ZoteroPane) { | ||
var doc = window.ZoteroPane.document; | ||
// add event listener for zotfile menu items | ||
doc.getElementById("zotero-itemmenu").addEventListener( | ||
"popupshowing", | ||
Zotero.Jasminum.UI.displayMenuitem, | ||
false | ||
); | ||
} | ||
}, | ||
false | ||
if (!Zotero.Jasminum) { | ||
var fileLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] | ||
.getService(Components.interfaces.mozIJSSubScriptLoader); | ||
var scripts = ['jasminum', 'ui', 'scrape', 'utils']; | ||
scripts.forEach(s => fileLoader.loadSubScript('chrome://jasminum/content/scripts/' + s + '.js', {}, "UTF-8")); | ||
} | ||
|
||
|
||
window.addEventListener( | ||
"load", | ||
function (e) { | ||
Zotero.Jasminum.init(); | ||
if (window.ZoteroPane) { | ||
var doc = window.ZoteroPane.document; | ||
// add event listener for zotfile menu items | ||
doc.getElementById("zotero-itemmenu").addEventListener( | ||
"popupshowing", | ||
Zotero.Jasminum.UI.displayMenuitem, | ||
false | ||
); | ||
} | ||
}, | ||
false | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.