cuzi / iframe embed Test Greasemonkey 4

// ==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);
}