Coder Social home page Coder Social logo

Extensions implementation about ninetails HOT 64 CLOSED

mystpi avatar mystpi commented on June 8, 2024
Extensions implementation

from ninetails.

Comments (64)

hello-smile6 avatar hello-smile6 commented on June 8, 2024 2

bump

So? Life is bumpy! 😄

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024 1

You have node 17?? I thought 16 was latest! Lol
You put ./extensions.js instead of ./js/extensions.js

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

I honestly don't know how to do this. You can try your hand at it if you want.

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

I would love to have Scratch Addons on ninetails.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

wait so we can mention sa?

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

wait so we can mention sa?

I don't think you're supposed to, but I don't care if you do.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

WebExtensions would be kind of hard to implement though.

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

We could start small with something like userscripts.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

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?

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

How about we can do some script injecting then work out way up to the electron api.

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

I'll try to figure out a way to inject scripts inside a page.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

Okay !

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

https://github.com/ninjamar/ninetails
I added the base of an extension loader (it can load from urls) but I am not good at the ui stuff.

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

@MystPi could you help with the ui on my fork?

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

I added userstyles and manifests.
https://github.com/ninjamar/ninetails/blob/main/src/loader.js#L17
https://github.com/ninjamar/ninetails/blob/main/src/loader.js#L25
^^ Sample manifests

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

Nice! Please make sure you're using 2 spaces for tabs, instead of 4.

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

MystPi could you help with the ui on my fork?

What type of UI do you want for it?

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

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.

webview.insertCSS and webview.removeInsertedCSS: https://www.electronjs.org/docs/latest/api/webview-tag#webviewinsertcsscss

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

MystPi could you help with the ui on my fork?

What type of UI do you want for it?

Could you add a userscript/userstyle settings page so we can load them by url?

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

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.

webview.insertCSS and webview.removeInsertedCSS: https://www.electronjs.org/docs/latest/api/webview-tag#webviewinsertcsscss

What about scripts? Should I use webview.executeJavaScript?

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

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.
webview.insertCSS and webview.removeInsertedCSS: https://www.electronjs.org/docs/latest/api/webview-tag#webviewinsertcsscss

What about scripts? Should I use webview.executeJavaScript?

I don't really know. Possibly?

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

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.
webview.insertCSS and webview.removeInsertedCSS: https://www.electronjs.org/docs/latest/api/webview-tag#webviewinsertcsscss

What about scripts? Should I use webview.executeJavaScript?

I don't really know. Possibly?

I'll mess around with it.

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

Should https be used by default? I'm using #66 (comment)
Should we host the proxy on startup locally?

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

Should https be used by default? I'm using #66 (comment) Should we host the proxy on startup locally?

Replit only allows HTTPS.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

What do you mean by https by default?

from ninetails.

Mbrick2 avatar Mbrick2 commented on June 8, 2024

Maybr an enbedded ad/tracker blocker likr brave

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

Maybr an enbedded ad/tracker blocker likr brave

We should have a userscript/userstyle library

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

Should https be used by default? I'm using #66 (comment) Should we host the proxy on startup locally?

If you enable nodeIntegration and make sure you're careful with user data, you could use node-fetch.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

You can inject CSS and JS into the webview.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

Unfortunately you can't get access to the DOM 😭

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

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.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

Oh right, you can get access to the DOM.

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

Oh right, you can get access to the DOM.

Yep!!!

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

Should https be used by default? I'm using #66 (comment) Should we host the proxy on startup locally?

If you enable nodeIntegration and make sure you're careful with user data, you could use node-fetch. BTW, hover your mouse over the node-fetch link.

I don't like the idea of passing untrusted data

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

Can someone help me by testing this branch? it doesn't seem to work. https://github.com/ninjamar/ninetails/tree/broken
I get some error about GUEST_VIEW_MANAGER_CALL

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

@hello-smile6 @webdev03 can someone help ^^

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

@hello-smile6 @webdev03 can someone help ^^

Not sure, and haven't even installed NodeJS yet.

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

@hello-smile6 @webdev03 can someone help ^^

Not sure, and haven't even installed NodeJS yet.

can you install it ? - i'm using nvm to manage versions

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

@hello-smile6 @webdev03 can someone help ^^

Not sure, and haven't even installed NodeJS yet.

can you install it ?

Fine. 🙄 That other comment was accidental. Hit Ctrl+Enter at the wrong time.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

That looks like it should work while I was browsing the code.

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

That looks like it should work while I was browsing the code.

can you check on your computer?
i'm running popos 21.04 , node 17.3.0

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

That looks like it should work while I was browsing the code.

can you check on your computer? i'm running popos 21.04 , node 17.3.0

Just installed nodejs 16.x

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

You have node 17?? I thought 16 was latest! Lol You put ./extensions.js instead of ./js/extensions.js

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

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

@hello-smile6 @webdev03 can someone help ^^

Done installing, looking at it

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

@hello-smile6 @webdev03 can someone help ^^

Done installing, looking at it

tnx

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

@hello-smile6 @webdev03 can someone help ^^

Done installing, looking at it

tnx

Gonna see if I can post from Firefox in a Ubuntu 10 v86 VM first.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

I'm working on an implementation in Catalyst right now.

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

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/

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

@hello-smile6 status?

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

I think that Electron is working on native extensions support, but userscripts we could implement.

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

I think that Electron is working on native extensions support, but userscripts we could implement.

ok - can u review?

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

@MystPi can u help?

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

@MystPi can u help?

Sure, what do you need help with?

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

@MystPi can u help?

Sure, what do you need help with?

#50 (comment)

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

Okay, so first you should fetch upstream because you're 40 commits behind. Also you have a syntax error and a reference error:

image

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

bump

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

I just found this: https://www.electronjs.org/docs/latest/api/extensions Maybe it will help.

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

I just found this: https://www.electronjs.org/docs/latest/api/extensions Maybe it will help.

Okay. Sorry if I'm not responding, I'm trying to run an HTTP server on v86 and use ngrok so I can send an HTTP request to it, maybe even dOS a VM, from my browser.

from ninetails.

webdev03 avatar webdev03 commented on June 8, 2024

I just found this: https://www.electronjs.org/docs/latest/api/extensions Maybe it will help.

Would that be able to run in webview?

from ninetails.

hello-smile6 avatar hello-smile6 commented on June 8, 2024

I just found this: https://www.electronjs.org/docs/latest/api/extensions Maybe it will help.

Would that be able to run in webview?

Not sure. Any ideas for ngrok on v86?

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

I just found this: https://www.electronjs.org/docs/latest/api/extensions Maybe it will help.

Would that be able to run in webview?

That would work

from ninetails.

ninjamar avatar ninjamar commented on June 8, 2024

I don't have time to do this anymore

from ninetails.

MystPi avatar MystPi commented on June 8, 2024

Okay.

from ninetails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.