I am developing a chrome extension. I want to record the browser tab of google chrome as video for a specific time as ScreenCastify chrome extension do. How would I do that in my chrome extension.
Thanks in Advance
ScreenCastify uses chrome.desktopCapture API.
Check out this example :
https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/apps/samples/desktop-capture
Related
I would like to inject an external javascript code into a certain webpage in a mobile phone browser such as chrome or opera mini. On computers, we can do this directly in the console or through extensions such as Scripty. Unfortunately, phone browsers don't show consoles nor do they have extensions. Please how can I achieve this?
You can use eruda. It's a console for mobile browsers. It also has many plugins such as eruda-touches which visualizes all current touches and their positions.
Personally, I made a bookmark using chrome browser on my phone to implement this console directly in any page when i search for its name. Watch this youtube video for more details.
If you are using android, then you can use chrome inspect to access console on phone browser using a computer.
First you should connect your phone to your computer via USB and authorize it.
In Chrome on your computer open the following link chrome://inspect
There you can see opened tabs on your mobile device, and open their console.
You can use the address-bar to run javascript in that page.
(Tested in Chrome)
Like this:
Since all the codes will be in one line, make sure you use semicolons properly.
As far as I know, in browser, such as Chrome, sharing desktop or application needs a Chrome Extension to work, eg:
chrome.permissions.request({
permissions: ['desktopCapture'],
}
But why does Google Hangouts do not need any extension to capture desktop?
Is there any API of JavaScript for this?
As of now, Google Hangouts does use an extension, it's just integrated into Chrome to the point of not being visible.
Source: Chromium issue to remove this special treatment
You can test that it is (stealthily) installed by manually opening
chrome-extension://nkeimhogjdpnpccoofpliimaahmaaome/background.html
At the same time, work is ongoing to support WebRTC spec for screen sharing (getDisplayMedia) in Chrome. It's not yet enabled by default in released Chrome versions, but will be very soon (code is already in the codebase).
Implementation tracking: Chromium issue
It is possible to take a screenshot using extension code at Chromium, Chrome 59+. At Firefox an extension is not necessary to take a screenshot of the screen or an open application window. Is it possible to take a screenshot of the current browser screen at Chromium, Chrome programmatically using JavaScript and without using extension code?
I developed a Google Chrome extension and published from Google Chrome Developer Dashboard. After a month, I updated the newer version of my plugin to the webstore using Developer Dashboard but it is not auto updating to my users. Even after a week.
I haven't implemented anything for auto updates.
https://developer.chrome.com/extensions/autoupdate
I read this article, they mentioned "If you publish using the Chrome Developer Dashboard, you can ignore this page".
Why is auto update not working?
It's possible that they use a slower internet connection, and if the extension is a big file. It need more time to download this.
Or you request a minimum Google Chrome version, and that users doesn't have this version. So it stay on the old Chrome extension version.
i need to redirect the user from chrome to google play to download my android applications. so i run this code in the web page which is opened by chrome :
window.location=https://play.google.com/store/apps/details?id=mypackageName.comf&referrer=utm_source%3DtestSource512%26utm_medium%3DtestMedium512%26anid%3Dadmob
I don't know why the chrome replace the referrer with :com.android.chrome
is it possible to prevent the chrome from replacing the referrer and just use the given referrer.
thanks