alganzory / HaramBlur

A Browser extension that enables you to navigate the web with respect for your Islamic values, protect your privacy and reduce browsing distractions by auto detecting and blurring "Haram" content.
https://haramblur.com
GNU Affero General Public License v3.0
481 stars 33 forks source link

create an id for your extension for gecko (firefox) based browsers in manifest.json #79

Closed iamtalhaasghar closed 6 months ago

iamtalhaasghar commented 6 months ago

It would be owsm if you can add the following snippet in your manifest.json.

"browser_specific_settings": {
    "gecko": {
      "id": "<some_id>",
          .....
    },

ublock's manifest.json, as an example: https://github.com/gorhill/uBlock/blob/9146134874050ee50a11e25f31034a2416cf5988/platform/firefox/manifest.json#L19

Why?

In firefox policies.json I can then allow or force_install this extension by its id in my sibling pc. I have only allowed a set of extension on his pc. Sample: https://github.com/mozilla/policy-templates/blob/8d2d6134b32ed9c88511eb75b06ec54dd10170a0/linux/policies.json#L131

alganzory commented 6 months ago

@iamtalhaasghar don't I have that in manifest.json for firefox-main branch?

iamtalhaasghar commented 6 months ago

@alganzory Nope, image

iamtalhaasghar commented 6 months ago

Using this firefox extension, i was able to find id of your extension which is: info@haramblur.com

alganzory commented 6 months ago

@iamtalhaasghar https://github.com/alganzory/HaramBlur/blob/firefox-main/manifest.json#L26

But I'm glad you found it anyway, also thanks for sharing about the policy thingy I didn't even know since I don't use Firefox

iamtalhaasghar commented 6 months ago

firefox policies is a great tool to disable access to certain sites, disable installation of new add ons and allow only certain add-ons. Its a great hack!

https://github.com/iamtalhaasghar/firefox-policies