-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Bookmarklets doesn't work from bookmarks #2871
Comments
I'm also able to reproduce this. Annoyingly, typing |
Fun fact 1: When using the Developer Edition of Firefox, everything works as expected. |
@mindeffects There is no "Developer Edition" of Firefox for Android. Are you talking about Firefox for Desktop? Or do you mean the nightly builds of Firefox for Android when you say "Developer Edition"? |
Oh, sorry. I typed the post on my mobile and mighted have stumbled into the wrong thread... Damn you, small screen! 😉 |
I have the same issue and most extensions don't work... Also having the same issue in the nightly build. Why did they even release this as a final version? As a work-around, I switched back to Fennec v68.11.0esr ... to be able to use my extensions and bookmarklets. |
How do I help out with this? Is this blocked on some design issue or does someone just need to write it out? |
Is it fixed yet? If this is for security reasons atleast allow people to disable it. |
Mozilla just fired 1/4 of its employees and stopped caring about their core users (the only ones that haven't switched to Chrome)... |
@mdxe That's irrelevant, this was an existing feature they disabled. |
@angelsl Maybe it's the latter only, in chrome though, there is a workaround, you can call the bookmarklet from address bar. Bookmarklets are useful and should be allowed. |
I switched back to Fennec, and extensions and bookmarlets work fine on Android (but I get no updates). I think it never worked on Fenix. |
Just my 2 cents: I was regularly relying on bookmarklets previously so I was surprised/desappointed when they stopped working. I hope the feature is brought back soon, although I understand it's probably lower in the list of priorities than other, more widely-used features. Thanks to everyone who's contributing. |
It would be nice if Fenix got this support, this would make Fenix being able to share the web page using following bookmarklets, without any extension and external app: |
I've been following this issue waiting for it to be resolved, but I just realised this morning that on Firefox Nightly for Android, my bookmarklets are working again. I just thought I'd let people know who were following this issue for the same reason as me. |
Unfortunately, all booksmarklets on my comment failed to work.
|
I just tested the shareaholic one and it worked for me. Are you pasting the bookmarklet directly into the url? If so that doesn't work. What I had to do was:
Not very intuitive at all, but it works for me. I hope it helps! |
Confirmed to work an Firefox 88.1.2 🎉 As per above, via the address bar, not via bookmarks. Something has changed for the better when clicking a bookmarklet in the bookmarks though - it now for me actually navigates to the right page but the the JS that tries to grab the page title + url before doing that doesn't seem to work, and they come out blank. Using the address bar it all works. The bookmarklet I'm testing with is:
|
Verified as fixed on the latest Nightly 98.0a1 (2022-02-08) using the examples mentioned in this comment. |
@SoftVision-LorandJanos or @rocketsroger Could we get this reopened? The fix was reverted: #13336 (comment) |
Perhaps you want to close this issue? |
@SoftVision-LorandJanos |
@czlucius which version did your patch ship in? I'm on 101.2.0, stable, the current version available on the Play Store, and bookmarklets aren't working for me. I've tried the one in the original issue description here and a number of others, first creating any bookmark, editing it and pasting in the bookmarklet contents (without spaces), and then trying to load it by typing its name in the address bar, as described in #2871 (comment) . No luck. |
Screen_Recording_20220620-225708_Firefox.mp4The issue was about opening bookmarklets from the bookmarks menu, I tried a bookmarklet and it works. |
Pasting in the address bar also works |
@snarfed This may also depend on the Content Security Policy (CSP) of the website where you try to run the bookmarklet. CSP can block 3rd party scripts (including bookmarklets) from running. However that's a known issue unrelated to this one and it affects also the desktop Firefox, see Bugzilla. |
I notice that the bookmarklets may not be able to open new tabs (window.open), perhaps due to popup blocking |
@czlucius aha, that might be part of it, one bookmarklet I've been testing tried to open a new window. But the bookmarklet in the original description here changes the current tab's location, and it doesn't work for me either. Does pop-up blocking also block that? Is there any way to modify pop-up blocking on mobile? |
I tried the bookmarklet posted earlier here that removes CSS, and it works, so pop-up blocking (and blocking changing the current window's location) probably are the issues after all. Bookmarklets that open new windows or change the current tab's location work ok right now on desktop. Any ideas what we could do to get them working on mobile? |
javascript:%20(function%20()%20{%20%20%20%20%20%20window.open('https://invidio.us/watch?v='%20+%20document.location.href.replace(/^.+v=(.{11})(.+)?/g,%20'$1'));%20%20})(); Changing current tab URL works |
does it work this bookmarklet used to add new bookmarks to BookmarkOS ? |
See: #17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
issue still present. please do not close. |
Confirmed, changing |
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1811582 Change performed by the Move to Bugzilla add-on. |
Steps to reproduce
Save any site to bookmarks
Edit this bookmark and put in there a Javascript as url, e.x.
javascript:%20(function%20()%20{%20%20%20%20%20%20window.open('https://invidio.us/watch?v='%20+%20document.location.href.replace(/^.+v=(.{11})(.+)?/g,%20'$1'));%20%20})();
Save this edited bookmark
Use it on YouTube for download a video.
Expected behavior
The YT Video will be downloaded
Actual behavior
The url of the bookmarklet will be searched
Device information
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: