This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-29
Channels
- # beginners (24)
- # boot (6)
- # cider (22)
- # cljsjs (1)
- # cljsrn (12)
- # clojars (3)
- # clojure (170)
- # clojure-china (2)
- # clojure-dusseldorf (18)
- # clojure-finland (1)
- # clojure-italy (32)
- # clojure-nl (1)
- # clojure-russia (65)
- # clojure-sanfrancisco (1)
- # clojure-spec (21)
- # clojure-uk (46)
- # clojurescript (92)
- # clojutre (1)
- # clr (7)
- # cursive (7)
- # datomic (6)
- # dirac (49)
- # emacs (17)
- # events (1)
- # funcool (20)
- # hoplon (6)
- # job (1)
- # jobs (1)
- # keechma (2)
- # leiningen (6)
- # lumo (74)
- # off-topic (15)
- # om (7)
- # onyx (40)
- # overtone (4)
- # pedestal (8)
- # powderkeg (4)
- # proton (2)
- # protorepl (2)
- # re-frame (18)
- # reagent (24)
- # ring-swagger (3)
- # rum (15)
- # slack-help (1)
- # spacemacs (20)
- # uncomplicate (62)
- # unrepl (29)
- # untangled (10)
- # yada (10)
I was wondering what prerequisites are necessary to generate chromex
from js API
my question is pretty simple, do you think generation process that you apply on chrome extension api would be portable in some way to google charts
https://www.google.com/uds/modules/gviz/gviz-api.js
absolutely not portable, chromium devs described their api via JSON, this data structure is used mainly for generating their documentation site[1], I simply abused the fact and generate clojure code from that JSON: https://github.com/binaryage/chromex/tree/master/tools [1] https://developer.chrome.com/extensions/api_index
gviz people most likely have nothing to do with chromium and I doubt they would have some similar data describing their apis
so I should
1 - use directly js
or 2 - wrap native js api into cljs functions
but in general yes, either use js interop directly or hide it behind a wrapper library
Ok, thanks @darwin ! And the chromex lib is impressive ! 👏👏👏
btw. when getting your hands dirty with js interop, check out https://github.com/binaryage/cljs-oops
I've seen it but never tried
I started to read what you can do with a chrome extension
And you can do quite a lot... #bigbrother
I use chrome extension, but I never paid for one (and I buy a lot of apps/saas/softwares)
I am not sure people are ready to buy chrome extension
Should be possible as a support for a standalone product
"Chrome extension adds some magic to my super product "
Wow, I never realized chromex could do so much stuff! It makes me wonders how hard it can be to install and hide an evil chrome app...
well forget hiding as most people wouldn't even notice something wrong with browser until nothing works... All you need to do is get them to install your app right?
the only barrier is that chrome web store is the only place I can get extensions from or not evne?
heh yeah I guess at that point you might as well install an exe and get them to give you admin rights..
but still that might have to deal with AVs and on mac little snitch whitelisting chrome is so common that is a nice vector...
as I said, they have a mechanism how to remove malware/rogue code if it turns out to be an issue
I just think it would be easy to trick even someone like me into installing a seamingly friendly chrome extension (ie dirac ?! 🙂 ) that would call home and screencapture and shit
and again you would have to give it really strong permissions, which is not something you would want to do for a usual extension
but there could be some attack vectors, but we yet have to see some real incidents in the wild
ok I'll take your words for it 😉 at first glance it does look quite worrying but you are correct that at least there is such permission mechanish... I'm just getting a little more worried about browsers everyday I think