WebPage with different scripts to execute, could be used in iFrames, in redirects, etc.
This splurts an empty page with a script tag, set to show an alert, with the specific message in the url.
This splurts the provided image from another domain, make sure the URL is "encoded". You can use a service like: https://www.urlencoder.org/
This will try to gather as many information as possible from the original host/frame/window that rendered this page in an iFrame. Domain must be specified to allow CORS
This opens an empty new window - Not used for anything else for now
Opens a new page which then gets redirected to another specified URL (please encore the string)
This helps in quickly building small webpages with actions such as an alert window, console.log or specifying a new domain (and more). For exemple, you add htmlBuildingBlocks.scriptOpen to add to a general page string. It's either that or making a gigantic string mixing HTML and Javascript. You can absolutely do that if you wish, but oof.
returns: "<script type='text/javascript'>"
returns: "</script>"
returns: "alert('[msg]');"
returns: "document.domain='[domain]';"
returns: "console.log([what]);"
returns: "<img src='[imgUrl]'>"
returns: "window.open();"
returns: "document.location.href = '[newUrl]';"
App is situated here: https://cdpg.herokuapp.com