local/bin/chromium-ext-dl

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