tis-disable-js-chrome

3
Disable Javascript in Chrome
1278 downloads
Download
default icon

  Description 

  • package : tis-disable-js-chrome
  • version : 3
  • architecture : all
  • categories :
  • maintainer : Steven Samson
  • description : Disable Javascript in Chrome
  • locale :
  • target_os :
  • min_wapt_version :
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:29:45.618061

  Setup.py 

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    #http://www.chromium.org/administrators/policy-list-3#DisabledPlugins
    # For chrome version older than 57
    registry_setstring(HKEY_LOCAL_MACHINE, r'Software\Policies\Google\Chrome\DisabledPlugins', '1','Chrome PDF Viewer')
    registry_setstring(HKEY_LOCAL_MACHINE, r'Software\Policies\Google\Chrome\DisabledPlugins', '2','Chromium PDF Viewer')

    # For chrome version newer than 57
    registry_set(HKEY_LOCAL_MACHINE, r'Software\Policies\Google\Chrome', 'AlwaysOpenPdfExternally',1, REG_DWORD)


def uninstall():
    registry_deletekey(HKEY_LOCAL_MACHINE, r'Software\Policies\Google\Chrome',"DisabledPlugins")
    registry_delete(HKEY_LOCAL_MACHINE, r'Software\Policies\Google\Chrome', "AlwaysOpenPdfExternally")
										

  Changelog 



No changelog.txt.
									
  manifest.sha256