Assigning a Bookmarklet Icon [duplicate] - bookmarklet

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to have favicon / icon set when bookmarklet dragged to toolbar?
I created a bookmarklet on the following page...
http://www.wishwrapped.com/pinit
Can anyone tell me how to set the icon when it is dragged to the bookmark bar? Right now it doesn't display one at all. Shouldn't it at least pick up the favicon I have for the site?
thanks

Short answer: No
I have tried to find a solution to this issue several times before. My firm conclusion is that the bookmarklet creator can NOT directly set an icon for a bookmarklet.
Long answer: Think of it this way... A bookmarklet is a type of bookmark. A bookmark's icon is set by web page it points to. In fact it can update later if the user visits that page and the icon has been updated.
A bookmarklet does not point to any web page. So the browser has no meaninful way to choose the icon. It could use the icon from the page it was distributed on, but even that doesn't really make sense, because a bookmarklet can be distributed on any web page.
There have been possible ways that a user can try to set an icon by following some steps, but that only worked in some browsers, not all, and is probably outdated and useless by now.
There is probably some way a user could set the icon using some kind addon.
Also, the bookmarklet creator could provide an add-on or extension which does the same thing as the bookmarklet ( http://www.google.com/search?q=convert+bookmarklet+to+add-on ).

Related

Are there any best practices to help your users install your Firefox extension?

Are there any best practices to help your users install your Firefox extension?
I have a Firefox extension in the form of a button. The actual install is roughly OK, but getting users to
click on the Firefox menu
click Customize
drag and drop the button to their toolbar
close the menu
is just insane.
Do you know any services that did that in a specially clever way, or any best practice resource to lose as little users as possible?
After some investigation on the Firefox side, there is a way to do it automatically for the user:
How can I make my Firefox extension toolbar button appear automatically?
Google Chrome did this by default, so it's more something that you have to add in your extension to have a consistent experience.
Pocket does that automatically. They have a grey icon, in line with the default icons, which makes it easy to miss it altogether.

App Inventor 2 - WebViewer detecting changes

I am trying to integrate MobPartner ads in my app, the ads from MobPartner can be displayed from "Pools" which contain several ads which automaticly scroll sideways and are set which an individual click link. The page with the ads looks like this, when I set the URL of the WebViewer in AI2, the ads display and scroll as they should.
The problem I have is detecting a click on one of the ads, this is the best I got to:
If a user would click on one of the ads via the WebViewer it will redirect them to the automatic URL set by the advertiser. I will then use the link and set ActivityStarter to WebViewer1.CurrentUrl and start the website full screen instead of the ad resolution (320x48).
I would like to know if there is a way to detect any clicks within WebViewer so that I can start ActivityStarter faster with the link. If not, is there a way to check the URL of the link clicked in WebViewer before the target website loads. In my opinion the timer (set to 1000 interval) is an inefficient way of checking if an ad is clicked. Anyone able to answer my questions above or provide a way of improving this code? Much appreciated.
PS: The HomeUrl for WebViewer has been pre-defined in the designer as well as the ActivityStarter "Action".
Thank you!
There is no possibility to detect any clicks within the Webviewer. The only thing you can detect is an URL change with the Clock component, and this is what you are already doing.
What you could do is to reduce the timer interval or instead of opening the webpage with the Activity Starter, just stay in the Webviewer and set its height and width to fill parent, which is -2 in the Blocks Editor, and hide all the other components on the screen to be able to view only that webpage in full screen.

Why does the Flattr popup covers the button in firefox?

I have manually implemented the Flattr button to my site.
In Firefox (Windows) the "popout" covers the button so one can't press it.
Any other browser renders the popout in the correct place. Can someone confirm this? Or is it a conflict on my site?
Since you don't mention which site is yours I'm left to speculate on the reasons for this and if I do then I think it is that your body-element doesn't start at the top left of your browser and that therefor positioning of the popout fails due to browsers inability to correctly account for offset body elements.
We've had reports of people experiencing this problem in eg. WordPress where the admin-bar that's showed when a user is logged in pushes the entire site down 20 pixels or something and makes the position of the popout be of by 20 pixels. Could it be something similar for you - that you're logged in in Firefox and not in other browsers?
As far as I know there's no workaround for this limitation - eg. jQuery can't account for it either.
Good thing though: If your layout has a body with an offset or something else that makes the popout not work for you you can disable it by setting popout 0 in the settings of the button.

firefox addon, transparent floating panel

I'm developing a firefox addon and would like to have a fixed position (relative to the browser) semitransparent panel with 3 icons shown at the corner of every browser content area. These buttons will have to be able to communicate with a site that is not the site shown.
I know it would be possible to inject a fixed position div to html but I want the buttons to communicate with external site when pressed and also query information when they are loaded so I think that would violate same origin policy. This wouldn't work with image or other direct media urls either.
What would be the easiest way to create the floating icon panel?
After about of week of work I found it. Here is the answer, I hope this helps someone else:
http://marcada.ms/2010/02/getting-content-on-top-of-the-browser-space-using-xul/
The above adds the panel, transparency is not working (at least not in linux what I work with) because of the following bug. Sigh... opened in 2007 and not closed in 2012.
https://bugzilla.mozilla.org/show_bug.cgi?id=408284
edit2: I ended inserting html data to the body of the document using files from extension folder. Works very well including transparency.
edit3: If anyone is interested how this works in my plugin, check my live site at http://www.upmarker.com

Firefox add-on tab-specific buttons and scripts, similar to Page Actions in Google Chrome

I want to write a Firefox extension that acts exactly like the built-in RSS feed scanner (as an exercise). It should do the following:
On each new page / tab load, it should scan the content of the page for RSS feeds
If there are RSS feeds in the page, it should put a button in the location bar that the user can click
On clicking the button, a speech bubble should appear under the button (the way a speech bubble appears under the bookmarks star when you click on it), with information on the feeds and buttons to subscribe to them
So my main questions are:
What is the process to run specific content scripts for specific pages?
What is the process to use the results of those scripts to update the speech bubble for each location bar button for each tab?
Basically, I'm trying to figure out how to do in Firefox what Page Actions are in Google Chrome.
To clarify, I want to replicate this functionality in Firefox: http://code.google.com/chrome/extensions/pageAction.html
Please help! :)
This question is similar to this question:
how to have tab-specific xul control with firefox
to have tab specific control. Usually (or maybe I am wrong),the newly added control is the same one across all the different tabs. Change from any tab will change its appearance in all tabs.
still looking for solutions or ideas.

Resources