[Share] Toggle Side Panes (Library/Reader) #169
Replies: 7 comments 11 replies
-
右侧窗格切换还是有问题!!! |
Beta Was this translation helpful? Give feedback.
-
最新的beta56版本这个不能用了 |
Beta Was this translation helpful? Give feedback.
-
右侧,支持主界面+阅读状态下使用 /**
* Toggle Right Pane
* @author [MuiseDestiny](https://github.com/MuiseDestiny), windingwind
* @usage Assign a shortcut
* @link https://github.com/windingwind/zotero-actions-tags/discussions/169
* @see https://github.com/windingwind/zotero-actions-tags/discussions/169
*/
const Zotero = require("Zotero");
const Zotero_Tabs = require("Zotero_Tabs");
const document = require("document");
const DEFAULT_OPEN_PANE = "item";
if (item) {
return;
}
const splitter = document.querySelector(Zotero_Tabs.selectedType === "library" ? "#zotero-items-splitter":"#zotero-context-splitter");
if (splitter.getAttribute("state") == "collapsed") {
splitter.setAttribute("state", "");
return;
} else {
splitter.setAttribute("state", "collapsed");
return;
} |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the update. |
Beta Was this translation helpful? Give feedback.
-
这个动作好像有一点bug,当我点击文件夹,看整个文件夹的时候可以实现切换,但是当点击单个条目的时候,他就会无法实现,会出现隐藏又立马出现的bug,希望大佬能改进下 |
Beta Was this translation helpful? Give feedback.
-
请问把脚本加载到actions tages中,具体该如何使用 |
Beta Was this translation helpful? Give feedback.
-
Not working in the new window |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Toggle the left and right panes in the library, as well as in PDF/EPUB/HTML reader tab.
See #118 and #166
Event
None
Operation
Script
Data
Toggle Left Pane
Toggle Right Pane
Beta Was this translation helpful? Give feedback.
All reactions