SanderRonde / CustomRightClickMenu

A browser extension to add links and run scripts/stylesheets all from your right-click menu
https://chrome.google.com/webstore/detail/custom-right-click-menu/onnbmgmepodkilcbdodhfepllfmafmlj
MIT License
219 stars 33 forks source link

Can't run the script on chrome-extension:// page. #65

Closed pendave closed 2 years ago

pendave commented 2 years ago

Hello, I need to run some javascript on pages like some extension's:

chrome-extension://denbgaamihkadbghdceggmchnflmhpmk/result.html

const btm = document.querySelector('#fullCapture'); btm.click(); const top = document.querySelector('div[commandname="onCaptureRequested"]'); top.click();

But it's not working, though it works on normal website pages.

Is it due to secruity reason? Could CustomRightClickMenu bypass the limit? Where to set it up?

SanderRonde commented 2 years ago

Yeah this is unfortunately not possible due to security reasons enforced by Chrome itself. AFAIK it's not possible to bypass them.