Standard-Notes-Clipper icon indicating copy to clipboard operation
Standard-Notes-Clipper copied to clipboard

Possibility to configuring the URL of the SN sync server

Open piccobit opened this issue 7 years ago • 8 comments

Thanks a lot for this great extension.

Since I'm running a self-hosted SN server, adding the possibility to change the URL of the server from the default one (sync.standardnotes.org) to that of my own server would make your extension even more usable.

piccobit avatar Nov 26 '19 21:11 piccobit

This will be in version 1.3.0. Can you test and verify for me please?

johnjones4 avatar Nov 28 '19 17:11 johnjones4

https://github.com/johnjones4/Standard-Notes-Clipper/releases/tag/1.3.0

johnjones4 avatar Nov 29 '19 10:11 johnjones4

Hi John,

Apologies for the late response.

The following error message shows up after the installation:

Unrecognized manifest key 'applications'.

{
  "manifest_version": 2,
  "name": "Standard Notes Clipper",
  "permissions": [
    "activeTab",
    "storage",
    "contextMenus",
    "https://sync.standardnotes.org/*"
  ],
  "icons": {
    "16": "icon16.png",
    "48": "icon48.png",
    "128": "icon128.png"
  },
  "background": {
    "scripts": [
      "background/background.js"
    ],
    "persistent": true
  },
  "content_security_policy": "script-src 'self' https://sync.standardnotes.org; object-src 'self'",
  "content_scripts": [
    {
      "matches": [
        "http://*/*",
        "https://*/*"
      ],
      "js": [
        "content/content.js"
      ]
    }
  ],
  "browser_action": {
    "default_title": "Clip to Standard Notes"
  },
  "web_accessible_resources": [
    "content/content.css"
  ],
  "options_ui": {
    "page": "settings/index.html",
    "open_in_tab": true
  },
  "applications": {
    "gecko": {
      "id": "[email protected]"
    }
  },
  "description": "Clip content you find on the web and save it to your Standard Notes account",
  "version": "1.3.0"
}

As far as I remember, I also saw this error message the first time I had modified installed your extension. The strange thing is, that the extension after a reload started working at that time, but the new version just generates an empty note on my SN sync server.

Beside the URL of my self-hosted SN sync server, I also miss the possibility to change the SN sync server URL in the options menu of the extension.

piccobit avatar Nov 29 '19 12:11 piccobit

Mea culpa, I forgot to mention that I'm using Vivaldi as my preferred browser!

piccobit avatar Nov 29 '19 14:11 piccobit

Should be fixed now: https://github.com/johnjones4/Standard-Notes-Clipper/releases/tag/1.3.1

johnjones4 avatar Nov 29 '19 15:11 johnjones4

Yes, it is fixed now, but what I'm still missing is the possibility to change the URL also later in the options menu of the extension.

piccobit avatar Dec 01 '19 08:12 piccobit

I considered that, but based on my understanding of how SN's login system works, you wouldn't be able to switch servers after signing in - you'd have to re-authenticate with the different server in order to communicate. Therefore, I think it makes sense only to have the field for the server URL at the login prompt. However, if there's a use case you can explain that needs the server URL to be edited after signing in, I'm happy to add it.

johnjones4 avatar Dec 01 '19 13:12 johnjones4

I complete agree to you, just forgot that. Thanks for implementing this feature, keep up your great work!

piccobit avatar Dec 02 '19 06:12 piccobit