Giter Club home page Giter Club logo

pin-unpin-tab's Introduction

Pin Unpin Tab is a Firefox WebExtension to pin or unpin a tab by

  • a long left mouse click anywhere on the webpage (an arguably more efficient alternative to the no longer possible double-click on tab)
    • This option can be enabled or disabled on the add-on's preferences page.
    • The minimum duration to hold down the click can be set.
    • This approach will not work on AMO webpages and the Firefox pages (eg., about:addons)
  • a click on the pin icon on browser toolbar
  • a keyboard shortcut Alt-P (Ctrl-Shift-P on macOS), which Firefox allows to customize. See the guide here.

Note that double-click on a tab (active or not) to pin/unpin is not going to be possible due to the limitations of the WebExtensions technology. Only Mozilla can fix it, not me. Look here and here for more details.

Credits

Icons made by Smashicons from www.flaticon.com is licensed by CC 3.0 BY

pin-unpin-tab's People

Contributors

dependabot[bot] avatar jyssh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rellikjaeger rizo

pin-unpin-tab's Issues

[BUG] Tabs pin themselves on their own

How to reproduce:

  1. Go to any big pages (big enough for scrollbar to appear), even some css files in this repository work as example
  2. Click & Hold the scrollbar without moving it
  3. The tab will pin / unpin itself depending on the current state

That's what happens to me personally.
It also happens on sites that are gallery-like, where there's a button to go to next image like in a slideshow and if you were to hold that button for long enough the site would pin / unpin itself.

This also causes another extension (https://github.com/dessant/search-by-image) to automatically pin all ShutterStock pages that it opens (not sure if it's the same issue as the one causing this but there's definitely something up with that too)

Note: this is pretty annoying and took me months to figure out what's causing it.

Auto Pin

Perform auto pin or unpin based on url or regex

drag detection

Love the extension. One killer thing though: I usually drag-and-drop text really often. If I do this, the tabs change from pinned to unpinned all the time, cause I seem to drag too slowly. I also don't want to increase the click wait time, cause that is annoying.

STEPS TO REPRODUCE:

  • click-drag text slowly

WHAT HAPPENS:

  • tab changes from pinned to unpinned or vice versa

WHAT SHOULD HAPPEN:

  • extension should detect considerable mouse movement, and NOT change pinned status. that should only happen when the mouse is not moved.

Does that sound sensible?

Keeps pinning stuff

I have no idea why but this addon keeps pinning tabs without my intention.

add link to this repo on its Firefox addon's page

Hi!

Had to go through a little bit of search to find your repo, I think people on the Firefox community would love to see that this addon is open source.

In any case, thanks a lot, this must be the addon I use the most.

Cheers

[Feature Request] Smaller icon

Would be nice to have a smaller/finer icon. On dark theme it's really "chunky" - stands out against all the other smaller elegant icons, and kinda distracting. :)

Great otherwise.

How do I use this addon with a Trackpad on a Mac?

Hello:

  1. I dont have a pin icon as shown after installing the addon.
  2. I have tried what I thought was my left mouse click, long hold.. (on my trackpad) and nothing happened. I am on a mac, sierra OSX. Thankyou
    Any chance, we could have the Tab to automatically PIN on open. So the default position is pinned?

The add-on should tolerate slight mouse movement in long click approach

As of v3.1, the add-on ignores mouse movement entirely. However, quite often, finger may not stay steady on a touchpad during long tap. In this situation, the add-on won't respond even when the user intends to pin/unpin the tab. So, the add-on should detect marginal mouse movement and trigger the long click action.

[Feature Request] Config options

Would be nice to have config options (enable / disable) for:

  • long-click feature
  • shortcut

For example, I like using the icon. So those other features get in the way - I'd like to disable them.

Pinning is lost on refreshes or click to same page

Hi,
Thank you for this nice add-on.
It would be nice if a pinned tab would not become unpinned when refreshed.
And also when the click is to the same page. For example you pin the tab of a ticket in some bug tracker, add a comment to the ticket, and alas the tab is now unpinned :-/.
Ideally this might be configurable in the addon preferences ;-).
Thanks in advance and eager to make tests if you agree with this feature.
phep

[Feature Request] address bar pin/unpin tab icon

Pin-Tab-option-in-Page-Actions-Menu-Firefox
In previous versions of Firefox, it could be pinned to the address bar through the right-click menu of the Pin Tab menu in the Page Actions menu. This feature has removed so I am using the Pin Unpin Tab extension, but I prefer the address bar button rather than the toolbar button.

On-page click feature always triggered on X11 Linux

I am using the latest version of the addon with Firefox Beta (59b8). The on-page click detection is overzealous when used from any pointing device with buttons I have available: Regardless of the interval setting on the preferences page, the pin/unpin action gets always triggered when clicking or tapping on a page, however long or short the click is.

I've ruled out the touchpad-driver specific setting ClickTime which configures the length of the click (time between ButtonPress and ButtonRelease X11 events), which is set to 100ms and should be short enough NOT to trigger the feature -- doesn't matter. Likewise, physical clicks from touchpad or mouse report the correct time between ButtonPress and ButtonRelease events when monitored outside of Firefox.

So I assume there's something awry going on in Firefox or the extension, probably related to button event timing, or timestamp resolution? Let me know what information or tests I should provide/perform.

about:support data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.