NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name iframe embed Test Greasemonkey 4
// @namespace cuzi
// @license MIT
// @include /^https:\/\/cvzi\.github\.io\/Userscripts\/index\.html\?link=.+/
// @include /^https:\/\/cvzi\.github\.io\/Userscripts\/index\.html/
// ==/UserScript==
if(document.location.search) {
alert(document.location.search);
} else {
// Test iframe
var iframe = document.createElement("iframe");
iframe.src = "https://cvzi.github.io/Userscripts/index.html?iframeWorks";
document.body.appendChild(iframe);
// Test embed
var embed = document.createElement("embed");
embed.src = "https://cvzi.github.io/Userscripts/index.html?embedWorks";
document.body.appendChild(embed);
// Test object
var object = document.createElement("object");
object.data = "https://cvzi.github.io/Userscripts/index.html?objectWorks";
document.body.appendChild(object);
}