Iframe, Cross-origin testbed for userscripts
by BrockA
HTML
<!DOCTYPE html>
<html><head>
<title>iFrame, cross-domain, test page (container)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
html, body, div, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, a {
margin: 0; padding: 0; border: 0;
}
body {
color: black;
background: white;
text-align: left;
font-size: 96.01%;
font-weight: normal;
font-family: "Trebuchet MS", Helvetica, Tahoma, Arial, sans-serif;
padding: 2em 5%;
line-height: 150%;
min-width: 680px;
}
p { margin-bottom: 1em; }
* {
font-size: 1em; font-weight: normal;
}
a, a:link{ color:#201B9B; }
a:visited { color:#4A1A2C; }
a:hover { color: red; }
iframe {
height: 10em; width: 80%;
}
</style>
</head><body>
<h3>This page is just a target for Tampermonkey/Violentmonkey/User scripts --
to test dealing with cross-domain iframes.
</h3>
<p>Refer to <a href="https://stackoverflow.com/a/11774184/331508">this Stack Overflow post</a>.</p>
<br>
<iframe src="https://xkcd.com/2132/" id="testIframe"></iframe>
</body>
</html>