{"repo":"elbywan/yett","free":true,"listed":false,"github":"https://github.com/elbywan/yett","clone":"git clone https://github.com/elbywan/yett.git","description":"🔐A small webpage library to control the execution of (third party) scripts","language":"JavaScript","stars":805,"topics":["gdpr","analytics","tracking","privacy","blocker","block","rgpd"],"license":"MIT","category":"analytics","readme_excerpt":"Yett 🔐 A small webpage library to control the execution of (third party) scripts like analytics Simply drop yett at the top of your html and it will allow you to block and delay the execution of other scripts. Background [❓] So, why on Earth would I want to block scripts on my own website? One way to use yett would be to build a GDPR compliant consent-first-analytics, via an UI like below. Analytics scripts are blocked until users Accepts, (previously) in production at https://snips.ai Blocking execution of analytics script (until consent is given) can be done manually, but the problem is that analytics providers often provide minified code embeds that you have to include in your html as they are. If you want to exercise control over their execution, then you have to tamper with this minified JS yourself, which is complex and does not scale well if you load several 3rd party scripts. Another thing to consider is that these scripts first setup a local buffer that record user actions locally, and then upload the data only after a remote script is loaded asynchronously. Meaning that if the whole thing is simply wrapped inside a callback (as some other libraries do) then every action performed by the user on the web page before the callback gets executed won't get recorded and will never appear in your analytics dashboard. Thus we invented yett . Just drop in the script and define a domain blacklist - yett will take care of the rest ✨. ------ And on a side note, it is technicall","default_branch":null,"files":null,"tree":[],"storefront":"/r/elbywan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/elbywan/yett/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}