opus-nt/mods/[all]/internet explorer - google search engine/modscript.py

9 lines
1.4 KiB
Python
Raw Normal View History

for reg in regs:
if not reg.startswith("user-"): continue
user = opusnt.regTmpPath + reg
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Internet Explorer\\SearchScopes\\{EA350C88-8235-492C-984F-33B1A32BBAA5}","/v","DisplayName","/t","REG_SZ","/d","Google","/f"])
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Internet Explorer\\SearchScopes\\{EA350C88-8235-492C-984F-33B1A32BBAA5}","/v","FaviconURL","/t","REG_SZ","/d","https://www.google.com/favicon.ico","/f"])
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Internet Explorer\\SearchScopes\\{EA350C88-8235-492C-984F-33B1A32BBAA5}","/v","ShowSearchSuggestions","/t","REG_DWORD","/d","0x00000000","/f"])
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Internet Explorer\\SearchScopes\\{EA350C88-8235-492C-984F-33B1A32BBAA5}","/v","SuggestionsURL","/t","REG_SZ","/d","https://clients5.google.com/complete/search?q={searchTerms}&client=ie8&mw={ie:maxWidth}&sh={ie:sectionHeight}&rh={ie:rowHeight}&inputencoding={inputEncoding}&outputencoding={outputEncoding}","/f"])
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Internet Explorer\\SearchScopes\\{EA350C88-8235-492C-984F-33B1A32BBAA5}","/v","URL","/t","REG_SZ","/d","https://www.google.com/search?q={searchTerms}","/f"])
opusnt.runReg(["add",user + "\\Software\\Microsoft\\Internet Explorer\\SearchScopes","/v","DefaultScope","/t","REG_SZ","/d","{EA350C88-8235-492C-984F-33B1A32BBAA5}","/f"])