Git Product home page Git Product logo

Comments (8)

m1k1o avatar m1k1o commented on September 15, 2024 1

Hi,

you are able to add it by yourself without forking this repo. You need to provide own policy file. For chromium it is this file. Just copy that file, modify it by adding your extensions to the ExtensionInstallForcelist and ExtensionInstallWhitelist list and mount it to container as volume.

version: "3.4"
services:
  neko:
    image: "m1k1o/neko:chromium"
    restart: "unless-stopped"
    shm_size: "2gb"
+    volumes:
+    - ./policies.json:/etc/chromium/policies/managed/policies.json
    ports:
      - "8080:8080"
      - "52000-52100:52000-52100/udp"
    cap_add:
      - SYS_ADMIN
    environment:
      NEKO_EPR: 52000-52100

Similarly for firefox and chromium-ungoogled, but you need to download them and pass it to the container.

from neko.

hofq avatar hofq commented on September 15, 2024

oh, okay. Thanks for the Help :)

from neko.

hofq avatar hofq commented on September 15, 2024

Hi, I tried that With the Firefox-Config, and did something like that:

{
  "policies": {
    "BlockAboutAddons": false,
    "BlockAboutConfig": true,
    "BlockAboutProfiles": true,
    "BlockAboutSupport": true,
    "Bookmarks": [
      {
        "Title": "YouTube",
        "URL": "https://www.youtube.com/",
        "Favicon": "https://www.youtube.com/favicon.ico",
        "Folder": "Pages",
        "Placement": "toolbar"
      },
      {
        "Title": "Google",
        "URL": "https://www.google.com/",
        "Favicon": "https://www.google.com/favicon.ico",
        "Folder": "Pages",
        "Placement": "toolbar"
      },
      {
        "Title": "Netflix",
        "URL": "https://netflix.com",
        "Favicon": "https://www.netflix.com/favicon.ico",
        "Folder": "Pages",
        "Placement": "toolbar"
      },
      {
        "Title": "Prime-Video",
        "URL": "https://www.primevideo.com/",
        "Favicon": "https://www.primevideo.com/favicon.ico",
        "Folder": "Pages",
        "Placement": "toolbar"
      },
      {
        "Title": "Prime-Video GER",
        "URL": "https://www.amazon.de/gp/video/",
        "Favicon": "https://www.amazon.de/favicon.ico",
        "Folder": "Pages",
        "Placement": "toolbar"
      },
      {
        "Title": "Disney +",
        "URL": "https://www.disneyplus.com/de-de",
        "Favicon": "https://www.disneyplus.com/favicon.ico",
        "Folder": "Pages",
        "Placement": "toolbar"
      }
    ],
    "CaptivePortal": false,
    "DisableAppUpdate": true,
    "DisableBuiltinPDFViewer": true,
    "DisableDeveloperTools": false,
    "DisableFeedbackCommands": true,
    "DisableFirefoxAccounts": true,
    "DisableFirefoxScreenshots": true,
    "DisableFirefoxStudies": true,
    "DisableForgetButton": true,
    "DisableMasterPasswordCreation": true,
    "DisablePocket": true,
    "DisablePrivateBrowsing": true,
    "DisableProfileImport": true,
    "DisableProfileRefresh": true,
    "DisableSafeMode": true,
    "DisableSetDesktopBackground": true,
    "DisableSystemAddonUpdate": true,
    "DisableTelemetry": true,
    "DisplayBookmarksToolbar": false,
    "DontCheckDefaultBrowser": true,
    "EnableTrackingProtection": {
      "Cryptomining": true,
      "Fingerprinting": true,
      "Value": true
    },
    "ExtensionSettings": {
      "*": {
        "installation_mode": "blocked"
      },
      "[email protected]": {
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi",
        "installation_mode": "force_installed"
      },
      "[email protected]": {
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi",
        "installation_mode": "force_installed"
      },
      "[email protected]": {
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/surfshark-vpn-proxy/latest.xpi",
        "installation_mode": "force_installed"
      },
      "[email protected]": {
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/600-sound-volume/latest.xpi",
        "installation_mode": "force_installed"
      }
    },
    "ExtensionUpdate": false,
    "FirefoxHome": {
      "Highlights": false,
      "Pocket": false,
      "Search": true,
      "Snippets": false,
      "TopSites": true
    },
    "FlashPlugin": {},
    "HardwareAcceleration": false,
    "Homepage": {
      "Additional": [],
      "StartPage": "none"
    },
    "NewTabPage": true,
    "NoDefaultBookmarks": true,
    "OfferToSaveLogins": false,
    "OfferToSaveLoginsDefault": false,
    "OverrideFirstRunPage": "",
    "OverridePostUpdatePage": "",
    "PasswordManagerEnabled": false,
    "Permissions": {
      "Camera": {
        "BlockNewRequests": true
      },
      "Location": {
        "BlockNewRequests": true
      },
      "Microphone": {
        "BlockNewRequests": true
      },
      "Notifications": {
        "BlockNewRequests": true
      }
    },
    "Preferences": {
      "browser.tabs.warnOnClose": false,
      "browser.urlbar.suggest.bookmark": false,
      "browser.urlbar.suggest.history": false,
      "browser.urlbar.suggest.openpage": false,
      "datareporting.policy.dataSubmissionPolicyBypassNotification": true,
      "dom.disable_window_flip": true,
      "dom.disable_window_move_resize": true,
      "dom.event.contextmenu.enabled": false,
      "extensions.getAddons.showPane": false,
      "places.history.enabled": false,
      "privacy.file_unique_origin": true,
      "ui.key.menuAccessKeyFocuses": false
    },
    "PromptForDownloadLocation": false,
    "SanitizeOnShutdown": {
      "Cache": true,
      "Cookies": true,
      "Downloads": true,
      "FormData": true,
      "History": true,
      "OfflineApps": true,
      "Sessions": true,
      "SiteSettings": true
    }
  }
}

