Replace library form

Error message

Warning: count(): Parameter must be an array or an object that implements Countable in antispam_user_load() (line 1545 of /var/www/


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         Replace Library Form
// @namespace
// @description      Replace the worldcat form with the older one
// @include
// @include          http://*
// @version          0.1
// ==/UserScript==

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

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

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

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




Add new comment