-
Notifications
You must be signed in to change notification settings - Fork 24
Extensions implementation #50
Comments
I honestly don't know how to do this. You can try your hand at it if you want. |
I would love to have Scratch Addons on ninetails. |
wait so we can mention sa? |
I don't think you're supposed to, but I don't care if you do. |
WebExtensions would be kind of hard to implement though. |
We could start small with something like userscripts. |
Yeah, that would be a good idea. Just something that can be run as normal JS code like it was in the webview. Or maybe give some permission to access Electron API? |
How about we can do some script injecting then work out way up to the electron api. |
I'll try to figure out a way to inject scripts inside a page. |
Okay ! |
https://github.com/ninjamar/ninetails |
@MystPi could you help with the ui on my fork? |
I added userstyles and manifests. |
Nice! Please make sure you're using 2 spaces for tabs, instead of 4. |
What type of UI do you want for it? |
There are actually pre-built functions for injecting styles into a webview. You should probably use it instead, as you can also remove the injected style.
|
Could you add a userscript/userstyle settings page so we can load them by url? |
What about scripts? Should I use |
I don't really know. Possibly? |
I'll mess around with it. |
Should https be used by default? I'm using #66 (comment) |
Replit only allows HTTPS. |
What do you mean by https by default? |
Maybr an enbedded ad/tracker blocker likr brave |
We should have a userscript/userstyle library |
If you enable nodeIntegration and make sure you're careful with user data, you could use |
You can inject CSS and JS into the webview. |
Unfortunately you can't get access to the DOM 😭 |
Yes, you can. Just figure out how to run code in the renderer process as the webpage. |
This comment has been minimized.
This comment has been minimized.
Fine. 🙄 That other comment was accidental. Hit Ctrl+Enter at the wrong time. |
That looks like it should work while I was browsing the code. |
can you check on your computer? |
Just installed nodejs 16.x |
You have node 17?? I thought 16 was latest! Lol |
i copy/pasted the files from my computer but i hand did index.html - i fixed it but this wasn't the error i was talking about see the commit comment i made - https://github.com/ninjamar/ninetails/commit/b3f147d4f20dac54173e6961efea993738268fdc#commitcomment-62856323 |
Done installing, looking at it |
tnx |
Gonna see if I can post from Firefox in a Ubuntu 10 v86 VM first. |
I'm working on an implementation in Catalyst right now. |
Nice! Could you by chance work on an Electron v86 client once you get that done? https://copy.sh/v86/ |
@hello-smile6 status? |
I think that Electron is working on native extensions support, but userscripts we could implement. |
ok - can u review? |
@MystPi can u help? |
Sure, what do you need help with? |
|
bump |
So? Life is bumpy! 😄 |
I just found this: https://www.electronjs.org/docs/latest/api/extensions Maybe it will help. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Would that be able to run in webview? |
This comment was marked as off-topic.
This comment was marked as off-topic.
That would work |
I don't have time to do this anymore |
Okay. |
I think that ninetails should have an implementation of extensions (it just is necessary in a web browser) but the main problem with this is the rules on Scratch that disallow mentioning extensions. If this can be overcome, it would be awesome to have an adblocker on Ninetails!
The text was updated successfully, but these errors were encountered: