How do Gmail plugins such as Rapportive work? - google-chrome-extension

I know Gmail has contextual and side-bar gadgets, but how do browser extensions such as Rapportive work? Are they injecting their buttons / displays into the browser page? If so, wouldn't the browser extension break if Google decided to change the way they layout the page?

Are they injecting their buttons / displays into the browser page?
Yes.
If so, wouldn't the browser extension break if Google decided to change the way they layout the page?
Probably.

The probably leverage some part of the Gmail Greasemonkey API and inject scripts into the page to use this.

Related

How to insert a button to gmail page in firefox extension?

i want to develop an extension for both chrome and firefox and need to insert a button to gmail page. In chrome i use Inboxsdk and it work very fine like this: image
Unfortunately, it looks like inboxsdk is not supported on the firefox extension. I tried to load the inboxsdk script but nothing happened on gmail. I want to ask is there a way to use Inboxsdk on firefox extension? Or is there any other way to insert the button into gmail as inboxsdk? Thankyou.
The InboxSDK is currently just supporting Chrome and Safari Browser extensions.
What browsers are supported? Chrome and Safari are currently
supported. Chrome version 36 and Safari 7 are the minimum versions we
support.
Firefox support is under consideration; please let us know if you're
interested.
FAQ - Supported Browsers
One approach to add buttons without InboxSDK to compose views could be using MutationObservers and check whenever a compose view is added to the DOM. Find the send button and append your own button dynamicly. The hard part will be to find a way how you can reliably identify compose views/send buttons.
Classnames could work but I'm bot sure if gmail has consistent classnames and ids you can use (obfuscation etc.).

Is it possible to put a captcha in my chrome extension?

I'm creating a voting system in my extension and if its possible I would like to add captcha to restrict people from voting again.
Yes, it's possible.
It depends on where exactly in extension (content script, popup view or some custom page) you will have voting component, but in general, it's like a regular web application.

Modal Dialog in Google Chrome Extension

I need a truly modal dialog to run in Google Chrome in Windows using extension, where the dialog doesn't allow users to click on other tabs etc. The search results so far seem to suggest that showModalDialog() doesn't give a true modal dialog, and the jQuery examples (like SimpleModal) don't seem to be able to stop users from accessing the other tabs or the other parts of the browser.
Alerts seem to be be working, so I was wondering if there is any other solution to this problem? Or do I really need to write a modal dialog from scratch using Javascript?
Using the hidden div methods in the web pages is not an option because I can't modify them.
You can simply use the native javascript function confirm
But I don't like when I can't do what I want without good reasons.
Furthermore, the user will can always switch to another Chrome window.
No sort of in tab HTML modal dialog will prevent a user from switching tabs. Even alert will allow users to switch tabs. You may be able to achieve this through a NPAPI plugin though.

open webpage in firefox

i am not sure..is there any chance to open my webpage in firefox. for example i am browsing mywebsite using IE. when ever i click link of the page then automatically it will open in firefox. this option is not for all pages only for specified page.
thanks.
If this were the case, ie6 would have gone out long ago. The best you can do here, would be to check which browser they are using (get_browser if you are using php) and refuse to show content to people using browsers other than firefox.
Instead you could redirect them to a page explaining why they need to be using firefox to access your websites services (I guess a link to the firefox download page would be nice too)
Sorry, it's not possible from plain HTML to open a webpage in a different browser. You can, at most, open the page in a new window of the same browser.
However, what you ask is not completely impossible. You could write a browser plugin that handles links and runs the Firefox executable
I would seriously hope this isn't possible.
What you ask for is not possible , but you could display a warning to your users that the page works best in the desired browser.

Programmatic way to search a page for the user in a browser

I am working on a search engine project that will point a user to a page from, say Google, and show them where their search terms are in the document. Most of us search Google and know that sometimes you have to CTRL-F to find where that word appeared on the page (especially on long pages). I know some browser plug-ins can help with this - but is there a way to wrap the page in a frame and do it (even if you don't control the site being displayed)?
If not, what browser plug-ins might you recommend that I could customize & brand so the user can accomplish this task? I'm guessing you could also write a Kinitex plug-in or GreaseMonkey script - but I'd prefer to not go any route that a newbie user wouldn't immediately understand.
Thanks in advance for your help!
You can get source code of the page with curl, add javascript function to it and then pass result to the user. Just like server-side GreaseMonkey. :)
In google Chrome try Google Quick Scroll, it does it.

Resources