# HG changeset patch # User Edho Arief # Date 1445585303 0 # Node ID 771359d863c2e26ea92cca202f832f91968682d5 # Parent 0552100cceb3e744140d6dcf11dc06dbfa301a40 diff -r 0552100cceb3 -r 771359d863c2 rakuten-books-direct-search.user.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rakuten-books-direct-search.user.js Fri Oct 23 07:28:23 2015 +0000 @@ -0,0 +1,20 @@ +// ==UserScript== +// @name rakuten books direct search +// @namespace https://myconan.net +// @version 0.1.0 +// @description Search on rakuten without tracking proxy +// @author nanaya +// @match https://books.rakuten.co.jp/* +// @match http://books.rakuten.co.jp/* +// @grant none +// @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/mandarake-direct-link.user.js +// ==/UserScript== + +;(function() { + var $ = jQuery; + var $form = $("form[name='srchFrm']"); + if (!$form.length) { return; } + + var searchUrl = $form.find("input[name='R2']").attr("value"); + $form.attr("action", searchUrl); +}).call(); \ No newline at end of file