Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add bookmarklet #13

Open
dadatuputi opened this issue Mar 15, 2025 · 2 comments
Open

[feature] Add bookmarklet #13

dadatuputi opened this issue Mar 15, 2025 · 2 comments

Comments

@dadatuputi
Copy link

A bookmarklet is a simple javascript anchor element that users can drag to the bookmark that will run on the page when clicked.

Use case:

  1. User drags the anchor "Summarize with smry.ai" to their bookmark bar
  2. User goes to a website they want to use with smry.ai
  3. User clicks the bookmarklet, which loads the smry.ai url for the website

It's really basic javascript:

javascript:window.location.href=`https://smry.ai/${window.location.href}`;

You can test it out on this fiddle: https://jsfiddle.net/zLdgbvcm/

I'm happy to submit as a PR if you want.

@mrmps
Copy link
Owner

mrmps commented Apr 2, 2025

Please submit as a PR!

@mcdoubleyou
Copy link

Bookmarklets won't work on mobile?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants