Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] I'm wondering if you can make it work with aminomancer's vertical tabs #1

Open
BloodDragooner2 opened this issue Sep 11, 2023 · 3 comments

Comments

@BloodDragooner2
Copy link

Great script! Wondering if you can make it work with another script, aminomancer's vertical tabs? Thanks a lot!!!!!

@Xinkai
Copy link
Owner

Xinkai commented Sep 19, 2023

I haven't heard of it before.

Is this the script you're referring to?
https://github.com/aminomancer/uc.css.js/blob/master/JS/verticalTabsPane.uc.js

This script in theory can support additional vertical tab managers as long as they are implemented as a "Firefox Sidebar".

However, as we all know, because UserChrome scripts are much more powerful than regular web extensions, it's likely your script does not implement side panels using "Firefox Sidebar".

I'll later post a tutorial here on how to find out about it when I have more time.

@Xinkai
Copy link
Owner

Xinkai commented Sep 19, 2023

How to add support for additional sidebar tab managers?

  1. Enable Browser Toolbox in Firefox.
    You need this feature so you can inspect the browser window itself as if you're inspecting regular webpages.
    You can follow the guide provided by Mozilla here.
  2. While your sidebar tab manager is active, inspect the Firefox window. (Still follow the guide above)
  3. In the Browser Toolbox window, execute document.getElementById("sidebar-box") after the >> prompt at the bottom.
    You should see a DOM element returned. You want to copy its sidebarcommand attribute and append it as a new item to SIDEBAR_ACTIONS in the script.
    Save the script.
  4. Restart Firefox or open a second browser window to see if it's working.
  5. You can undo the first step if you want.

@Xinkai
Copy link
Owner

Xinkai commented Sep 19, 2023

@BloodDragooner2 Can you try the steps above? If it works, a PR would be very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants