jakeis.com = doing things @ Jake Jilg's personal home page = jakeis.com
Tools
(aesthetic only)

jakeis.com = Jake Jilg, doing things....

Jake Jilg
Strict Safe Window User Script Converter

I wrote a safeWindow user script converter.

30 seconds to explain unsafeWindow...

Web pages run javascript like this... <script type="text/javascript">
    alert("hello world");
</script>

and and.. <script src="alertHello.js" type="text/javascript"></script>

and even... <script src="https://anotherhost.com/jsonp.js?query=thanks" type="application/javascript"></script>

but picture user scripts are running in a wrapper/scope like this

it's not quite this, but the plugin scope has similar issues to this <script src="file:///C:/Documents/greasy.user.js" type="text/javascript"></script> this ^ has security problems. ask a web designer.

this converter fixes that ^ to run like this v <script type="text/javascript">
/* was file :///C:/Documents/greasy.user.js but is now inline */
    alert("I'd like to use a server resource from the offline wrapper");
    jQuery("body *").doStuff();
/* this ^ is now safe window scope */
/* inline javascript added to the DOM runs from same domain */
</script>

More description of unsafeWindow and the converter here. https://jakeis.com/strict_safeWindow/
Web app in link ^

Proudly NOT powered by any monopoly blogging platform, but many great thanks to Chromium/Mozilla DevTools, MAMP/Apache, and Notepad++/TextWrangler because they did all the real work here. I, Jake Jilg am just a designer.
Swatches
R
<
>
G
<
>
B
<
>
Blogs & Blogs
    • Blog under construction.
    • Blog coming soon.
    • Blog under construction.