m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.96k stars 449 forks source link

SponsorBlock start page - google chrome image #222

Open alanmilinovic opened 1 year ago

alanmilinovic commented 1 year ago

Hi, everytime after login when container is started, I need to close Sponsorblock extension page as it is opened by default. Is it possible to have only blank page opened on start up?

alanmilinovic commented 1 year ago

Adding this into policy will work:

  "URLBlocklist": [
      "chrome-extension://mnjggcdmjocbbbhaepdhchncahnbgone"
  ],

But this is dirty solution and options page and regular options via menu is not working.

m1k1o commented 1 year ago

I don't know about any solution how to prevent extensions from opening pages on startup. But I'd also like to have them hidden. Your workaround seems interesting.

alanmilinovic commented 1 year ago

I don't know about any solution how to prevent extensions from opening pages on startup. But I'd also like to have them hidden. Your workaround seems interesting.

Tnx, I just tested if ads are blocked on youtube and it looks like they are, so I can live with it. I don't need to have options at all, default one are fine. Also if you change options and restart container or system they are back to default settings.

alanmilinovic commented 1 year ago

Ok, there is some progress. When all pages are listed in allowed part, brings popup page of extension to work as well as options page. But the only thing is that you cannot open options page from the popup, you need to open it by clicking on 3 dots of the extension and then Options button.

  "URLBlocklist": [
      "chrome-extension://mnjggcdmjocbbbhaepdhchncahnbgone"
  ],
  "URLAllowlist": [
      "chrome-extension://mnjggcdmjocbbbhaepdhchncahnbgone/help/index.html",
      "chrome-extension://mnjggcdmjocbbbhaepdhchncahnbgone/options/options.html",
      "chrome-extension://mnjggcdmjocbbbhaepdhchncahnbgone/permissions/index.html",
      "chrome-extension://mnjggcdmjocbbbhaepdhchncahnbgone/upsell/index.html",
      "chrome-extension://mnjggcdmjocbbbhaepdhchncahnbgone/popup.html"
  ],
ajayyy commented 1 year ago

Why not

 "URLBlocklist": [
      "chrome-extension://mnjggcdmjocbbbhaepdhchncahnbgone/help/index.html"
  ]
alanmilinovic commented 1 year ago

Why not

 "URLBlocklist": [
      "chrome-extension://mnjggcdmjocbbbhaepdhchncahnbgone/help/index.html"
  ]

It doesn't work, not sure why.