Relative Content

Tag Archive for javascriptgoogle-chrome

Can I detect usage of Chrome Google Lens on website?

Google Chrome has a Google Lens option that allows to take a screenshot and then copy the text. My website has multiple ways setups to discourage users to take screenshots like showing an alert when pressing the screenshot button:

Closing Chrome browser does not fire pagehide

When a user closes chrome while logged in to my system, I want to save some stats in our db as if they had properly used the sign out link. I have it working when the user navigates away, or when the user closes ONE the tab of multiple open tabs but not when the user closes the entire browser. What am I missing?

Chrome: text being selected on resize

Our project has a custom (web) component that supports moving and resizing of ‘windows’ on a dashboard canvas. You can grab a window edge to resize it, and there’s also a widget that lets you change the size of the ‘canvas’ on which the windows exist, by dragging it up or down.

Issue with Chrome Offscreen Document Context in Service Worker

I’m currently working on a Chrome extension where I need to process multiple HTML contents using an offscreen document in the service worker. The aim is to ensure that each HTML content is parsed and processed correctly. However, I am encountering an issue where the chrome.runtime.getContexts method returns an empty array, even though the offscreen document appears to be created and functioning properly.