nextcloud / nextcloud/bookmarks

Recognize Shorten URLs

Open
#1,444 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
1.2k
Forks
189
Avg merge
5d 11h
Merged PRs (30d)
10

Description

Is your feature request related to a problem? Please describe.
For example, I would like to add a YouTube video "Big Buck Bunny" to my bookmarks.
https://www.youtube.com/watch?v=YE7VzlLtp-4
However I have stored the same video in shorten URL.
https://youtu.be/YE7VzlLtp-4
The bookmarklet may recognize a duplicated URL, however the shorten URL is not recognized.

javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=c(document.title),d=a.open('https://example.com/nextcloud/apps/bookmarks/bookmarklet?url='+c(b.location)+'&title='+e,'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=500px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300);})();

Describe the solution you'd like

  • Promote if a video URL has been stored in shorten URL in the bookmarklet, and vice versa.
  • Automatically shorten the URL.

Describe alternatives you've considered
I would like to know which lines to edit for personal use if the idea sounds not helpful.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the bookmarklet endpoint shown in the issue and compare how the two YouTube URL forms are handled. Clarify whether the expected result is duplicate recognition, automatic shortening, or both, then verify that each form is recognized consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.