But it has just Removed the Config for NordVPN and canged nothing else.

I also added the Path to the Docker Command:
-v '/mnt/user/appdata/neko/policies.json':'/usr/share/firefox-esr/distribution/policies.json':'rw'

Do you know what i did wrong @m1k1o?

Thx for your Time :)

from neko.

m1k1o avatar m1k1o commented on September 15, 2024

The key value in ExtensionSettings is not a mainainter E-Mail. It must be a valid Extension ID.

    "ExtensionSettings": {
      "*": {
        "installation_mode": "blocked",
        "allowed_types": ["extension"]
      },
      "[email protected]": {
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi",
        "installation_mode": "force_installed"
      },
      "[email protected]": {
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/darkreader/latest.xpi",
        "installation_mode": "force_installed"
      },
      "{732216ec-0dab-43bb-ac85-4b5e1977599d}": {
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/surfshark-vpn-proxy/latest.xpi",
        "installation_mode": "force_installed"
      },
      "{c4b582ec-4343-438c-bda2-2f691c16c262}": {
        "install_url": "https://addons.mozilla.org/firefox/downloads/latest/600-sound-volume/latest.xpi",
        "installation_mode": "force_installed"
      }
    }

That is nowhere to be seen in the addons website, however, it can be found in their source code. You just need to search for byGUID.

Simple JavaScript code to be executed on addons page can get you the GUID:

Object.keys(JSON.parse(document.getElementById('redux-store-state').textContent).addons.byGUID)[0]

from neko.

hofq avatar hofq commented on September 15, 2024

Simple JavaScript code to be executed on addons page can get you the GUID:

Oh, nice. What do you mean with Addon Page? Do you mean the Page in the Firefox Addon-Store? I tried it there but i just Recive an Undefined. have I misunderstood something?

from neko.

m1k1o avatar m1k1o commented on September 15, 2024

Yes, the homepage of firefox addon e.g.: https://addons.mozilla.org/en-US/firefox/addon/600-sound-volume/

image

If that script is not working, you can still browse source-code and find it manually:

image

from neko.

hofq avatar hofq commented on September 15, 2024

Yes, the homepage of firefox addon e.g.: https://addons.mozilla.org/en-US/firefox/addon/600-sound-volume/

image

If that script is not working, you can still browse source-code and find it manually:

image

Ahh, okay. I was on the German Site, that didn't Worked

from neko.

hofq avatar hofq commented on September 15, 2024

I got it now Working, thx :)

from neko.

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.