Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save cuylerstuwe/cb9d2db7dcb566bb1f3952cf7da793dd to your computer and use it in GitHub Desktop.

Select an option

Save cuylerstuwe/cb9d2db7dcb566bb1f3952cf7da793dd to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Google Search PanPan to open Panda Crazy
// @namespace salembeats
// @version 1.1
// @description "A Pan-Pan call should be used for urgent situations that are not immediately life threatening, but require assistance from someone on the ground."
// @author Cuyler Stuwe (salembeats)
// @include https://www.google.com/search?q=panpan*
// @grant window.close
// @run-at document-start
// ==/UserScript==
let newWindow = window.open("https://worker.mturk.com/?filters[search_term]=pandacrazy=on", null, "width=800,height=600");
if(newWindow) { window.close(); }
else {
document.addEventListener("DOMContentLoaded", event => {
let resultStats = document.getElementById("resultStats");
resultStats.innerText = "Automatic Panda Crazy opening was blocked by a popup blocker! Check the far right side of your URL bar for a button to press to enable popups for this site. Then, refresh this page.";
resultStats.style = "color: white; background: red; font-size: 1.2rem;";
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment