paul.kinlan.me Open in urlscan Pro
76.76.21.123  Public Scan

URL: https://paul.kinlan.me/use-bookmarklets-on-chrome-on-android/
Submission: On September 22 via manual from JP — Scanned from JP

Form analysis 1 forms found in the DOM

GET https://www.google.com/search

<form method="GET" target="_blank" action="https://www.google.com/search">
  <input type="hidden" name="q" value="site:https://paul.kinlan.me">
  <input name="q" type="search" placeholder="Search the archives...">
</form>

Text Content

Home | Projects | Journal | Twitter



USE BOOKMARKLETS ON CHROME ON ANDROID

Paul Kinlan May 21 2020

I love Bookmarklets, they let you quickly customise web sites in a lighter way
than a Chrome extension, and for the longest time (5 years), I thought it wasn't
possible to run Bookmarklets on Chrome on Android.

It turns out, I was wrong. You just can't run them the traditional way.

The way that most people access Bookmarks on Android doesn't let you run a
Bookmarklet, i.e, via "Select Bookmarks" in the main menu;

And then then picking their bookmark from the list of bookmarks

This is because Chrome on Android seems to have no knowledge of the current page
the user is on, and therefore can't execute JavaScript against that page.

I was today years old when I learnt that you can find bookmarks via the Address
Bar, and they keep the context of the current page. This means that you can run
Bookmarklets.

Voila.

Now that I know you can use bookmarklets via the address bar, this opens up a
lot of options for slightly deeper customisation on Android than what is
possible today.




SEE ALSO

 * Sorry Safari team
 * Bookmarklet to download all images on a page with the File System API
 * Quick Console bookmarklet for Desktop and Mobile
 * Quick Picture in Picture Bookmarklet
 * Scroll to text bookmarklet


TAGS

 * bookmarklet
 * chrome
 * android

View Source | Make a correction | Correction history

About Me: Paul Kinlan

I lead the Chrome Developer Relations team at Google.

We want people to have the best experience possible on the web without having to
install a native app or produce content in a walled garden.

Our team tries to make it easier for developers to build on the web by
supporting every Chrome release, creating great content to support developers on
web.dev, contributing to MDN, helping to improve browser compatibility, and some
of the best developer tools like Lighthouse, Workbox, Squoosh to name just a
few.

Book a consultation
Lock Thread
Login

Add CommentM ↓   Markdown
UpvotesNewestOldest

U
umaar
0 points
2 years ago

One of your bookmarklets is called record screen. How'dya do that, getUserMedia?

P
Paul Kinlan
0 points
2 years ago

GetDisplayMedia API.

Commento