Spotify Play Button control via browser extension - spotify

can I control (play & pause) a Spotify Play button with a browser extension?

The play button is inside an iframe. If browser extensions can get at content inside iframes, then I guess so.
This question is quite generic - why don't you give it a try and find out?

Related

Chrome Extension popup.html disappears when clicking on the page

I am new to Chrome Extension. I have a popup.html that collects data and displays when mouse over on the current open page/tab. I also send data to popup.html on click on the current open page/tab.
The problem is when i click on the page data gets passed to the popup.html but popup.html disappears/closes. When i click on the extension again the data persists since i am persisting the data on a background page.
How do i avoid popup.html not to close/disappear on click on current open page/tab.
Thanks in advance
It is not possible.
The popup for Browser Actions / Page Actions is designed to close as soon as it loses focus. It is also not possible to programmatically open it.
You did correctly by making the background script handle the data. If you need persistent UI while you're interacting with a page, then your only option seems to be some HTML UI injected by a content script.
You might be interested in this question.
I understood that pop.html does not persist on the screen, hence took up a different route by getting my extension on to the chrome dev tools. They perform the same actions such as an extension the pain is that your dev tools have to be open always.
For my use case keeping the console open does not make much of a difference. This post helped me a lot set this up.
Thanks for your suggestions
I m not sure u can. There is a reason the page is named as popup. Although you can try notifications(https://developer.chrome.com/extensions/notifications) to provide the same functionality.

How to insert menu-item into YouTube context-item

I need to know how i can insert menu-item into YouTube context-item using Google chrome extension.
I searched for that a lot and i found similar question but no any persuasive answer.
I need the solution very much.
The chrome extension API includes a Context Menu feature, but since the YouTube player uses Flash, there is a completely separate context menu that Chrome does not have direct control over.
So it is not possible to customize the context menu with the Chrome API. However, you may be able to get by with a (somewhat hacky) solution, such as covering the video with a transparent HTML DOM element. The DOM element should trigger Chrome's context menu instead of the Flash context menu.

How to build a Buffer like overlay dialog as popup for Browser action?

I just got started with chrome extensions and what I am trying to achieve is to display a overlay dialog (like how Buffer app does) instead of the regular popup. Any directions on how to would be helpful.

How to add dialog box on webpage with Chrome Extension?

Does anyone know how to add a dialog box similar to the one used by Google's Voice extension (it's the one in the blue activated by clicking on the phone number)?
Thanks,
Joe Chin
Chrome doesn't come with any GUI API. Everything you see is made in plain javascript and css. You would need to either find some js library that helps with creating dialogs, or style them yourself (that's what that Google Voice extension looks like is doing).

How do Gmail plugins such as Rapportive work?

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.

Resources