fregante / GhostText

đź‘» Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.29k stars 117 forks source link

Running GhostText on `chrome-extension://` pages like TamperMonkey’s #55

Closed drhouse closed 1 year ago

drhouse commented 8 years ago

I write a lot of userscripts for Tampermonkey and just discovered GhostText. I thought it would be neat if I could click the 'new script' button in there, then use GhostText to switch and start writing in Sublime right away. I imagine it would involve changing some permissions in the manifest file. Currently, there's a kind of Tampermonkey workaround where you can include a local file as a '@require', but this other way would be more convenient.

fregante commented 8 years ago

Unfortunately I didn't find a way for extensions to modify other extensions’ pages.

The activeTab permission does not include chrome-extension:// urls and they cannot be manually added to the manifest file :(

malformed pattern error

We'll have to wait for this: https://code.google.com/p/chromium/issues/detail?id=153245

Enteleform commented 6 years ago

@bfred-it

I just checked out the chromium issue you linked to, and someone posted this a few months after your comment:

Jan 11 2016 I think it's fixed now a few months/years ago: https://chromium.googlesource.com/chromium/src/+/92e1442120f561f9344bae80b3bd97d2f7d956cb%5E%21/#F0

 


 
I'm not too familiar w/ Chrome Extensions, but was wondering if that changes anything regarding this issue.

fregante commented 1 year ago

I tried again and the error is now very specific when running executeScript on the tab:

Error: Cannot access a chrome-extension:// URL of different extension