local/bin/chromium-ext

   1 #!/bin/bash
   2 
   3 # lanfdkkpgfjfdikkncbnojekcppdebfp Canvas Fingerprint Defender
   4 # ldpochfccmkkmhdbclfhpagapcfdljkj Decentraleyes
   5 # ajnianifcggmdojhnmjichjmnjpplcha FLST Chrome
   6 # gcbommkclmclpchllfjekcdonpmejbdp HTTPS Everywhere
   7 # pkehgijcmpdhfbdbbnkijodmdjhbjlgp Privacy Badger
   8 # hnkcfpcejkafcihlgbojoidoihckciin Referer Control
   9 # mnbiiidkialopoakajjpeghipbpljffi Select like a Boss
  10 # cjpalhdlnbpafiamejdnhcphjbkeiagm uBlock Origin
  11 # jpfaonpjjgnlijajdopahnmcdplgnlei Zebra RSS
  12 
  13 url+='https://clients2.google.com/service/update2/crx'
  14 url+='?response=redirect&prodversion=70.0'
  15 url+='&acceptformat=crx2,crx3'
  16 url+="&x=id%3D$1%26installsource%3Dondemand%26uc"
  17 
  18 [[ $@ ]] && wget -O "${2:-$1}.crx" $url
  19 [[ $@ ]] && exit
  20 
  21 mkdir -p extentions
  22 grep '^# \w' $0 | while read _ id name; do
  23     $0 $id "extentions/$name"
  24 done