3

I am trying out bookmarklet functionality on a mobile platform (Android 10).

The bookmarklet is named test and points to the code

javascript:alert('boo')

How I test:

  • Save the bookmarklet as described above to the bookmarks folder;
  • Go to some random website;
  • In the address bar, start typing test;
  • The browser will recognize the bookmark and offer it in a menu;
  • Click it.

Results:

Question: Is this intentional on Mozilla's part and/or expected or am I missing something?

grobber
  • 1,083
  • 1
  • 9
  • 20

2 Answers2

3

It turns out bookmarklets do indeed fail to work on the latest Android Firefox. This was pointed out on the Mozilla support forum after I asked, with a link to the relevant github issue.

grobber
  • 1,083
  • 1
  • 9
  • 20
  • On iOS they are even intentionally disabled :( ([github ticket #5626](https://github.com/mozilla-mobile/firefox-ios/issues/5626)) – kdb Aug 04 '21 at 07:35
  • Does this work for you now? The issue is closed but it's still not working for me. – z0r May 07 '23 at 04:09
1

Firefox android doesn't let you run Bookmarklets the traditional way, But, there is a workaround, you can call Bookmarklet from the address bar,

First, you have to manually create a Bookmarklet by editing it,

For example, javascript:alert('foo'); and name it.

Then, on the page you waant to run this, search for the bookmarklet name in the address bar, and click on it.

Bookmarklet on Android

Below Tutorial might be helpful.

https://paul.kinlan.me/use-bookmarklets-on-chrome-on-android/