Greasy Fork

来自缓存

Greasy Fork is available in English.

Add KCLS links to Goodreads

Puts links in Goodreads lists that go directly to a search at the King County Library System

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name       Add KCLS links to Goodreads
// @namespace  http://use.i.E.your.homepage/
// @version    1.02
// @description  Puts links in Goodreads lists that go directly to a search at the King County Library System
// @match      http*://www.goodreads.com/review/list/*
// @copyright  2014, Shayne Holmes
// @require       http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require http://greasyfork.icu/scripts/2199-waitforkeyelements/code/waitForKeyElements.js?version=6349
// @author Shayne Holmes
// @grant none
// ==/UserScript==

this.$ = this.jQuery = jQuery.noConflict(true);

$("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>");}
); }