AutoPagerize for SeaHorse On Yahoo Japan
概要
- Yahoo Japanの検索結果やヤフオクなどでAutoPagerize for SeaHorseを動作可能にするSeaHorseスクリプト
必須拡張
- SeaHorse 1.1.2 以上
- UserAction Extension 1.0.0 以上
- AutoPagerize for SeaHorse ver 0.56 以上
動作確認環境
- Windows XP SP2
- Internet Explorer 7
- Sleipnir 2.8.5
- Seahorse 1.1.2
- UserAction Extension 1.0.1
インストール
- ソースをコピーし、テキストエディタに貼り付け
- sleipnir のインストールディレクトリ\plugins\seahorse\ApOnYahooJapan.user.js に保存
- SeaHorse 再読み込み
ソース
// ==UserScript==
// @name AutoPagerize for SeaHorse On Yahoo Japan
// @description AutoPagerize for SeaHorse を Yahoo Japan 検索結果で正常に動作させる
// @include http://*.yahoo.co.jp/*
// ==/UserScript==
(function(){
if (window.__ApOnYahooJapan) return;
window.__ApOnYahooJapan = true;
function filter(opt) {
if (opt.url.match(/http:\/\/wrs\.search\.yahoo\.co\.jp\/.+(http%3A\/\/search\.yahoo\.co\.jp\/search(\?|%3F).+$)/))
opt.url = decodeURIComponent(RegExp.$1);
else if (opt.url.match(/http:\/\/o?rd\.yahoo\.co\.jp\/.+(http(:|%3A)\/\/.*(auctions|chiebukuro)\.(search\.)?yahoo\.co\.jp\/.+$)/))
opt.url = RegExp.$1.replace('%3A',':').replace('%3F', '?');
else if (opt.url.match(/http:\/\/srd\.yahoo\.co\.jp\/.+(http:\/\/image-search\.yahoo\.co\.jp\/search(\?|%3F).+$)/))
opt.url = RegExp.$1.replace('%3A',':').replace('%3F', '?');
if (opt.url.indexOf(location.hostname) == -1)
opt.url = opt.url.replace(/^http:\/\/(.+\.(auctions|chiebukuro)\.yahoo\.co\.jp)/, 'http://' + location.hostname);
}
setTimeout(function(){
if (window.AutoPagerize && window.AutoPagerize.addRequestFilter)
window.AutoPagerize.addRequestFilter(function(opt){filter(opt);});
},0);
})();