Coder Social home page Coder Social logo

damko / freedommarks-browser-webextension Goto Github PK

View Code? Open in Web Editor NEW
106.0 10.0 15.0 2.05 MB

A cross-browser webextension for Nextcloud Bookmarks

Home Page: https://addons.mozilla.org/en-US/firefox/addon/freedommarks/

License: GNU General Public License v2.0

HTML 22.47% CSS 13.57% JavaScript 63.97%
bookmark nextcloud firefox chrome

freedommarks-browser-webextension's Introduction

EDIT 2023-09-05

I'm archiving this projects as it's probably too old to be updated or useful to anyone.

Apologies for the long queue of unanswered issue.


I personally changed my approach towards bookmarks and since a few years now I'm using this workflow:

  • I send myself an email with the URL and, eventually, additional notes
  • the "envelop icon" present in Firefox next to the URL bar is very comfortable for sending
  • when I need to bookmark a group of tabs, I use the Save Tabs FF extension to quickly create the email content. I send the email with my email client.
  • when I need to search for a bookmark I use my email client search functionality

The main advantages of this approach:

  • super simple
  • hard to break, always works
  • works on any device
  • easily accessible, even from phone
  • easy to add any kind of note regarding the bookmark
  • easy to share (email forwarding)
  • easy to search

Browser extension for Nextcloud Bookmarks

This is a cross-browser extension for Nextcloud Bookmarks, a very popular bookmark application for Nextcloud.

It allows you to add, search and delete your Nextcloud Bookmarks.

This extension does not synchronize your browser bookmarks with Nextcloud Bookmarks and it will never perform any kind of synchronization between the browser and Nextcloud.

It has been tested on Firefox and Chrome but it should work also on Opera, Safari and Microsoft Edge.

Note: this extension doesn't work on OwnCloud but you can fork this repo and modify the code accordingly

Available features

  • it adds new bookmarks
  • it lists latest bookmarks
  • it searches for text among the bookmarks' title and description
  • it searches bookmarks by tag or by a tags combination (like 'tag1 AND tag2 AND tag3' and 'tag1 OR tag2 OR tag3')
  • it deletes a bookmark
  • you can choose if you want to display first the bookmark form or the search form

Missing features

  • it can not search for a bookmark starting from a URL (API lacks the method)
  • it can not retrieve the list of already set tags (API lacks the method)
  • it does not edit a bookmark
  • it lacks a translation (localization) system
  • it lacks translations

Disclaimer

This extension is ready for production but, of course, it can have bugs.

Screenshots

add_bookmark

save_bookmark

search_by_tag

search_by_tags_AND

search_by_tags_OR

Firefox screenshots

firefox_extensions_list

firefox_options

Chrome screenshots

Update 2018-02-28. Please don't use this extension for now. I didn't have the time to update it yet.

chrome_options

Help needed

I'd love to have any kind of feedback on this extension.

If you are a developer have a look at the code and please open issues or send greatly appreciated PRs.

If you are not a developer please open issues and tell me what's not working for you.

Thank you!

Installation

Server side

Update 2018-02-28: no changes are required on server side at the moment. Be sure you are running Nextcloud 12.04 or 12.05 and everything should work fine

Client side (browser)

Firefox You can install the Firefox AddOn from the Mozilla Webstore

Chrome Update @2017-01-16: You can install the Chrome Extension from the webstore Update 2018-02-28. Please don't use this extension for now. I didn't have the time to update it yet.

Don't forget to configure the addon settings:

  • URL of your Nextcloud server
  • Nextcloud username
  • Nextcloud password

If you want to modify or debug this extension:

Clone this extension repository in your pc:

git clone [email protected]:damko/freedommarks-browser-webextension.git

Open Firefox and paste this about:debugging in the URL bar

Click on the Load Temporary Add-on button and select the freedommarks-browser-webextension/src/manifest.json file

Click Open

Paste this about:addons in the URL bar and you will see the FreedomMarks extension listed among the others

Click on the button Preferences on the right of FreedomMarks and fill in the form with:

  • URL of your Nextcloud server
  • Nextcloud username
  • Nextcloud password

freedommarks-browser-webextension's People

Contributors

damko avatar pecharmin 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  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  avatar  avatar  avatar  avatar  avatar

freedommarks-browser-webextension's Issues

[Bug] tags are not saved

Using this extension in Firefox 59.0.2 64 bit on Linux (Arch Linux), the tags are not stored on the nextcloud server.

Furthermore, it is unclear how multiple tags need to be added (if it would work); should we separate tags with commas? Does it support multi-word tags? Of do we need to encapsulate those words in quotes?

Option to browse all bookmarks

