[GH-ISSUE #806] cobalt bookmarklet or similar #3375

Closed
opened 2026-04-13 11:52:34 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @muuyo on GitHub (Oct 5, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/806

describe the feature you'd like to see

i've always loved bookmarklets like the asteroids one from many eons ago
so Q: how feasible would it be to make a Cobalt based bookmarklet, installable through the about page or similar?
being able to be on any tweet or video and instantly pass it through to Cobalt would be terrific, even if just for donwloading memes or something

additional context

No response

Originally created by @muuyo on GitHub (Oct 5, 2024). Original GitHub issue: https://github.com/imputnet/cobalt/issues/806 ### describe the feature you'd like to see i've always loved bookmarklets like the asteroids one from many eons ago so Q: how feasible would it be to make a Cobalt based bookmarklet, installable through the about page or similar? being able to be on any tweet or video and instantly pass it through to Cobalt would be terrific, even if just for donwloading memes or something ### additional context _No response_
GiteaMirror added the feature request label 2026-04-13 11:52:34 -05:00
Author
Owner

@squeak9 commented on GitHub (Oct 6, 2024):

You can do one right now, related: #234
Here is one that doesn't check which website you're on, it just opens a new window and pastes the link of the current page you're on.
Make a new bookmark and give it a good name and then paste this into the URL field:

javascript:void(window.open('https://cobalt.tools/#'+location.href));

If you're on android then you could use https://github.com/TrianguloY/UrlChecker and the pattern checker module by adding this:

  "Try to download using cobalt.tools": {
    "regex1": "^(https?):\/\/(\\S*)$",
    "regex": "^(?!.*(cobalt.))(.*)",
    "replacement": "https:\/\/cobalt.tools\/#$2",
    "enabled": "true"

then any link you open or share into the app could optionally add the cobalt stuff.

<!-- gh-comment-id:2395387384 --> @squeak9 commented on GitHub (Oct 6, 2024): You can do one right now, related: #234 Here is one that doesn't check which website you're on, it just opens a new window and pastes the link of the current page you're on. Make a new bookmark and give it a good name and then paste this into the URL field: ```js javascript:void(window.open('https://cobalt.tools/#'+location.href)); ``` If you're on android then you could use https://github.com/TrianguloY/UrlChecker and the pattern checker module by adding this: ```json "Try to download using cobalt.tools": { "regex1": "^(https?):\/\/(\\S*)$", "regex": "^(?!.*(cobalt.))(.*)", "replacement": "https:\/\/cobalt.tools\/#$2", "enabled": "true" ``` then any link you open or share into the app could optionally add the cobalt stuff.
Author
Owner

@KwiatekMiki commented on GitHub (Oct 6, 2024):

from cobalt's discord server (link) and updated:

open in new tab version:

javascript:(()=>window.open('https://cobalt.tools/#'+encodeURIComponent(window.location)))()

replace current tab version:

javascript:window.location="https://cobalt.tools/#" + encodeURIComponent(window.location)

This will work on Firefox, but will completely nuke the previous page when you click it

<!-- gh-comment-id:2395465647 --> @KwiatekMiki commented on GitHub (Oct 6, 2024): from cobalt's discord server ([link](https://discord.com/channels/1049706293700591677/1049706293700591680/1133020174103105626)) and updated: open in new tab version: ```js javascript:(()=>window.open('https://cobalt.tools/#'+encodeURIComponent(window.location)))() ``` replace current tab version: ```js javascript:window.location="https://cobalt.tools/#" + encodeURIComponent(window.location) ``` **This will work on Firefox, but will completely nuke the previous page when you click it**
Sign in to join this conversation.