elbywan/yett

Possibility to block and entire <script>block?

cryothic opened this issue · 3 comments

Is it possible to block an entire <script> block like this?

If I add a block like this:
<script type="javascript/blocked"> (function(){ alert("loaded"); })() </script>
it isn't executed. But when I call .unblock() this whole block disappears.
We're working with a CMS where we don't know what scripts the author will add to a page.

Hey @cryothic,

Is it possible to block an entire <script> block like this?

Unfortunately no, yett is meant to block script blocks having a src attribute and will not restore a script contents when unblocking.