Last active
August 24, 2019 16:34
-
-
Save gabbygobln/d6ee6d6f228f18986ad14b537d911a1c to your computer and use it in GitHub Desktop.
This script adds up the chromium/chrome version and the extension ID you enter to quickly spit out the complete url to download the wanted crx file. I made this script to help me get extensions I want on ungoogled-chromium without having to constantly edit the url. Just a heads up, I am somewhat inexperienced in Python.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The script is written like this to allow Python2.7-Python3.x to run it. Feel free to make any improvements or changes | |
try: | |
VERSION = raw_input('Enter chromium version: ') | |
EXT_ID = raw_input('Enter extension ID: ') | |
CRX_URL = "https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=" + VERSION + "&x=id%3D" + EXT_ID + "%26installsource%3Dondemand%26uc" | |
print(CRX_URL) | |
except: | |
VERSION = input('Enter chromium version: ') | |
EXT_ID = input('Enter extension ID: ') | |
CRX_URL = "https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion=" + VERSION + "&x=id%3D" + EXT_ID + "%26installsource%3Dondemand%26uc" | |
print(CRX_URL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment