Giter Club home page Giter Club logo

pinboard-pin's Introduction

Pinboard Pin Web Extension for Firefox

Pinboard Pin is a modern web extension for pinning pages on Pinboard with Firefox.

Pinboard is a fast, no-nonsense bookmarking site for people who value privacy and speed. Note that while the Pinboard Pin extension is provided by its author as free and open source software, Pinboard is a separate, paid service and you need to sign up for an account in order to use it. The author of Pinboard Pin is not affiliated with the provider of the Pinboard service. For any questions regarding the Pinboard service itself, please contact the Pinboard support.

This extension pretty much replicates the functionality of the Pinboard Plus extension that has been created for the Chrome browser, but it has been rewritten from scratch to support Firefox using the modern Angular framework instead of a mix of the older AngularJS, jQuery and Underscore libraries used by Pinboard Plus. This rewrite was also intended as a proof-of-concept that modern Angular is a viable platform for building web extensions.

The current version has been tested with Firefox 80 for Windows and Linux.

Features

  • Icon that changes its color to show whether the current page has been bookmarked in Pinboard.
  • Save a new bookmark for the current page in Pinboard, adding description and tags in a popup dialog.
  • Update and delete the bookmark for the current page in Pinboard from the popup.
  • Automatic creation of a description from a selected text on the page or using an existing meta tag on the page.
  • Enter or update tags using automatic suggestions in the popup dialog.
  • Use a keyboard shortcut (Alt + P) to open the popup dialog.
  • Use the context menu to open the popup dialog for the current page or to quickly save any link on the page.
  • Configurable dark mode for the popup dialog.

Installation

You can install the extension using the Mozilla Add-ons page.

Notes

Note that you must explicitly enable the option for displaying whether the page has already been saved on Pinboard, because this will send the URL of the page to the Pinboard server for every page. Therefore this feature is also automatically disabled in "incognito mode".

Also note that if you are using the Privacy Badger extension and Pinboard Pin shows an error when accessing Pinboard, make sure that the domain pinboard.in is not blocked in the filter settings of Privacy Badger, or simply put in on the whitelist of Privacy Badger.

Development

  • Follow the instructions outlined in DEVELOP.md if you want to build this extension on your own or run it in development mode.
  • Read my blog post Web Extensions made with Angular to learn more about how and why this extension has been created.
  • Contact the author, open GitHub issues or send in pull requests to contribute.

Author

Some Screenshots

Saving a page with Pinboard Pin:

Saving a page - light mode

Changing the Pinboard Pin settings:

Settings - light mode

Pinboard Pin also supports dark mode:

Saving a page - dark mode

pinboard-pin's People

Contributors

cito avatar mmcshane avatar rbeeger 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  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  avatar  avatar  avatar

pinboard-pin's Issues

Sorting by tag count not quite working right

Sometimes it seems to work and other times not. Are you sure it's treating the tag count as numbers correctly - because it could be sorting by the first digit of the tag count (or by sorting them as strings?)

Suggestion: Search characters not just from the beginning

Say I have a tag called "Fake_News". I start typing "new"...it does not show up in the tag list. I have to start typing "fake" for that tag t show up in the list. It would be nice if the search function worked regardless of character position. Thanks!

ER: Tab sets

ER: Add an option for saving all open tabs in a window as a Tab Set in Pinboard. Then add support for opening or referencing saved Tab Set from Pinboard.

Doesn't build

Followed build instructions, got an error

➜  Pinboard-Pin git:(master) ✗ npm run build

> [email protected] build /.../projects/Pinboard-Pin
> ng build --aot

fallbackLoader option has been deprecated - replace with "fallback"
loader option has been deprecated - replace with "use"
fallbackLoader option has been deprecated - replace with "fallback"
loader option has been deprecated - replace with "use"
fallbackLoader option has been deprecated - replace with "fallback"
loader option has been deprecated - replace with "use"
fallbackLoader option has been deprecated - replace with "fallback"
loader option has been deprecated - replace with "use"
Hash: 51c3b0eb06e7f39f4fe2
Time: 8447ms
chunk    {0} styles.bundle.css, styles.bundle.map, styles.bundle.map (styles) 1.88 kB {2} [initial] [rendered]
chunk    {1} main.bundle.js, main.bundle.map (main) 28 bytes [initial] [rendered]
chunk    {2} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry] [rendered]

