Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// ==UserScript==
// @name Quicktron
// @namespace Quicktron
// @include*
// @author Dan Diebolt
// @description Adds a mini search form to the QuickBase Community Forum
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "");
script.addEventListener('load', function() {
var script = document.createElement("script");
script.textContent = "(" + callback.toString() + ")();";
}, false);
function main() {
alert("Quicktron Loaded!")
var markup="";
markup +='<table cellspacing="0"> <tbody>';
markup +='<tr>';
markup +='</tr>';
markup +='<form name="searchMiniForm" onsubmit="SrchSubmit(); return true;" action="8emtadvk" method="get">';
markup +='<input type="hidden" value="QuickSearch" name="act" />';
markup +='<tr>';
markup +='<td>';
markup +='<input id="srchtxt" size="30" name="srchtxt" /></td>';
markup +='<td align="left">';
markup +='<input type="submit" value=" Quick Search " /> </td>';
markup +='</tr>';
markup +='</form></tbody>';
markup +='</table>';
alert("all done");
// load jQuery and execute the main function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.