tis-firefox-ublock 0.9.8.2-1

  • package : tis-firefox-ublock
  • version : 0.9.8.2-1
  • description : Outil de blocage de plublicit√© pour firefox
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2018-02-27 18:59:54

setup.py

from setuphelpers import *
import platform
import glob
import sys

uninstallkey=[]
uninstallstring=[]

def install():
    extension_directory=os.path.join(programfiles32,'firefox-extension','ublock')
    if not os.path.exists(extension_directory):
        os.makedirs(extension_directory)
    copytree2('mozprofile',os.path.join(extension_directory,'mozprofile'))
    copytree2('manifestparser',os.path.join(extension_directory,'manifestparser'))
    copytree2('mozfile',os.path.join(extension_directory,'mozfile'))
    copytree2('mozlog',os.path.join(extension_directory,'mozlog'))
    filecopyto('ublock_origin-0.9.8.2-an+sm+fx.xpi',extension_directory)
# inspired from http://ahal.ca/blog/2011/bulk-installing-fx-addons/
# code from http://mozbase.readthedocs.org/en/latest/mozprofile.html#module-mozprofile.cli

def uninstall():
    extension_directory=os.path.join(programfiles32,'firefox-extension','ublock')
    if os.path.exists(extension_directory):
        remove_tree(extension_directory)

def session_setup():
    extension_directory=os.path.join(programfiles32,'firefox-extension','ublock')
    sys.path.append(extension_directory)
    from mozprofile import FirefoxProfile
    from mozprofile import addons
    from mozprofile import profile
    from mozprofile import FirefoxProfile
    from mozprofile.profile import Profile

    #list firefox profiles
    for profile_path in glob.glob(os.path.join(application_data(),'Mozilla','Firefox','Profiles') + '\\*'):
        # create the profile
        xpi_filepath = os.path.join(extension_directory,'ublock_origin-0.9.8.2-an+sm+fx.xpi')
        kwargs = {'addon_manifests': None,
                    'addons': [xpi_filepath],
                    'preferences': [],
                    'profile': profile_path,
                    'restore':False
                    }
        profile = FirefoxProfile(**kwargs)


    

Changelog

No changelog
    

manifest.sha256