ERROR in /.../projects/Pinboard-Pin/src/$$_gendir/app/pinpage/pinpage.component.ngfactory.ts (1366,142): Property 'url' does not exist on type '{ [key: string]: AbstractControl; }'.

ERROR in /.../projects/Pinboard-Pin/src/$$_gendir/app/pinpage/pinpage.component.ngfactory.ts (1366,205): Property 'url' does not exist on type '{ [key: string]: AbstractControl; }'.

ERROR in /.../projects/Pinboard-Pin/src/$$_gendir/app/login/login.component.ngfactory.ts (418,130): Property 'token' does not exist on type '{ [key: string]: AbstractControl; }'.

ERROR in /.../projects/Pinboard-Pin/src/$$_gendir/app/login/login.component.ngfactory.ts (418,196): Property 'token' does not exist on type '{ [key: string]: AbstractControl; }'.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `ng build --aot`
npm ERR! Exit status 1

Improve readibility of buttons

I love the new look of the extension, definitely looks much better. However, I find the text on the upper set of buttons difficult to read. Is it possible to use icons instead of text for these buttons?

null

I keep getting null when saving links with Pinboard+
https://addons.mozilla.org/en-US/firefox/addon/pinboard-plus/?src=search

It is in Pushpin for iOS. Should I be contacting the developer of Pushpin or is it a Pinboard+ issue?

The reason I ask is right now I am using a different Pinboard Firefox addon and it works fine without null on Pushpin.

If you need any examples just let me know. Thanks.

Show autocomplete tags in most-used order

It would be great if, when displaying the autocomplete options for a tag, they were shown in the order of which ones I've used the most in the past.

(Love the addon, by the way)

Shortcut not registering when

I edited my userChrome.css to create a borderless Firefox to make more like Qutebrowser for practical and aesthetic reasons, as I mainly use keyboard shortcuts. The instructions were taken from the Firefox forum here
It seems that because of that, the extension is not triggered when I ALT + P.
I use now this different extension which works by creating a pop-up. I miss the additional functionalities of Pinboard-Pin. I realize though it's an extreme edge case.

Is it impossible to fix this behaviour?

Cannot login

I just installed the extension from the mozilla addon page.

  1. Paste my API key into the popup
  2. Press the login button

Result: nothing happens, there ia a hover state for the button, but no click state and no other feedback

Not sure how to troubleshoot any further :/

Suddenly stopped working for me

Stopped working yesterday, Possibly when I installed Firefox 72.0.1.

Now fails to load any page from Pinboard.

I can still reach Pinboard through the browser no problem.

I tried uninstalling and reinstalling, but that didn't help.

Any idea what might be up?

New CSS is low contrast, not configurable, and a bit garish

Hi again, I noticed the CSS for this extension changed recently. I appreciate the attempts to give the popup a bit of a facelift, but the purple-on-purple look is quite difficult to read (aremycoloursaccessible.com ranks it as 6.34:1, which is a passing grade but not ideal for small text). I see that there seems to be a light version based on the screenshots in the repo, so I imagine that this might be based on prefers-color-scheme and is interpreting that I'm in dark mode? It would be really great if there were a way to configure this manually -- perhaps a configuration called "colour scheme" with options "light", "dark", and "auto", where "auto" is the current behaviour?

As an aside, the new CSS also seems to add a horizontal scrollbar on the popup for some reason:

Screenshot from 2020-08-24 07-34-22

How to donate?

Pinboard Pin on Firefox, Pinboard Plus on Chromium and Pinkt on Android became daily companions in the information management workflow of many power users.

While many of us aren't programmers, thus can't prepare pull-requests for bug-fixing and additional functionality, we'd still like to show gratitude for your tremendous long-standing efforts and also encourage further development. Have you got a profile on a recurrent donations platform such as Liberapay, a PayPal account, IBAN or other means to receive financial support?

All textboxes are greyed out

Since installing the latest version (0.2.3) the textboxes are all greyed out when trying to add a pin.

image

