Replace library form


Greasemonkey, user script compiler



Because it is unclear what the privacy policies of are, especially with regards to data retention and level of compliance under the Patriot act, it is all the more heinous that the Cornell Libraries has instituted a new form that defaults to sending all searches through These searches thus leave the confines of the Cornell campus network and are sent in plaintext over the web, open to interception by anyone. All the more, the results are less useful (requiring clicks on each item to see its location and status, rather than on the search results themselves under the “classic” catalog), use unnecessary AJAX to load the book’s status, are nearly 7 times as large as the “classic” results, and link the library to commercial entities (not local ones) for the “ability” to purchase books. All these aspects are at cross purposes to the mission of the library and the search form on the library website, namely whether or not the book is located at the library and if so, where it is. Thus this script, also available in a standalone version, that replaces the “new” interface with the older “classic” interface, thus negating the need to click multiple times in order to protect your privacy.

// UserScript
// name &nbsp; &nbsp; &nbsp; &nbsp; Replace Library Form</span><br /> <span style="color: #006600; font-style: italic;">// namespace
// description &nbsp; &nbsp; &nbsp;Replace the worldcat form with the older one</span><br /> <span style="color: #006600; font-style: italic;">// include
// include &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;http://*</span><br /> <span style="color: #006600; font-style: italic;">// version          0.1
// /UserScript

var ReplaceLibraryForm = {
    version : ‘0.1’,
    init : function() {
        // nothing here right now

    replaceLibraryForm : function() {
        divToReplace = document.getElementById("quick-search");
        divToReplace.innerHTML = "&lt;form name=\"querybox\"
            action=\"\" method=\"get\"

            &lt;span class=searchHead&gt;&lt;a href=\"\"&gt;Library Catalog&lt;/a&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;span class=searchForm&gt;
            &lt;input size=10 maxlength=\"100\" name=\"Search_Arg\" id=searchInput&gt;
            &lt;select name=\"Search_Code\" size=\"1\"&gt;
                &lt;option selected value=\"TALL\"&gt;Title&lt;/option&gt;
                &lt;option value=\"NAME_\"&gt;Author&lt;/option&gt;
                &lt;option value=\"SUBJ_\"&gt;Subject&lt;/option&gt;
                &lt;option value=\"FT*\"&gt;Keyword&lt;/option&gt;

            &lt;input type=\"image\" border=\"0\" value=\"Go\" name=\"Go22\" src=\"img/go.gif\" align=absbottom alt=\"[Search]\"&gt;&lt;/span&gt;&lt;/form&gt;"




Add new comment