[["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["trash/mozprofile.egg-info/PKG-INFO", "c1d244e9f176f31e08ba50275a6ac15fb38c8b21dadc3632959731c8a886d989"], ["mozlog/structured/structuredlog.py", "7bca232741b38d8a8d85a444778e54b2809e984f4c08d9687fbb536ce3e04854"], ["ublock_origin-0.9.8.2-an+sm+fx.xpi", "f7fbe2225771fa3d0eeadf901c3f6c565653b51bbdcc9c363559a3fb759a378c"], ["mozlog/structured/formatters/html/__init__.py", "57e9e0742e4c4f1e9d4c00710612f8caf054ba44731bf1a8d49441cccdbd3df6"], ["mozlog/structured/__init__.py", "112f60867dfb47c86a8cc672869be85647e80058e793c3df526d975737749b5d"], ["manifestparser/__init__.py", "644c4bc6ee0a43e4041ac8b2f10000ed4aa41bc7ed40b02637cf7c416a56a1ad"], ["mozlog/loggingmixin.py", "db5f0ea8e13e7f79f7770e95ec5caaf7032398d93f56b97ecd08b090ddcd6d75"], ["trash/mozprofile.egg-info/not-zip-safe", "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"], ["mozprofile/profile.py", "395cf0c8155db87c7a90a242d4b1c41a7d826293d30b9c7c53c594412865fe83"], ["mozlog/structured/formatters/html/main.js", "947a169c5bcd30dd72b5c0b0f795150f17b47ee133188ac348d535f9b84e32bc"], ["trash/mozprofile.egg-info/top_level.txt", "ebe1f598dc953711de7be08a0f824b0da6df38b2b2921160fa254c872525f5b2"], ["mozlog/structured/formatters/html/xmlgen.py", "eee3ce4ea3067d9b38b16d5865deca43ce0f8af95c0402154e2358a750c5c0f7"], ["trash/setup.py", "e891a46e1e7855ef9d9644214d7c3d90aebf96d72c30fad756e414178f2f160d"], ["trash/PKG-INFO", "c1d244e9f176f31e08ba50275a6ac15fb38c8b21dadc3632959731c8a886d989"], ["mozlog/structured/formatters/html/html.py", "8192098294fa242f6cc26caa4c26312b8b5f407428e82132bedfa267ef342d2c"], ["mozfile/__init__.py", "f7811a27d37bf493b91947eb74938fede5a58123a0867b63233eec23b1e969df"], ["manifestparser/filters.py", "4360d3dc128fbc70cbb634709b322cdc4ac369cfe3cbcb9c4781267635397d60"], ["mozlog/structured/formatters/__init__.py", "2f52659ef93525ac11120b51f01e867922606e96eb8eb1a17a699654d26c19cf"], ["WAPT/wapt.psproj", "bc34bb5f85d78dffc7effd37bd0639580a0e140c155973c04d79eb9aa31eb57a"], ["mozlog/structured/scripts/logmerge.py", "725bb9367f682e7d998dc18feb2b912a79dbe00c54eb070acc5f78286cc3075a"], ["mozlog/structured/handlers/statushandler.py", "9996435c974b90971c142bc01953b412251068ec94be742792758d5bad9de519"], ["mozprofile/prefs.py", "6c5eaa598b09e29241916b50000ebd8834d675792faa537d956b18c245c6c138"], ["mozlog/structured/handlers/bufferhandler.py", "e8768e2967ddb159996c98d5f201b112019e7822aa6543dfe62729e2c833018f"], ["mozlog/logger.py", "25ff59cc6f823f54d7a0080ea772ce7b4339abdcf379302d153e005342ff71c6"], ["mozlog/structured/handlers/__init__.py", "5ee2951e995523041355baed0a39fb288901dd1acd6b937bb5c20dcf18106260"], ["mozlog/structured/formatters/machformatter.py", "de6caba5827986bdbaa962754b70ffb1fe55aa114a581724d004f4d27ad18690"], ["mozlog/structured/scripts/format.py", "42cb78c2e63a2c366cca57f0de8e6cfdcdb99eb4cc16998ba512351ffc0493b0"], ["mozlog/structured/logtypes.py", "946e830cf25a8ffc1c3c87589e2ed49b79ba51d513ac9a6dba2755561a20b3ad"], ["trash/mozprofile.egg-info/entry_points.txt", "4c080bf4df3174ef1dc68c421569ee8dde46d6278cfa7a67992f530ac2e633e7"], ["mozprofile/view.py", "59014c950e2cb9f55808277419f236899f62937309f6b883ddecf7cd25e52598"], ["mozlog/structured/formatters/tbplformatter.py", "c1b6870b2deeea1ee7417a6d1bb0c2e11c52ea08ed5181dfc7da5badf5d73cb9"], ["setup.py", "a60d760ef9819d1bda9c0dd9808508488a919b20391bc8cc6e0228421b23e1e9"], ["mozlog/loglistener.py", "3fe0123c13155ac6788e3b2b6a7f6e1152443ccb46bd10c6e7d2f82dd61d350a"], ["mozprofile/webapps.py", "dc460cd64d17d38e2b5a0a1518123de73913487dbf05a2af61668c7c164c0e02"], ["manifestparser/ini.py", "ab37457489872e5f35c5efccecb61e39ea3fdc524b172fada01facce96c0e5b1"], ["manifestparser/expression.py", "290e0e03f85da6d083194aa48cbeef9f49b863bc917a35b2cd36bb6dc2566227"], ["mozlog/structured/formatters/xunit.py", "2bc464684da2db8e73b909a49878a905b0952f9aea92bd52c14d704d58c5feaa"], ["mozlog/structured/reader.py", "9f98993aae47d2d1340548be210fb59ba39d44d3750a09587beff5528a82e5bc"], ["mozlog/structured/scripts/__init__.py", "b46fed75ffdcba4fcc50869e1d3e3ec7e1c53a24cc8b6ae02288ea6e8fb35b1f"], ["mozlog/structured/formatters/unittest.py", "0e71a82e5456daab78b608803359a360e1a50285522ec87d814edeb97adcc101"], ["trash/mozprofile.egg-info/dependency_links.txt", "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"], ["WAPT/control", "e24d8b0a8402a120806be8a556ff2767cbfc2a1aafaba3142445c8155c8e2fd9"], ["manifestparser/cli.py", "ccec62753cf5ffe75718d305dfbb0be3d606e31c78f16f6051bf3dd1f21e8d1a"], ["mozprofile/cli.py", "2bbe6e567219da01984ccc5fe85eeb914a4bc2016e4ce2ba70bf7102f85d22f2"], ["mozprofile/permissions.py", "cbee64a68b65a7fe1b877e866cba84d8dabfdb81cb7ca238a2158c2c3eda1a19"], ["mozlog/structured/scripts/unstable.py", "39ac49acd19bf843b7fa58ffc79d5b3642c0ea06afa9a76f682e3aef0befee63"], ["mozlog/__init__.py", "78275310a40a1156f82d4267b322adb1c017584d8f895c05a593ecfe03672eca"], ["mozlog/structured/handlers/base.py", "b154896e52e7cb257241d1bf76334dc5fe56bc6c501453db5ca89e5af65a8627"], ["mozprofile/__init__.py", "6416dae784d5516795c0d0e25d5e8528833ae8a81ba727ded68761c00e738699"], ["mozprofile/diff.py", "9d293ece39d8867a688bc8a019253c1954a2834e74716a40505184aca41805cd"], ["mozprofile/addons.py", "727d1e34e44cb543ed1ebd90027d7f075ab66b9be0b1714d6026bbd931c1e578"], ["mozlog/structured/commandline.py", "ff1efc391908e010f45155c872481a382fad9cfd5f05a59205354a65b045bbf1"], ["trash/mozprofile.egg-info/requires.txt", "7bf70a44dc2b8c4bdd8d4500e5268c4c4a2a6942984c653ae19280581bc523fa"], ["mozfile/mozfile.py", "3660668f9c0b7178466e73c3bf419959162c1b2c18d5b24bad3c9e1a12f4d708"], ["mozlog/structured/formatters/base.py", "b84a5d5ffb64678139db7630c6b0081e4fea3a36febd38312e2c220cdaf6770b"], ["manifestparser/manifestparser.py", "087edfc16f9d241d934cd513b4e9a8bc60ed037228634bebd0691c6226598e44"], ["trash/mozprofile.egg-info/SOURCES.txt", "4438f57d95c14dc5b2e6ad577503764ae656e4f947684760671ead5dc65d6351"], ["mozlog/structured/stdadapter.py", "7b74eef8cbfa27048f011b0c6057d0d4a004268232385a399a694d0295f11c85"], ["mozlog/structured/formatters/html/style.css", "46d9e0a298cad3c959e78a67443e1e2bc529cc9296d15923e9af8a300cd8fcb7"], ["trash/setup.cfg", "063d04b462ef73e9d86e0b0ae49c4321b51984444a5a2a90aece1e0082b488ee"]]