It was working with the previous version (earlier today), and I haven't changed anything. I tried restarting Firefox to see if that would make a difference, but sadly not.

ER: Binding a hotkey

Enhancement request: Bind a hotkey for sending current page to Pinboard (e.g. command+shift+D, option+/alt+p)

Two minor improvements

Thanks a lot for this nice Firefox add-on!

May I suggest two minor improvements to make this add-on even better?

  • When clicking the Pinboard button, would it be possible to automatically focus the tags field? It would save one click when you could start to fill in the desired tags for the new bookmark immediately.

  • Furthermore it would also be great when the suggested tags would not be case-sensitive. (For example: When I start typing "wor" the tag "WordPress" will not be suggested.)

Thanks again and kind regards
Wolfgang Weber

Turn off automatic fill of description

Would it be possible to have an option to turn off the automatic filling of the description field? I would prefer it to be blank, unless I enter it myself, and this is the default behavior of most Pinboard add-ons.

I do like the ability to fill the description if text is highlighted and also the option to automatically use blockquotes.

Thanks for your work! Easily my favorite of the Pinboard add-ons.

'+' characters are removed from tags when saving a page

When saving a page (new or existing), plus (+) characters are removed from tags. I've come across this problem because I usually save c++ tagged pages, which end up being c tagged.

This doesn't happen with minus (-), asterisk (*) or slash (/) characters, for example.

Tested with Firefox 69.0.

Saving the page via context menu

Got this feature request via email:

A way to add the url to Pinboard.in through the R-Click in f Firefox similar to save link to Pocket below?

pocket

Bug? ER? Pinboard-Pin doesn't work as expected in Tab Containers

I don't know how to best illustrate or explain this, but I use the Tab Containers feature of Firefox a lot and rely on it extensively.

I've got a container for Employer and often I'm doing some research or find something interesting and use Pinboard-Pin to pin it, and it looks like everything is working the way it should, but if I go to my Pinboard account, the bookmark isn't there.

If I click the toolbar icon for Pinboard-Pin in the tab I just tried to pin, it says that I recently added it n seconds ago or what-have-you, and sometimes I notice it even knows what keyword/tags I assigned when I sent it over, but if I go visit my u:emory URI, it isn't there. I have only briefly tried to determine if it happens in all Tab Containers, and it appears to act the same way unless I have a tab that is not in a Container. In that circumstance, the bookmark makes it over and everything works as intended.

I am also using another extension called Conex which is not as important to me as Pinboard-Pin nor Tab Containers, so if that's the root cause I'll ditch Conex if the workaround/fix is more effort than it's worth.

I'm using macOS High Sierra and 60.0b4 (64-bit) Aurora (though I see I need to restart for an update.)

Let me know how I can help investigate this issue if you aren't a user of Tab Containers and I'll see what I can do, bandwidth permitting.

Reduce extension authorization scope

The authorization request on installation asks for permission to "Access your data for all websites". This seems like a far wider scope than is necessary - at most, it should be accessing my data for pinboard.in, surely?

Tags are not being saved

I just noticed that my bookmarks have been saving without the tags I set. Based on my history this started happening between 4 - 7 days ago. so possibly since the last Firefox update. I do not use Tab containers or Conex as mentioned by #12. I'm using FFx 59.0.1 64bit Windows 10. Let me know if there is more info I can provide.

Is it possible to hide the 'popular' tags?

Hi, thanks for this extension! It's been really useful. I've been wondering whether it's possible to hide the "popular" tag category? They're always completely irrelevant, baffling noise and I don't think I've ever clicked on one. For example, the suggestions that come up for the page I'm currently on as I author this issue:

Screenshot from 2020-08-24 07-34-22

"1960s", "twitter" multiple times, some random person's twitter handle (is this their way of spamming everyone to try to get more followers?), "ifttt" (presumably a popular method of automating bookmark saving that nobody has ever manually added to a pin), etc...

The extension I previously used didn't show this stuff -- would it be possible to add an option to hide them?

hangs on "loading page from pinboard"

Sometime this week, the extension has stopped working. When I click the pin button, I get the popup but all the options are disabled while the title of the box reads "loading page from pinboard." I turned on live http headers but it doesn't seem to be producing any network activity at all.

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.