Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
24 lines (19 sloc) 1.121 kb
// @downloadURL none
// ==UserScript==
// @name Add KCLS links to Goodreads
// @namespace http://use.i.E.your.homepage/
// @version 1.01
// @description Puts links in Goodreads lists that go directly to a search at the King County Library System
// @match https://www.goodreads.com/review/list/*
// @copyright 2014, Shayne Holmes
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://greasyfork.org/scripts/2199-waitforkeyelements/code/waitForKeyElements.js?version=6349
// @author Shayne Holmes
// ==/UserScript==<<
$("th.title").after(function(){ return $(this).clone().removeClass('title').addClass('kcls').html('<div style="margin: auto 10px;">kcls</div>');});
waitForKeyElements ("td.field.title", addkclslinks);
function addkclslinks(jNode) { jNode.after(
function(){ return $(this).clone().removeClass('title').addClass('kcls')
.html("<div style='margin: auto 10px;'><a title='search on KCLS' href=http://kcls.bibliocommons.com/search?t=smart&search_category=keyword&q="
+ encodeURIComponent(this.innerText)
+ "&commit=Search>kcls</a></div></td>");}
); }
Jump to Line
Something went wrong with that request. Please try again.