From a2697d1dfbaf572e952c156f7074a0fa58611ece Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Mon, 19 Jun 2023 16:03:48 +0800 Subject: [PATCH] update: remove support to Zotero 6 --- README.md | 56 +++++-------------------------------------- addon/bootstrap.js | 2 -- addon/chrome.manifest | 3 --- addon/install.rdf | 35 --------------------------- scripts/build.mjs | 2 -- src/utils/locale.ts | 9 +++---- typing/global.d.ts | 2 ++ update-template.rdf | 30 ----------------------- update.rdf | 30 ----------------------- 9 files changed, 13 insertions(+), 156 deletions(-) delete mode 100644 addon/chrome.manifest delete mode 100644 addon/install.rdf delete mode 100644 update-template.rdf delete mode 100644 update.rdf diff --git a/README.md b/README.md index 43dcf97..8ec3c34 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,6 @@ This is a plugin template for [Zotero](https://www.zotero.org/). Plugins using t π[Zotero Plugin Template](https://github.com/windingwind/zotero-plugin-template)(This repo) -> πYou are currently in `bootstrap` extension mode. To use `overlay` mode, please switch to `overlay` branch in git. - > π Watch this repo so that you can be notified whenever there are fixes & updates. If you are using this repo, I recommended that you put this badge ([](https://github.com/windingwind/zotero-plugin-template)) on your README: @@ -40,7 +38,7 @@ If you are using this repo, I recommended that you put this badge ([); -- Compatibilities for Zotero 6 & Zotero 7.(using [zotero-plugin-toolkit](https://github.com/windingwind/zotero-plugin-toolkit)) ## Examples @@ -180,7 +177,7 @@ npm run release 1. Install a beta version of Zotero: https://www.zotero.org/support/beta_builds (Zotero 7 beta: https://www.zotero.org/support/dev/zotero_7_for_developers) -2. Install Firefox 60(for Zotero 6)/Firefox 102(for Zotero 7) +2. Install Firefox 102(for Zotero 7) 3. Copy zotero command line config file. Modify the commands that starts your installation of the beta Zotero. @@ -196,19 +193,15 @@ vim ./scripts/zotero-cmd.json 5. Build plugin and restart Zotero with `npm run restart`. -6. Launch Firefox 60(Zotero 6)/Firefox 102(Zotero 7) +6. Launch Firefox 102(Zotero 7) 7. In Firefox, go to devtools, go to settings, click "enable remote debugging" and the one next to it that's also about debugging -> Press `shift+F8` in FF 60, or enter `about:debugging#/setup` in FF 102. +> Enter `about:debugging#/setup` in FF 102. 8. In Zotero, go to setting, advanced, config editor, look up "debugging" and click on "allow remote debugging". -9. Connect to Zotero in Firefox. - -> In FF 60, click the hamburger menu in the top right -> web developer -> Connect..., then enter `localhost:6100`. - -> In FF 102, enter `localhost:6100` in the bottom input of remote-debugging page and click `add`. +9. Connect to Zotero in Firefox. In FF 102, enter `localhost:6100` in the bottom input of remote-debugging page and click `add`. 10. Click `connect` in the leftside-bar of Firefox remote-debugging page. @@ -270,37 +263,6 @@ This template registers the following variables to the global scope: Zotero, ZoteroPane, Zotero_Tabs, window, document, rootURI, ztoolkit, addon; ``` -### About Preference - -Zotero 6 doesn't support preference pane injection in bootstrap mode, thus I write a register for Zotero 6 or lower. - -You only need to maintain one `preferences.xhtml` which runs natively on Zotero 7 and let the plugin template handle it when it is running on Zotero 6. - -
- ![]() Zotero 7
- |
-
- ![]() Zotero 6
- |
-