This very simple script will look for an element with an id of "userscript" and it will insert the contents exactly as is inside a script tag, then append the script to the body. This allows you to enter javascript in a plain text widget, which will get applied to the page. Neat!