Greasy Fork is available in English.

Linkify Plus Plus

Based on Linkify Plus. Turn plain text URLs into links.

< Părere la script-ul Linkify Plus Plus

Recenzie: Bun, script-ul merge

§
Postat în: 07-03-2016
Editat în: 07-03-2016

Can someone help me add evernote:/// links to this script?

Hi, Linkify Plus Plus is working awesome. I love it. I'm looking to modify my local version to linkify evernote:/// links. Can anyone help point me in the right direction?

Thanks!

§
Postat în: 07-03-2016

Try reading the tech-info for evernote:// links in the oficial website.

Structure

 evernote:///view/[userId]/[shardId]/[noteGuid]/[noteGuid]/

Where:

  • [userId] is the user id of the notebook owner
  • [shardId] is the shard id of the notebook owner
  • [noteGuid] is the guid of the note that is being linked to
§
Postat în: 08-03-2016

Hi. Thanks for the reply!
Yeah, I get the structure of the evernote links.
I'm just not sure where to add the code in this script to get something like...
evernote:///view/[userId]/[shardId]/[noteGuid]/[noteGuid]/
to linkify.

eightAutor
§
Postat în: 09-03-2016
  1. You have to edit RE to match :/// scheme.
  2. You have to edit RE to allow domains without TLDs.
  3. Include evernote:/// protocol at line 260

Should we support it officially?

§
Postat în: 11-03-2016

Hi eight! Thanks for the awesome script!

There are two types of links I use (both note-taking apps) that would be amazing to have officially supported.

Evernote, which looks like this...
evernote:///

OneNote, which looks like this...
onenote:
These might be much more difficult however because the links are complex...
onenote:#Books§ion-id={F1580D31-86DD-4975-9169-CBB0C3846D9D}&page-id={39F02142-9AAA-49C6-AD26-E47114E2BB1C}&end&base-path=https://d.docs.live.net/dc516d79aca53670/OneNote/@Home/Tab9.one

Evernote, seems easy.
OneNote, maybe not so easy.

What do you think?

eightAutor
§
Postat în: 11-03-2016

Currently the script is designed to find http URLs without the protocol.

We can make a scheme list, then simply match them without knowing the format of each scheme. That is, every word starting with onenote: or evernote:/// will be linkified.

Since it doesn't check the format, it may match something like onenote:hello.

For better results, we need the definition of those schemes, including allowed characters, the max length of each part... etc.

Some schemes from wiki: https://en.wikipedia.org/wiki/Template:URI_schemes

§
Postat în: 14-03-2016

I tried digging into the scheme details. Beyond what's written in this thread about the Evernote scheme I couldn't find any further information.

I think a simple matching scheme would be great. Neither protocol will occor in general writing.

eightAutor
§
Postat în: 01-04-2016

Starting from 7.3.0, LPP supports custom rules.

Try adding these lines:

onenote:\S+
evernote:///\S+

Postează un raspuns

Autentifică-te pentru a posta un răspuns.