Open fkloft opened 11 years ago
The same applies to the main IITC script too (end of main.js)
I believe it's done like this so all the code runs within the context of the page itself, rather than any separate context used by Greasemonkey/Tampermonkey
Is there a specific reason to append
after each plugin instead of calling
wrapper()
directly?The current implementation has some major drawbacks. The code is first parsed, then
wrapper.toString()
is implicitly called to add the source into the<script>
element, which is then parsed again. This iswrapper()
directly (no re-parsing)