Relative Content

Tag Archive for javascriptgoogle-chrome-extension

Disable Dragging of YouTube Transcripts with a Chrome Extension

How can I develop a Chrome extension(javascript) to stop the dragging of YouTube transcripts with the mouse? I want to prevent users from moving the transcript box while allowing other interactions. Could someone point me to the relevant APIs or provide some sample code to achieve this?

Unable to document.write after stop()

I’m writing a Chrome extension, which creates a new tab then inject a script to overwrite the whole HTML of it. (a bit of the background can refer to another post: Chrome extension service worker inject script to new about:blank tab). Here is the script: