Closed rohitner closed 2 years ago
Interesting use case, are these expected to be configured by the user or we just provide them out of the box?
There are multiple ways to do it
javascript: window.location.href = window.location.href.replace(/github(1s)?.com/, function(match, p1) { return p1 ? 'github.com' : 'github1s.com' })
javascript: window.location.href = "https://outline.com/" + window.location.href
Benefit of 2. is user will be able to export the bookmarks to other devices
@rohitner Interesting, I did not know bookmarks could store javascript scripts too! Is this supported in Firefox?
I think this is how we can go about this:
Open to suggestions 🙂
Firefox does support javascript bookmarklets!
It would be great to know about rules you would like to have out of the box :).
@rohitner Great to hear that Firefox supports them too!
I'm not fully sure which ones we can add out of the box. Here are a few that came to my mind:
https://tinyurl.com/create.php?url=
for shortening current page linkoutline.com
and github1s.com
that you suggested also seem cool.
(The github1s.com
should only show up when user is on a GitHub repo though)Not sure how I feel about YouTube video downloading support out of the box, it sounds like it'll go against their terms.
Closing this as some of the actions discussed here have been added. Discussion on user-configured actions using bookmarklets/normal JS scripts can now be on #85
Few examples
outline.com/
before a web article removes all the clutter from the pagegithub.com/user/repo
withgithub1s.com/user/repo
opens the repo in an online vscode editorss
before a youtube link leads to page where the video can be downloaded35 is a special case of this functionality