// ==UserScript==
// @name YahooAuctionS
// @namespace http://www.nikep.net/yahooauctions/
// @description Yahoo!オークションUIカスタマイズ設定
// @include http://*.auctions.yahoo.co.jp/*
// @include http://auctions.search.yahoo.co.jp/*
// ==/UserScript==
//
// $Id: yahooauctions.user.js,v 1.16 2010/07/23 16:54:15 satan Exp $
// auther: Shigeki Kaneko
// version: 0.1.16
// Copyright(c): 2009 Shigeki Kaneko, all right reserved.
//
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
(function(){
//-- >> 設定パラメータ Configuration parameters of the script
//-- 商品リスト画面の表示を強制的に「残り時間が短い」順にする。
//-- sort by remaining time on list or search result. [true/false]
var SORT_BY_REMAINING_TIME = false;
//-- ウォッチリストからの削除を行った後に表示される確認画面から自動的に戻る
//-- back from confirmation window of deleting watchlist automatically.[true/false]
var AUTO_BACK_AFTER_DELETING_WATCHLIST = true;
//-- ウォッチリストに登録を行った後に表示される確認画面から自動的に戻る
//-- back from confirmation window of adding watchlist automatically.[true/false]
var AUTO_BACK_AFTER_ADDING_WATCHLIST = true;
//-- 業者の公告を非表示にする
//-- Hide advertisement from shops.[true/false]
var REMOVE_SHOP_ADVERTISEMENT = true;
//-- ヤフーの[PR]を非表示にする
//-- Hide advertisement from yahoo.[true/false]
var REMOVE_YAHOO_ADVERTISEMENT = true;
//-- ヤフーショッピングを非表示にする
//-- Hide advertisement from yahoo.[true/false]
var REMOVE_YAHOO_SHOPPING = true;
//-- 現在価格を 1円〜4999円にする。[true/false], 最低価格(MIN)/最高価格(MAX) は円
//-- Current price must be limitted upto 4999 Yen for non-premium membership.
var LIMITED_PRICE_FOR_NON_PREMIUM = false;
var LIMITED_PRICE_FOR_NON_PREMIUM_MIN_PRICE = 10;
var LIMITED_PRICE_FOR_NON_PREMIUM_MAX_PRICE = 4999;
//-- 「中古」に限定する
//-- Limit only to second hands.
var LIMITED_TO_SECONDHAND = false;
//-- ウォッチリストで「タイトルと画像」表示にする。
//-- force to set "title and picture" on the watch-list screen.
var FORCE_TITLE_AND_PICTURE_ON_WATCHLIST = false;
//-- ウォッチリストで「値下げ交渉」を「検索履歴」にすり替える
//-- substituting "offer to discount" to "search history"
var SUBSTITUTE_OFFERDISCOUNT_TO_SEARCHHISTORY = false;
//-- ヤフオク外へのジャンプで即座に飛ぶ
//-- junping off the auction site without confirmation pages.
var JUMP_OUTSIDE_WITHOUT_CONFIRMATION = true;
//-- 新検索画面の既閲覧の異常な仕様を元に戻す。
//-- Disable insane displaying "already watched page" in a new search page.
var DISABLE_INSANE_HISTORY_HANDLING = true;
//-- 出品者のブラックリスト。商品リスト上で非表示にする[true/false]
//-- Black list of user id. Add one into comma separated list in backList.
var REMOVE_UESR_IN_BLACK_LIST = true;
var blackList = [];
// var blackList = [ "5899", "CIMA1105", "CortinaBlue", "KK57", "KOU8926", "LC100LTD", "NORIHIRO55777", "OSAIRO2000_1231", "PCjr", "PIOKI", "a3866tot", "a4781213", "a6m2miz", "a_2no3", "a_o_k_e_i", "aaaa2002osk", "aaaka1117", "aaamerica01", "abt6736", "abuhatitorio", "active777jp", "acxpc", "admiral_Nyang", "adnap1230", "advan2007jp", "afds20032000", "aiaimaikazu", "airplane_takeoff", "aiyaoee", "aizen_str_auc", "ak74200810", "akinaigokko1", "akitamu28", "alecs1992", "alphajapancorp", "ampmrevy", "andechsjp2", "ando_gakki", "andway48", "andystock_99", "angel_angel_happy", "angterial", "animaldou100", "ao625", "aonekodevil", "aragawakitty", "arrival_pro", "asaro375", "askhdslkcx", "assisnet_co", "astyle_shop", "asus2358", "atmark66", "ato_mx50", "auction_kiraplanning", "auctionhouse6718", "aucyou2008", "auto_crews4", "autumnloginet", "avcc11", "avenue_200504", "azabu12", "azk25", "ball0765", "bananabeach1991", "banschan", "bargain_plan", "baseballhara23", "baseup2001", "bbjp3", "beckey815", "bestcamerabag", "bi_bigmo8", "bice330", "bicycles24626", "bigbird_7jp", "bihaiyan63", "billbigsale_jp", "birdeye2001", "bluerevolution2006", "bluesky0406i", "bode6294_amd", "bonbom2007jp", "bose_freak62", "bowbow1954", "brandelux_jp", "buchikin", "bunta0202", "bv_yafuokuten", "bvmcar8152", "cafe_camera", "caferatnica", "call_gate_way", "cancer_11jp", "capetown_goodhope", "carrera_rs_996", "casualbox55", "cb400sf_verr", "cba87910", "cc6wheel", "cde0003", "cherry_opp_song", "chibi_111jp", "chisa_mama", "chly86", "chuangye8jp", "ciaopi380", "cinderella_yuki2000jp", "clevous08", "clickers3000", "climb_on_8848", "clockworkt_t", "cobanruby", "collection_japan", "color7560jp", "comshott", "coronpjkd", "cottonnsakura", "courage1999jp", "csintl2010", "ctpmk385", "cts030125", "cwjjx491", "cyber_tom27", "cyndi_wang2007", "d20010707", "d_fugou", "daikoku_otafuku", "daikouou_fukuyama", "dangan_s", "datapoint_web", "delphy", "den_toiya", "diehardlock", "digitall_777", "digitiger0123", "discoverphoto", "dogon38", "donguri20050123", "doogpakira", "doragonbil", "doragonboru8", "doraten_spirit_2001", "douraku_shop", "dragonjapan2006", "dream_labo", "drjb0502jp", "drsnf919", "dsuzuki3731", "dyer3210", "e3856f", "e_mono65", "e_monobox_auc", "ebisuke2000", "ecd65535", "eco_pc_shop", "ecocircleshop", "econavi_net", "ecozevo", "edrcc5119", "egi_max2", "eiki_osaka", "eikishop", "ejkoba", "emstore2_info", "encisy", "eshop24h_netshop", "esr_bc_direct", "excellar_2003", "f28330166", "f_step2007", "faeast905", "fdesign_99", "fdrhm888", "fduih_88", "feliceitalyfashion", "fine_1126", "flagship_sos", "flex_hdd", "focushop", "foxd2008", "free_style_shop_a", "friver0128", "from_canada2000", "fs3", "fsaitoh", "fujigroup_2000", "fujilataoku", "fukumaru2gou", "fukunokami_evisu", "fumi_fumi2846", "fumiyaki007", "funaoasuka", "fyellows", "g196519751968", "gandk_tokyo", "gats_a", "gekiyasuitibanya", "gekiyasuzakka", "genesis_com2005", "genkai_price", "genki_mayu8888", "gennki0425", "gentoyo6479", "get_auctions", "get_shop2", "get_shop3", "gfmtx445", "ginrinan", "gnxxd034", "go_aper555", "golfin_tokyo", "gooditem2007", "gooditemniceprice", "graybearshop", "greenmark_jp", "greenzone_jp", "gutschrome", "gyaataro", "gyhgx269", "h_ara_m", "h_hiruma_140", "h_mie_h", "hakj2006", "hammerprice2003", "hana2chan2002", "hanamizuki_05jp", "hannyahara710", "happoyajp", "hasegawanyozekan", "hatataka3", "hayao_suzuki", "hb_ark", "hide1770", "hide1978710", "hiikubo", "hikariya_bc", "hiro00218", "hiro45054", "hiroaz3", "hiroko_t55", "hiroshi_hiroshi_hiroshi", "hiroz_48", "hisashimiyamoto14", "hobart_bros", "hokusinhero", "honezou", "honkey_tonk", "horiauc09", "hot_collection66", "hpp_com", "htake_0131", "htnprt", "hummer_royal_unmg", "hustlerk", "hytjt218", "i34041116", "ichienshop55", "ichiro9229", "ifsixwasninecat", "ifujishop", "ikasikauv", "ikedaren2001", "ikenetjigyoubu", "ikeya555", "immigrationroom", "importshop_reve", "inckmc0511", "indyes99", "inko_ms", "inoue0930inoue", "ipad747", "ipon812", "iririko", "is8syoji", "ishino7jp", "isshin09", "itinokurasawa", "itogadesu", "jack_cafe01", "jacky_kun2000", "jan_gle_akiba", "jcomshop", "jcpcd029", "jk2vjbhiro", "jocojocojocorin", "jonets_com", "joyacom", "jptsmino", "jr1aka", "jrpjy757", "juicy_cream77", "junapple21", "junk_garage1996", "junkya_2007", "justice0724web", "k3onlinejapan", "k_k_nets", "k_s_market", "kameyamawww", "kamiashibetu", "kana_4179", "kanaumei", "kanimeya", "kantanqq", "kanzai_ichiba", "kashiwa_hills", "kasimaw", "kasugano_mori7", "katsu_39_s", "katsuya_morimoto", "kazaliya", "kazu1969m", "kchan6886", "kdcom3", "ken55nek", "kenken3kk", "kenotag", "kenwada2541", "kgh11165", "ki43bb", "ki_ki_ki_kiki_ki_ki_ki", "kim_to_asobou", "kingdom_auc", "kirarinkazu9", "kisyu20", "kit81163", "kitosanjp", "kiyukizusu", "kjka1107", "kjpkq850", "kkaon633", "kktantako", "kndrk147", "knippojp", "koba08200602", "koikejys", "koji020200", "kojijp402", "kokinenkin", "koni7334", "konnitiwa_fa_fa", "kororinko326", "korotan006", "kosho_net_shop2", "kotobukidou", "kougyodo", "kouichi_hamanaka", "kox0403", "kozaki2000", "kscorp2003", "ksytjhig", "ktqpapa", "kulalisu", "kuma3shoten", "kunitatecamera", "kuntasince1997", "kuramotosanchi_in_wonderland", "kurayashiki_jp", "kurisutarukurione", "kuroi_kamakiri", "kurufukuan_jp", "kurukumin2002", "kvo_tbup", "kyomac_store", "kyosyonet", "kz_iw", "kznr2223", "labo418", "landmark664", "lanpon32", "laohuli", "lensclub_oita", "leomichika", "life_garage3", "lifeguard_ex", "lintendou", "lisawu617", "lovemodena", "low421779", "lowriders_b", "luck18899", "luckybay_2010", "lugakuse88", "luna_island", "lunatic_0960011", "m08201964", "m119577", "m_aica", "m_matsu4ta", "m_tradejp", "machikahonpo", "majorchord7", "mamsepito", "man1zoku", "man3zoku", "marineblue_genie", "marino4674", "marlborovs7star", "marume2381", "mary668love", "masaki_moriya", "masataka_oki", "masatokawakita", "masayo4829", "master_webshop", "masuda_shop", "matto95", "max6238877", "maxim9999", "mayucyi", "mc6809mc68000", "mckymg", "mda2000team", "mecakunio", "med_1210", "mediator6257", "meisipurint2005", "mf_horn2002", "mg4e2418", "mi_tyan_0428", "miatan_mama", "michi_maru", "michi_micchan", "microsol_web", "mido7777", "midoriya2", "mieyunaka", "miffy521005", "mignonberry", "milvcz", "minamide_shingo", "minamidemujinki", "mirco0910jp", "misskondoria", "miya9236", "miyabiya333", "miyama070", "miyashop_2010", "miyuki671227", "mk_fielder", "mkoiu56", "mmrkw", "model_acer", "mokekyo", "momojiri0719", "momonosuke7575", "momopri777", "momowarabi", "monjyasei", "morbid_feeling", "morinokumasan_com", "msz010gr", "mt470623", "munroe64", "muraauc08", "musa_benkei", "muzefc", "mwwyn693", "myukun2000", "mzks44", "na19771117", "nabesyue", "naka08auc", "naka9ba", "namittt", "nanasyocollection", "naokawasagi10189", "naruki117shop", "natsuya1981", "nb1413w", "negibozu47", "nekootama", "neon_ya", "nespro2000", "net_discount_shop", "net_jam_com", "netbiztrader", "netdo24", "netjigyoubu", "netmirakuru", "new_aj2009", "newinn1997", "news_pc_res", "ngyi33", "nhhfk550", "nijiya2010", "nishy_jp", "njtjm299", "nnozz", "no1_premium", "noa1688", "nobukoday", "nobumiwa1122", "norio36", "npckoubou", "nrn49723", "number_one_company", "ochiai66lotte6", "odasobi", "oerterua", "ogawa25", "ogawa3792", "oitacity_lensclub", "okikikikio", "okinawawa114", "oku33333", "omamori2005", "one_one_park", "optimistic022", "orangebook2006", "orbea141", "orih_iok", "otakaratuuhann", "ousyunngi", "outdoors_betackle", "ozawajichirou", "pardalis925", "parts122", "parts_shop2005", "pavilion7320", "pbnyc130", "pc0799jp", "pc_boh", "pc_itemya", "pc_repair_tnet", "pc_shop_marvelick2", "pc_taku_shop", "pccsvg", "pclife007", "pclio77", "pclive1206", "pcmade2000", "pcparts_club", "pcshop_seven", "pcunkan", "pcworks2009", "pdakobo", "pdbhk798", "peacezepp", "peko7014", "penkiya2331", "pg_206", "phnkd201", "photofamilia", "physaris_02", "piafresh", "pikky1000", "pingchen230", "pipinopi21th", "pkhgx206", "plokijuh12234", "plus_feed", "pluscom88", "pocoapoco_mybox", "pon_664", "ponkpon8", "pops04jp", "poro_poro4563", "princhan42", "pucibaku1", "puri929jp", "puyogaooh824b", "pyo963410ko", "pyonta2momo", "qmgnd882", "qpals888", "qq50737432", "quadro2727", "quelentekj103", "qwdpm849", "ra888jp", "rabbitcrew", "ranku_eru22", "raoki_2007", "rasukaru1215", "rb26_l28", "redbirkin7", "remarks_k", "renbulant", "rencho725", "reuse_analogue", "reuse_store", "revo4649", "rgbbt990", "rgrtc406", "riauc08", "rikarika180000", "rikukuri1998", "risemark_shop", "ritaki33", "ritu325ha08", "roadster65jp", "robo_h2003", "rocomoco3000", "romipin416", "roromio_roman", "route66_driver", "rowajapan88", "rsystem_co", "runamorimori", "rx_3_2009", "rxyxu10", "ryoma_sakamoto_1115", "s600615", "s_ds_auto", "s_fortwo", "s_w_c_good", "sa_su_ra_i_kun", "sadotti_23", "saiseiauction", "saison_2007", "sakuarjima2008", "sakuraya_ac", "sancya35", "sanmi_3719", "sanraku2006", "sariastore2009", "sarutekya", "sasuketosora", "satoh86", "savosavo2525", "sazanami_cake", "scramblebox", "sdftj852", "sealyra", "seathedemi", "seeks804", "seikishoji2008", "seikokiss", "sekiya728", "selectking2005", "sen1267", "senoh777", "sfprotools", "sh2gou", "shanghaiweb2004", "shecatjp", "shiber413", "shikokuneotec", "shimon2005jp", "shimonashi", "shinb0000", "shiningstore_com", "shinkeijyun", "shira_999", "shop_midoriya", "shop_y777", "shop_ya0123", "shouhouwww", "shozo1218jp", "simakobo", "sinjifamiliy", "skwhhw", "slwy41", "smaptools", "smartjapan", "snwdx086", "softoya", "sofuto09090", "sononiwww", "soulbros1", "souru0721", "sp_midoriya", "speedfox37", "spmidoriya", "squamish2005", "ssmy4814", "sss_cherry0518", "sss_shin1_sss", "starfeast2010", "stoauction", "stocksatmark03", "stonefeel", "stonestone1010", "strategy_co_ltd", "strongmmm", "sublime1_2007", "successogawa", "sunafukinlife2005", "suppli5306", "sutesute39", "suz57ollinoli", "sxgqg462", "syouai9843", "system0799jp", "systemexpert777", "t_and_mtokyo", "t_c_k_w2006", "t_roomjp", "tadakinki", "tahichi_2008", "taika1995", "taisei_himo", "takaauc09", "takahikashin", "takesho36", "takumisaimoto", "tamiya1234jp", "tamiya_yafuokuten", "tapuchan77", "tawasi24", "tc770forged", "team71hs", "teketeke_japan", "tenkaipc", "thankyoubaby0812", "the_morningglow", "thinks_cells", "three_home_digital", "tkpcmem", "tks_pcrz", "tokusenkan55", "tokutokunetjp", "tokyohelloworld", "tomatotv", "tomi5500", "tomo8417", "tomo_sandesu", "tomoauc09", "tomtom3939jp", "tonchinkan_e", "tools1a", "top_mart1992", "toru2234", "toshi_minto", "toshy80", "tosinshop", "totoro1323hr", "touhounet", "touhoushop", "tower493", "toyo_sok", "trait1955", "travis666jp", "tsenglwjp", "tssnaga", "tsttw211", "tsun1150", "tugi3942", "tukinohako", "turu999kame", "tutiauc09", "tw_p_16810", "tw_p_glass_dream88", "tw_p_madeinakiba", "tw_p_maidodaigen", "tw_p_setocut", "twink_twink105", "txggn621", "ty1221_1968", "uc590203uc", "ueauc09", "uedak0221", "umaibouboubou", "umeauc09", "unkaisoukai", "urankoubo2000", "usakonta08", "usednet_corporation", "v_coolrider_v", "v_outdoor_v", "vantannn1234", "vapsauction", "velodureve2007", "vg_auto", "videoman_DV", "w0994140724309806", "wakeboard1977", "wakuwaku319655", "wakuwaku910214", "water771771", "wdstk547", "welcome0316", "widely_shop", "wil_mart001", "wil_mart002", "wil_mart003", "wisao808", "wowmomodebi", "x13mi00", "y111_shop", "ya3310shop", "yaaamadajp", "yabukileft", "yaedengno", "yaki1536", "yamaden08", "yamakatsujidai", "yamaoka9792", "yangasahi", "yanhan0096", "yasubei4829", "yasuhikonakajima", "yasyas2527116", "yhkk0030", "yiban888", "yjfkgo", "yjo19690", "ym_c280", "yorozu12000", "youwin_naka", "ysgetstore2007", "ytak_ccv", "ytqnf588", "yuchajo", "yuhideki12", "yuki3885", "yun_cong_long", "yuso5800j", "yusyoauc", "yutiguma", "yuuai_2006", "zakkapark", "zato9393", "zhangjapan1340088", "zipang_t", "zmkzmkm", "zvxxjdhiuoiogd", "zx12r9919" ];
var UseHashForBlackList = true; //-- speed up by using hash instead of a simple search
//-- << 設定パラメータ Configuration parameters of the script
var currentURL = document.URL;
var nextURL = null;
if (JUMP_OUTSIDE_WITHOUT_CONFIRMATION && currentURL.match(/^http:\/\/page.*\/show\/bouncer\?url=(.*)&/)) {
nextURL = unescape(RegExp.$1);
if (nextURL) {
// console.log(currentURL + " -> " + nextURL);
location.href = nextURL;
return true;
}
}
if (currentURL.match(/^http:\/\/search\.auctions\.yahoo\.co\.jp\/search?/) ||
currentURL.match(/^http:\/\/auctions\.search\.yahoo\.co\.jp\/search?/) ||
currentURL.match(/^http:\/\/search.*\.auctions\.yahoo\.co\.jp\/jp\/search?/) ||
currentURL.match(/^http:\/\/search.*\.auctions\.yahoo\.co\.jp\/jp\/search\/auc?/) ||
(currentURL.match(/^http:\/\/list.*\.auctions\.yahoo\.co\.jp\/jp\//) && ! currentURL.match(/\/show\/searchoptions?/))) {
var chkURL = currentURL;
//-- List windows. Sort the list by remaining time to finish.
if (SORT_BY_REMAINING_TIME && !currentURL.match(/[?&]s1=/)) {
var urlad = (currentURL.match(/.html$/) ? "?" : "&") + "s1=end&o1=a";
chkURL = nextURL = currentURL + urlad;
}
//-- price limitation
/*
if (LIMITED_PRICE_FOR_NON_PREMIUM && !chkURL.match(/[?&]price_type=currentprice/) &&
!(chkURL.match(/[?&]aucminprice=/) || chkURL.match(/[?&]aucmaxprice=/))) {
var prce = 'price_type=currentprice&min=' + LIMITED_PRICE_FOR_NON_PREMIUM_MIN_PRICE.toString() + '&max=' + LIMITED_PRICE_FOR_NON_PREMIUM_MAX_PRICE.toString();
var urlad = (chkURL.match(/.html$/) ? "?" : "&") + prce;
chkURL = nextURL = chkURL + urlad;
}
*/
if (LIMITED_PRICE_FOR_NON_PREMIUM &&
!chkURL.match(/[?&]price_type=currentprice/)) {
if (chkURL.match(/[?&]aucminprice=([0-9]*)&aucmaxprice=([0-9]*)/)) {
var mxpr = RegExp.$1;
var mnpr = RegExp.$2;
if (!mxpr && !mnpr) {
chkURL = nextURL = chkURL.replace(/aucminprice=&aucmaxprice=/, "aucminprice=" + LIMITED_PRICE_FOR_NON_PREMIUM_MIN_PRICE.toString() + "&aucmaxprice=" + LIMITED_PRICE_FOR_NON_PREMIUM_MAX_PRICE.toString());
}
} else {
var prce = 'price_type=currentprice&min=' + LIMITED_PRICE_FOR_NON_PREMIUM_MIN_PRICE.toString() + '&max=' + LIMITED_PRICE_FOR_NON_PREMIUM_MAX_PRICE.toString();
var urlad = (chkURL.match(/.html$/) ? "?" : "&") + prce;
chkURL = nextURL = chkURL + urlad;
}
}
//-- Only second hand.
if (LIMITED_TO_SECONDHAND && !chkURL.match(/[?&]istatus=/)) {
var urlad = (chkURL.match(/.html$/) ? "?" : "&") + "istatus=2";
chkURL = nextURL = chkURL + urlad;
}
//-- If the nextURL is set, it should be reloaded.
if (nextURL) {
// console.log(currentURL + " -> " + nextURL);
location.href = nextURL;
return true;
}
//-- hide the row entries on the table contained in the blacklist.
if (REMOVE_UESR_IN_BLACK_LIST) {
if (UseHashForBlackList) {
//-- create hash of black user with bool values.
var inBlkLst = new Array();
for (var i in blackList) {
inBlkLst[blackList[i]] = true;
}
if (currentURL.match(/^http:\/\/auctions\.search\.yahoo\.co\.jp\/search?/)) {
//-- new format of search pages.
//-- In case of list of pictures and titles.
if (currentURL.match(/[?&]mode=1/)) {
//-- In case of picture matrix.
// div layout page