tis-firefox-adblockplus 2.6.9-6

  • package : tis-firefox-adblockplus
  • version : 2.6.9-6
  • description : Outil de blocage de plublicité pour firefox
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2017-07-20 11:20:17
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112016
  • min_os_version :
  • min_wapt_version :

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)


    

manifest

[["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["trash/mozprofile.egg-info/PKG-INFO", "624e5c55e7daf58eb0866105fdd54b3d6e353af8"], ["mozlog/structured/structuredlog.py", "30e998b5f259ad873ec7b4df17a8f3aafa4681b8"], ["ublock_origin-0.9.8.2-an+sm+fx.xpi", "347817ffa570cc0eaaad7814952139d3db92ccf7"], ["mozlog/structured/formatters/html/__init__.py", "03db1f66e50571383d8c1e6968b4b7228baad562"], ["mozlog/structured/__init__.py", "04ab3750a9afa9926e6b5ca551bf9b6bc45b6f24"], ["manifestparser/__init__.py", "e5502b0b6ed857dcc7f2a9dc77ac101ddca36b19"], ["mozlog/loggingmixin.py", "144f51fbf441911c78b797b9cd5876f4908365e6"], ["trash/mozprofile.egg-info/not-zip-safe", "adc83b19e793491b1c6ea0fd8b46cd9f32e592fc"], ["mozprofile/profile.py", "3533ec654f1022c6633ca2dd70c5ae5ab7583735"], ["mozlog/structured/formatters/html/main.js", "ebde7d5499dc4b7a41553bb90df5bbe12b260f45"], ["trash/mozprofile.egg-info/top_level.txt", "0142b0293b1dd16023146d6aba4dd31f1a9f55bd"], ["mozlog/structured/formatters/html/xmlgen.py", "6e7177f474eb5bf3337749b2ec0420e467969422"], ["trash/setup.py", "3528dbee6fc9c01c53cecaae192f659ae189b7d4"], ["trash/PKG-INFO", "624e5c55e7daf58eb0866105fdd54b3d6e353af8"], ["mozlog/structured/formatters/html/html.py", "723eeffe0c958ba9d5e731f898fe856473d3a15a"], ["mozfile/__init__.py", "4da424d22ddd68636f114b97041590a825ae26b5"], ["manifestparser/filters.py", "7ba64da36b5cd5f945208fd1cf75457d8250c89b"], ["mozlog/structured/formatters/__init__.py", "866978f61244319740570c2107ad044ed7661ebe"], ["WAPT/wapt.psproj", "d140401965341ede69880cd6342c5db7040324b2"], ["mozlog/structured/scripts/logmerge.py", "bcf2294ecbfb304e66679655c8e01ea734b89cae"], ["mozlog/structured/handlers/statushandler.py", "b576317aeb939c5827bdd617516976e8d7e69780"], ["mozprofile/prefs.py", "79681698b723056f23f3d0ca2195fb6f27a2d0ed"], ["mozlog/structured/handlers/bufferhandler.py", "881a715ae173872d1bfafb5d1ad1e90c00d97398"], ["mozlog/logger.py", "ec4266252d2fc7ea0b897370519e8f7e821f1b02"], ["mozlog/structured/handlers/__init__.py", "785a796c9553d785c966aebe2a44f25edd4ed3db"], ["mozlog/structured/formatters/machformatter.py", "dc2a30dec9431982bb785dd783cce931ded9481c"], ["mozlog/structured/scripts/format.py", "e1416469bacce1ca3e123ea10403d268c3e59af1"], ["mozlog/structured/logtypes.py", "d76adfb275e76636d88e9d60cc182c3919c16249"], ["trash/mozprofile.egg-info/entry_points.txt", "bfc45dda7b9a979a54bdd845b3d7c74cbf6720d6"], ["mozprofile/view.py", "b06e60138d6c47beaaa0c9ef88896a8abca332d6"], ["mozlog/structured/formatters/tbplformatter.py", "25414f4bb909a3f1572ff7d31616ae95d39e7d68"], ["setup.py", "f7aff3140b9bcf3e90991d4cbe3340a0edcfbb9f"], ["mozlog/loglistener.py", "c52914326af580e0b2a95f1f5200f0e5f6b26560"], ["mozprofile/webapps.py", "66fa9f88692d8167dc8abf8cfef202e812e41fb7"], ["manifestparser/ini.py", "bb8c3669a2b1c94eb3e83ef2398aff3f8a6618d5"], ["manifestparser/expression.py", "53fcb040361d42adb00cd96dd884f9bf31cad174"], ["mozlog/structured/formatters/xunit.py", "7b0d0209e5596384bd100ce4883109e6b4929f71"], ["mozlog/structured/reader.py", "96500ad1542b7a6e36b9117e63b775a972543b13"], ["mozlog/structured/scripts/__init__.py", "d0ded01412b10a284ac25f84a6dc0c5da85b8d98"], ["mozlog/structured/formatters/unittest.py", "8ea1cc3bdd6a2d6f514fc4a712dd0f62fdb62c96"], ["trash/mozprofile.egg-info/dependency_links.txt", "adc83b19e793491b1c6ea0fd8b46cd9f32e592fc"], ["WAPT/control", "f7b64f95621eff0769ed85be7d384dc808347ef0"], ["manifestparser/cli.py", "0bd45124509df8aa7a4bd473b9742657a05a2ab8"], ["mozprofile/cli.py", "acb2916f8765410cba867f00f73b3ab122ae22d1"], ["mozprofile/permissions.py", "fa03348cf04ddae60d7eae7e7b5882333c9145ad"], ["mozlog/structured/scripts/unstable.py", "b031ea3dd318d25108b3f96d3f89bf3bb32547c8"], ["mozlog/__init__.py", "515249e820b2eaaf217000d0a90aabe67b1444d2"], ["mozlog/structured/handlers/base.py", "3aba1a0afb3a78533560bff84500489d3c7ad06d"], ["mozprofile/__init__.py", "13f5dba99b2bbdcecb6130e326f2d6b4e28e670f"], ["mozprofile/diff.py", "b4d453ae1fd7a7730dbb64c42afacd9b5ce7a7b8"], ["mozprofile/addons.py", "9feb1bbfaf4f50f6497f246776ae0209565311a0"], ["mozlog/structured/commandline.py", "48018bfe2768f7075d3c6127bf4cb9c1a3082fd5"], ["trash/mozprofile.egg-info/requires.txt", "2f70d4e7e344fa7868ac79df184458812f9cc153"], ["mozfile/mozfile.py", "51ca8d303c7dc01b08225deb07412e8547f15b10"], ["mozlog/structured/formatters/base.py", "a909a62b5856d63b47f95981d80dec039da87211"], ["manifestparser/manifestparser.py", "a6970578308baceab6f2ca8b0c1b255b34d09aaf"], ["trash/mozprofile.egg-info/SOURCES.txt", "e1193041c6d53618b7538c838e12bc1e6dfbfa4a"], ["mozlog/structured/stdadapter.py", "edc4b389198bda8b683ae901bb8b209a147b6a4d"], ["mozlog/structured/formatters/html/style.css", "617a45eeddb8d27334b8c007b741422ed8673558"], ["trash/setup.cfg", "68140cccea91d3e1c1e21a3416acd5551d0dea45"]]