I've just migrated my bookmarks from Pocket (a step long overdue), and use this addon now instead. What I much miss is the possibility to browse the list of all bookmarks inside the dropdown โ€“ latest additions first, and gladly "paged" (so I can see e.g. the newest 10 additions and, if needed, can "page back" to older ones step by step). Could you please add that?

Background: My workflow is to browse my feeds on my mobile device while e.g. commuting on the train, mark the posts I need to investigate deeper, and then do the latter on the PC โ€“ where it's much more convenient to make notes, copy/paste content etc. So I use a "LIFO" queue ("Last In First Out"), which is what Pocked does fine. Reason for switching is I want to have my data under my own control ๐Ÿ˜‰

Tag serach works like normal search

I'm using FredomMarks 0.1.2 with Firefox 63.0 on Ubuntu 18.04.1, my Nexcloud is version 14.0.3 and the Bookmarks app 0.13.1

It seems that the search for tags does the same thing as the normal search. Although I search for tags only, I get results which don't have such tag. Actually the results look the same regardless if I add the term in the "Terms" box or in the "Tags" box.
With above issue it's not a big surprise that the And/Or option for tag search also doesn't seem to work.

icon color

With the Firefox dark interface, the freedommarks icon is almost invisible. I suggest adding some color or white to the icon to make it more visible.

Allow searching of bookmarks without tags?

Hello,

it would be great to search for bookmarks without tags in the search field too. This would make searching more useful because bookmarks without tags could be found too.

add autocompletion for tags

First let me say thank you for this great browser plugin. I really like it! ๐Ÿ™‚

The main thing I miss: It would be great if I could autocomplete existing tags both when I create a new bookmark and in the tags search. Especially when I create a new bookmark it would be good to see what tags already exists to avoid to end up with many similar tags.

"Wrong password for username ..."

With NextCloud 12 and Firefox 55.0.2, just keeps giving "Wrong password for username" followed by my username. I'm using an app password, but the Passman extension is working fine. I've tried two separate app passwords and the URL with and without the / at the end. Using https with a LetsEncrypt certificate.

Chrome seems to be broken

I have the extension installed in Firefox and Chrome with the same configurations. It does work in Firefox but doesn't in Chrome. The developer console shows constant redirects (302) to the target Nextcloud instance.

Project is dead

Hi,

It looks like the project has been unmaintained since more than one year. I didn't found a viable alternative, and nowadays Freedommarks doesn't work anymore for me (I can read the bookmarks but I can't add any).
How do you guys do ?

Extension does not work anymore with NC Bookmarks 3.x

The extension does not work anymore since a couple of days (I'm using FF 77.0b1 now), but I think the NC Bookmarks recently changed their API, they have a couple of issues around :-)

I receive a "Bad Request" error when trying to save a new bookmark. I suspect related to this other issue

DOM fully loaded and parsed FreedomMarks.js:7:23
function: CurrentBrowserTab FreedomMarks.js:165:23
function: fillForm FreedomMarks.js:182:23
url: https://neo-layout.org/index_en.html FreedomMarks.js:183:23
Object { server_url: "https://mycloud", username: "username", password: "xxx`", bookmark_main_tab: true, search_main_tab: false }
FreedomMarks.js:19:27
bookmark tab is supposed to have focus FreedomMarks.js:35:31
function: saveBookmark FreedomMarks.js:266:23
endpoint: https://mycloud/index.php/apps/bookmarks/public/rest/v2/bookmark FreedomMarks.js:270:23
bookmarkurl: https://neo-layout.org/index_en.html FreedomMarks.js:275:23
Tags array: FreedomMarks.js:160:24
ajax error FreedomMarks.js:308:21
Status: error FreedomMarks.js:309:21
Error: Bad request FreedomMarks.js:310:21

Merge changes into official bookmark app?

Hello,

this is a very useful extension for bookmarks (the best I have seen until now), so it would be great to get your changes to the bookmarks app into the official one. This would make any modification on the server side needless and only the browser component would be needed which makes it very easy to handle.

Thank you

Title field does not get filled in automatically

When adding a new bookmark the add-on performs a look up to the nextcloud server to check if the URL is already present in the database. If it's present then the title stored in the db is fetched otherwise it should propose the title set in the header of the website.

At the moment the add-on fails in both cases

Uselessly prompts for credentials

On Firefox on MacOS, when I click the "Search" button on the toolbar tool, the extension prompts for credentials (that it already has in the settings). I click on Cancel and the search completes. Clearly it is using the credentials in settings (to save new bookmarks and to search the existing ones). The prompting is redundant.

Suggestion: UI feedback when pressing the save button

After pressing the Save button, nothing happens. I can't tell something is happening at all. A few long seconds later, it shows it's done. Could there be something like a spinner, or the save button vanishing, to tell the user it's doing some work.

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.