tis-disable-js-chrome 3

  • package : tis-disable-js-chrome
  • version : 3
  • description : Disable Javascript in Chrome
  • maintainer : Steven Samson
  • date : 2018-02-27 18:58:39

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
    

manifest.sha256

[["setup.py", "c333dab3356076ba68dc2a533f10743b3f4b26b3cdb5d4f52d731d28b8c24c0a"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "602f837dd2593d9ce4b1fd8e26f485eae6f5fe53f38129fed2c09062247e9a22"], ["WAPT/control", "d9387d551b3d4c5601ee4c4a3c0f86e06ca582963b1d0f1de89c775346970c88"]]