NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Sites Price History - Gearbest and Banggood // @namespace http://tampermonkey.net/ // @version 1.0 // @description Show Price History of shopping sites, and supply coupons for cheaper prices. // @author Price History // @license Apache-2.0 // @include *://*.gearbest.com/* // @include *://*.banggood.com/* // @include *://*.tomtop.com/* // @include *://*.dx.com/* // @include *://*.iherb.com/* // @include *://*.aliexpress.com/* // @include *://*.nike.com/* // @include *://*.agoda.com/* // @include *://*.booking.com/* // @include *://*.childrensplace.com/* // @include *://*.hotelscombined.com/* // @include *://*.cafago.com/* // @include *://*.dhgate.com/* // @include *://*.geekbuying.com/* // @include *://*.lightinthebox.com/* // @include *://*.tinydeal.com/* // @include *://*.g2a.com/* // @include *://*.coolicool.com/* // @include *://*.zapals.com/* // @include *://*.miniinthebox.com/* // @include *://*.joybuy.com/* // @require https://makeitwork.club/addon/Chart.min.js // @require https://makeitwork.club/addon/md5.js // @require https://makeitwork.club/addon/clipboard.min.js // @grant none // ==/UserScript== var _0x5aeb = [ 'Price\x20After\x20Coupon:\x20$', 'yLabel', 'Date', 'Price', 'en-US', 'currency', 'push', 'setTime', 'getTime', ';\x20expires=', 'toUTCString', 'cookie', ';\x20domain=', ';\x20path=/', '//makeitwork.club/server/index.php/coupon', 'application/x-www-form-urlencoded', '.ph_coupon\x20.sent', 'site=', '&pid=', '&url=', 'top', 'self', 'http://localhost/ph/server/index.php', '//makeitwork.club/server/index.php', 'http://localhost/addon', 'location', 'href', '1111111111', 'BangGood', '22222222222', 'AliExpress', 'TomTop', '4444444444444', 'DealExtreme', '555555555555555', 'IHerb', '6666666666666', 'Nike', 'Agoda', '33333333333', 'Childrens_Place', 'Hotels_Combined', 'Cafago', 'LightInTheBox', 'TinyDeal', 'Zapals', 'MiniInTheBox', 'JoyBuy', 'hosts', 'length', 'match', 'links', 'name', 'indexOf', 'split', 'GearBest', 'querySelector', 'meta[property=\x27og:price:amount\x27]', 'getAttribute', 'content', 'USD', 'substr', '.html', 'lastIndexOf', 'value', 'GEARBEST', 'DUMMY', 'meta[itemprop=\x27price\x27]', 'input[name=\x27products_id\x27]', 'meta[property=\x27og:title\x27]', 'DEALEXTREME', 'body', 'innerHTML', '\x22ecomm_totalvalue\x22:\x22', 'meta[property=\x27og:product_id\x27]', 'IHERB', 'NIKE', 'AGODA', '#hp_hotel_name', 'CHILDRENS_PLACE', 'HOTELS_COMBINED', 'DHGate', 'DHGATE', 'GeekBuying', 'GEEKBUYING', 'G2A', 'CooliCool', 'COOLICOOL', 'ZAPALS', 'MINIINTHEBOX', 'JOYBUY', 'replace', '||AMP||', 'stringify', 'open', 'POST', '/price/add', 'setRequestHeader', 'Content-type', 'onreadystatechange', 'readyState', 'status', 'parse', 'responseText', 'undefined', 'prices', 'coupon', 'aff_id', 'send', 'data=', '&token=', 'src', '?lkid=', 'style', 'width', '0px', 'height', 'createElement', 'IMG', 'appendChild', 'https://www.banggood.com/shopping_cart.php?p=', 'IFRAME', 'aff_link', 'ph_o', '?aid=', '#ph_o', 'Utm_params', '.dx.com', 'Utm_rid', 'log', 'LOAD:\x20', '/templates/', 'parentNode', 'highlow_template', '#ph_graph', 'insertAdjacentHTML', 'afterend', '[LOW_ICON]', '/images/low_icon.png', 'low', '[SHOW_LOWEST_COUPON]', 'block', 'none', 'low_coupon', '/images/high_icon.png', 'high', '[SHOW_HIGHEST_COUPON]', 'high_coupon', '[HIGHEST_COUPON]', '.ph_highlow_container', 'marginLeft', 'coupon_template', 'coupon_html', 'matchName', '.goods_price', '[BANNER]', '/images/banner.png', '[HAS_COUPON]', '[NOT_HAS_COUPON]', 'code', 'new_price', 'start_date', '[UPDATE_DATE]', 'beforebegin', '[COUPON_PRICE]', '[SHOW_UPDATED]', '335px', 'ph_clipboard', '.ph_copy_link', 'success', '.ph_coupon_copied', 'display', 'inline-block', 'clearSelection', '.goods_num_count', '.g_operatNum', '.item_box', 'getElementById', 'ph_graph', 'getContext', 'coupon_price', 'FOUND\x20COUPON', 'price', 'line', 'Price\x20(in\x20USD)', 'rgba(255,\x2099,\x20132,\x201)', 'Price\x20after\x20coupon\x20(in\x20USD)', 'rgba(90,\x20157,\x207,\x201)', 'Price\x20History', 'single', 'datasetIndex' ]; (function (_0x3e441c, _0x2100bc) { var _0x568857 = function (_0xa032c0) { while (--_0xa032c0) { _0x3e441c['push'](_0x3e441c['shift']()); } }; _0x568857(++_0x2100bc); }(_0x5aeb, 0x192)); var _0x2c75 = function (_0x1f741f, _0x53d8eb) { _0x1f741f = _0x1f741f - 0x0; var _0x20ccba = _0x5aeb[_0x1f741f]; return _0x20ccba; }; (function () { 'use strict'; if (window[_0x2c75('0x0')] != window[_0x2c75('0x1')]) { return; } var _0x16e41d; var _0x3d5d0b; var _0xdf70a5 = ![]; var _0x431ef3; var _0x2f12e3; var _0x55a54c; var _0x7ad8a5; var _0xd345a2; var _0x4c9825; var _0x40e78e = ![]; var _0x56b25f = _0x40e78e ? _0x2c75('0x2') : _0x2c75('0x3'); var _0x1d9d9c = _0x40e78e ? _0x2c75('0x4') : '//makeitwork.club/addon'; var _0x5b02e2; var _0x464895 = window[_0x2c75('0x5')][_0x2c75('0x6')]; var _0xebc0ca = [ { 'name': 'GearBest', 'hosts': [/.+\.gearbest\.com/gi], 'links': [ /m-flow-a-checkout/gi, /((pp_)[(0-9)])\w+(.html)/gi ], 'affid': _0x2c75('0x7') }, { 'name': _0x2c75('0x8'), 'hosts': [/.+\.banggood\.com/gi], 'links': [/(p-)[(0-9)]\w+(.html)/gi], 'affid': _0x2c75('0x9') }, { 'name': _0x2c75('0xa'), 'hosts': [/.+\.aliexpress\.com/gi], 'links': [/([(0-9)])\w+(.html)/gi], 'affid': '33333333333' }, { 'name': _0x2c75('0xb'), 'hosts': [/.+\.tomtop\.com/gi], 'links': [/(p-)[0-9a-z]\w+(.html)/gi], 'affid': _0x2c75('0xc') }, { 'name': _0x2c75('0xd'), 'hosts': [/.+\.dx\.com/gi], 'links': [/(\/p\/).+\-[0-9]+(#\.){0,1}/gi], 'affid': _0x2c75('0xe') }, { 'name': _0x2c75('0xf'), 'hosts': [/.+\.iherb\.com/gi], 'links': [/\/[0-9]+/gi], 'affid': _0x2c75('0x10') }, { 'name': _0x2c75('0x11'), 'hosts': [/.+\.nike\.com/gi], 'links': [/([(a-z0-9)])/gi], 'affid': '33333333333' }, { 'name': _0x2c75('0x12'), 'hosts': [/.+\.agoda\.com/gi], 'links': [/([(a-z0-9)])/gi], 'affid': _0x2c75('0x13') }, { 'name': 'Booking', 'hosts': [/.+\.booking\.com/gi], 'links': [/([(a-z0-9)])/gi], 'affid': _0x2c75('0x13') }, { 'name': _0x2c75('0x14'), 'hosts': [/.+\.childrensplace\.com/gi], 'links': [/\/p\//gi], 'affid': _0x2c75('0x13') }, { 'name': _0x2c75('0x15'), 'hosts': [/.+\.hotelscombined\.com/gi], 'links': [/\/Hotel\//gi], 'affid': '33333333333' }, { 'name': _0x2c75('0x16'), 'hosts': [/.+\.cafago\.com/gi], 'links': [/([(a-z0-9)])/gi], 'affid': _0x2c75('0x13') }, { 'name': 'DHGate', 'hosts': [/.+\.dhgate\.com/gi], 'links': [/\/product\//gi] }, { 'name': 'GeekBuying', 'hosts': [/.+\.geekbuying\.com/gi], 'links': [/\/item\//gi] }, { 'name': _0x2c75('0x17'), 'hosts': [/.+\.lightinthebox\.com/gi], 'links': [/(_p)[0-9]{1,}(.html)/gi] }, { 'name': _0x2c75('0x18'), 'hosts': [/.+\.tinydeal\.com/gi], 'links': [/(p-)[0-9]{1,}(.html)/gi] }, { 'name': 'G2A', 'hosts': [/.+\.g2a\.com/gi], 'links': [/(-i)[0-9]{1,}$/gi] }, { 'name': 'CooliCool', 'hosts': [/.+\.coolicool\.com/gi], 'links': [/(-g-)[0-9]{1,}$/gi] }, { 'name': _0x2c75('0x19'), 'hosts': [/.+\.zapals\.com/gi], 'links': [/([(a-z0-9)])/gi] }, { 'name': _0x2c75('0x1a'), 'hosts': [/.+\.miniinthebox\.com/gi], 'links': [/(_p)[0-9]{1,}(\.html)/gi] }, { 'name': _0x2c75('0x1b'), 'hosts': [/.+\.joybuy\.com/gi], 'links': [/[0-9]{1,}(\.html)/gi] } ]; for (var _0x3dbc75 = 0x0; _0x3dbc75 < _0xebc0ca['length']; _0x3dbc75++) { if (!_0xdf70a5) { for (var _0x4d55a5 = 0x0; _0x4d55a5 < _0xebc0ca[_0x3dbc75][_0x2c75('0x1c')][_0x2c75('0x1d')]; _0x4d55a5++) { if (!_0xdf70a5) { _0x16e41d = new RegExp(_0xebc0ca[_0x3dbc75][_0x2c75('0x1c')][_0x4d55a5]); if (location['host'][_0x2c75('0x1e')](_0x16e41d)) { for (var _0x5e13de = 0x0; _0x5e13de < _0xebc0ca[_0x3dbc75]['links'][_0x2c75('0x1d')]; _0x5e13de++) { _0x3d5d0b = new RegExp(_0xebc0ca[_0x3dbc75][_0x2c75('0x1f')][_0x5e13de]); if (location['href'][_0x2c75('0x1e')](_0x3d5d0b)) { _0x431ef3 = _0xebc0ca[_0x3dbc75][_0x2c75('0x20')]; _0x4ddecb(); _0xdf70a5 = !![]; } } } } else { break; } } } else { break; } } function _0x4ddecb(_0x2b2d41) { var _0xe43fc0 = []; _0xd345a2 = {}; if (location[_0x2c75('0x6')][_0x2c75('0x21')]('?') > -0x1) { _0xe43fc0 = location[_0x2c75('0x6')]['substr'](location['href'][_0x2c75('0x21')]('?') + 0x1); _0xe43fc0 = _0xe43fc0[_0x2c75('0x22')]('&'); for (var _0x220147 = 0x0; _0x220147 < _0xe43fc0['length']; _0x220147++) { if (_0xe43fc0[_0x220147]['indexOf']('=') > -0x1) { _0xd345a2[_0xe43fc0[_0x220147][_0x2c75('0x22')]('=')[0x0]] = _0xe43fc0[_0x220147][_0x2c75('0x22')]('=')[0x1]; } } } switch (_0x431ef3) { case _0x2c75('0x23'): var _0x5d072b = document[_0x2c75('0x24')](_0x2c75('0x25')); var _0x2e70a8 = document['querySelector']('meta[property=\x27og:price:currency\x27]'); if (_0x2e70a8 != null && _0x2e70a8[_0x2c75('0x26')](_0x2c75('0x27')) != null && _0x2e70a8[_0x2c75('0x26')]('content') == _0x2c75('0x28')) { if (_0x5d072b) { _0x5d072b = _0x5d072b[_0x2c75('0x26')](_0x2c75('0x27')); var _0x449d07 = location[_0x2c75('0x6')][_0x2c75('0x29')](0x0, location[_0x2c75('0x6')][_0x2c75('0x21')](_0x2c75('0x2a'))); _0x449d07 = _0x449d07[_0x2c75('0x29')](_0x449d07[_0x2c75('0x2b')]('/') + 0x1); _0x2f12e3 = _0x449d07; var _0x15e79e = document['getElementById']('hidden-history-val')[_0x2c75('0x26')](_0x2c75('0x2c'))[_0x2c75('0x22')]('||')[0x1]; _0x3fc9e4(_0x2c75('0x2d'), _0x15e79e, _0x449d07, _0x5d072b, ![]); } else { var _0x5d072b = 0x0; var _0x449d07 = 'DUMMY'; var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x2d'), _0x15e79e, _0x449d07, _0x5d072b); } break; } else { var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x2d'), _0x15e79e, _0x449d07, _0x5d072b); } case _0x2c75('0x8'): var _0x5d072b = document[_0x2c75('0x24')](_0x2c75('0x2f')); _0x5d072b = _0x5d072b[_0x2c75('0x26')]('content'); var _0x449d07 = document[_0x2c75('0x24')](_0x2c75('0x30')); _0x449d07 = _0x449d07[_0x2c75('0x26')]('value'); _0x2f12e3 = _0x449d07; var _0x15e79e = document['querySelector'](_0x2c75('0x31')); _0x15e79e = _0x15e79e[_0x2c75('0x26')]('content'); _0x3fc9e4('BANGGOOD', _0x15e79e, _0x449d07, _0x5d072b); break; case _0x2c75('0xa'): var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4('ALIEXPRESS', _0x15e79e, _0x449d07, _0x5d072b); break; case _0x2c75('0xb'): var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4('TOMTOP', _0x15e79e, _0x449d07, _0x5d072b); break; case _0x2c75('0xd'): var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x32'), _0x15e79e, _0x449d07, _0x5d072b); break; case 'IHerb': var _0x5d072b = document[_0x2c75('0x33')][_0x2c75('0x34')][_0x2c75('0x29')](document['body'][_0x2c75('0x34')][_0x2c75('0x21')](_0x2c75('0x35')) + 0x14); _0x5d072b = _0x5d072b[_0x2c75('0x29')](0x0, _0x5d072b[_0x2c75('0x21')]('\x22')); var _0x449d07 = document[_0x2c75('0x24')](_0x2c75('0x36')); _0x449d07 = _0x449d07[_0x2c75('0x26')]('content'); _0x2f12e3 = _0x449d07; var _0x15e79e = document['querySelector'](_0x2c75('0x31')); _0x15e79e = _0x15e79e[_0x2c75('0x26')](_0x2c75('0x27')); _0x3fc9e4(_0x2c75('0x37'), _0x15e79e, _0x449d07, _0x5d072b); break; case _0x2c75('0x11'): if (document['querySelector'](_0x2c75('0x25')) != null) { var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x38'), _0x15e79e, _0x449d07, _0x5d072b); } break; case _0x2c75('0x12'): if (document[_0x2c75('0x24')]('.hotel-header-info-name-text') != null) { var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x39'), _0x15e79e, _0x449d07, _0x5d072b); } break; case 'Booking': if (document[_0x2c75('0x24')](_0x2c75('0x3a')) != null) { var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4('BOOKING', _0x15e79e, _0x449d07, _0x5d072b); } break; case _0x2c75('0x14'): var _0x5d072b = 0x0; var _0x449d07 = 'DUMMY'; var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x3b'), _0x15e79e, _0x449d07, _0x5d072b); break; case 'Hotels_Combined': var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x3c'), _0x15e79e, _0x449d07, _0x5d072b, null, !![]); break; case _0x2c75('0x16'): if (document[_0x2c75('0x24')](_0x2c75('0x25')) != null) { var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4('CAFAGO', _0x15e79e, _0x449d07, _0x5d072b); } break; case _0x2c75('0x3d'): var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x3e'), _0x15e79e, _0x449d07, _0x5d072b); break; case _0x2c75('0x3f'): var _0x5d072b = 0x0; var _0x449d07 = 'DUMMY'; var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x40'), _0x15e79e, _0x449d07, _0x5d072b); break; case 'LightInTheBox': var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4('LIGHTINTHEBOX', _0x15e79e, _0x449d07, _0x5d072b); break; case 'TinyDeal': var _0x5d072b = 0x0; var _0x449d07 = 'DUMMY'; var _0x15e79e = ''; _0x3fc9e4('TINYDEAL', _0x15e79e, _0x449d07, _0x5d072b); break; case 'G2A': var _0x5d072b = 0x0; var _0x449d07 = 'DUMMY'; var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x41'), _0x15e79e, _0x449d07, _0x5d072b); break; case _0x2c75('0x42'): var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x43'), _0x15e79e, _0x449d07, _0x5d072b); break; case _0x2c75('0x19'): if (document[_0x2c75('0x24')]('.add-to-cart') != null) { var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x44'), _0x15e79e, _0x449d07, _0x5d072b); } break; case _0x2c75('0x1a'): var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x45'), _0x15e79e, _0x449d07, _0x5d072b); break; case _0x2c75('0x1b'): var _0x5d072b = 0x0; var _0x449d07 = _0x2c75('0x2e'); var _0x15e79e = ''; _0x3fc9e4(_0x2c75('0x46'), _0x15e79e, _0x449d07, _0x5d072b); break; } } function _0x3fc9e4(_0x14b366, _0x17073f, _0x567f2f, _0x4abc6c, _0xd9e359, _0x3630d3) { _0xd9e359 = _0xd9e359 != null ? _0xd9e359 : !![]; var _0x161f85 = _0x5a0abc(location[_0x2c75('0x6')]); if (!_0x3630d3) { if (_0x161f85[_0x2c75('0x21')]('?') > -0x1) { _0x161f85 = _0x161f85['substr'](0x0, _0x161f85[_0x2c75('0x21')]('?')); } } else { _0x161f85 = _0x161f85[_0x2c75('0x47')](/\&/gi, _0x2c75('0x48')); } var _0x44aa0f = new XMLHttpRequest(); var _0xec88bf = { 'url': _0x161f85, 'site': _0x14b366, 'title': _0x17073f, 'pid': _0x567f2f, 'price': _0x4abc6c }; _0xec88bf = JSON[_0x2c75('0x49')](_0xec88bf); var _0x15b704 = null; _0x44aa0f[_0x2c75('0x4a')](_0x2c75('0x4b'), _0x56b25f + _0x2c75('0x4c'), !![]); _0x44aa0f[_0x2c75('0x4d')](_0x2c75('0x4e'), 'application/x-www-form-urlencoded'); _0x44aa0f[_0x2c75('0x4f')] = function () { if (_0x44aa0f[_0x2c75('0x50')] == 0x4 && _0x44aa0f[_0x2c75('0x51')] == 0xc8) { var _0x153514 = JSON[_0x2c75('0x52')](_0x44aa0f[_0x2c75('0x53')]); _0x55a54c = _0x153514; if (typeof _0x153514 != _0x2c75('0x54') && _0x153514['prices']) { if (_0x153514[_0x2c75('0x55')][_0x2c75('0x1d')] > 0x0) { _0x2b3ecd(_0x153514[_0x2c75('0x55')], _0x153514[_0x2c75('0x56')]); } _0x7ad8a5 = _0x153514[_0x2c75('0x57')]; if (_0xd9e359 && !_0x161f9e()) { _0x3d93ef(); setInterval(_0x3d93ef, 0x64); } } } }; _0x44aa0f[_0x2c75('0x58')](_0x2c75('0x59') + _0xec88bf + _0x2c75('0x5a') + _0x15b704); } function _0x161f9e() { switch (_0x431ef3) { case _0x2c75('0x23'): return _0x7ad8a5 == null; break; case _0x2c75('0x8'): return _0xd345a2['p'] != null; break; case 'AliExpress': case _0x2c75('0x11'): case _0x2c75('0x12'): case 'Booking': case _0x2c75('0x14'): case 'Hotels_Combined': case _0x2c75('0x16'): case _0x2c75('0x3d'): case _0x2c75('0x3f'): case 'LightInTheBox': case _0x2c75('0x18'): case 'G2A': case _0x2c75('0x42'): case _0x2c75('0x19'): case _0x2c75('0x1a'): case _0x2c75('0x1b'): return _0x7ad8a5 == null; case 'TomTop': return ![]; case _0x2c75('0xd'): return ![]; case 'IHerb': return ![]; } return ![]; } function _0x3d93ef() { switch (_0x431ef3) { case _0x2c75('0x23'): if (!_0x4c9825) { var _0x1aec2b = location[_0x2c75('0x6')]; if (_0x1aec2b[_0x2c75('0x21')]('?') > -0x1) { _0x1aec2b = _0x1aec2b[_0x2c75('0x29')](0x0, _0x1aec2b[_0x2c75('0x21')]('?')); } _0x4c9825 = document['createElement']('IFRAME'); document[_0x2c75('0x33')]['appendChild'](_0x4c9825); _0x4c9825[_0x2c75('0x5b')] = _0x1aec2b + _0x2c75('0x5c') + _0x7ad8a5; _0x4c9825[_0x2c75('0x5d')][_0x2c75('0x5e')] = _0x2c75('0x5f'); _0x4c9825[_0x2c75('0x5d')][_0x2c75('0x60')] = '0px'; } break; case _0x2c75('0x8'): if (!_0x4c9825) { _0x4c9825 = document[_0x2c75('0x61')](_0x2c75('0x62')); document[_0x2c75('0x33')][_0x2c75('0x63')](_0x4c9825); _0x4c9825[_0x2c75('0x5b')] = _0x2c75('0x64') + _0x7ad8a5; _0x4c9825['style'][_0x2c75('0x5e')] = '0px'; _0x4c9825[_0x2c75('0x5d')][_0x2c75('0x60')] = _0x2c75('0x5f'); } break; case _0x2c75('0xa'): case _0x2c75('0x11'): case _0x2c75('0x12'): case 'Booking': case _0x2c75('0x14'): case _0x2c75('0x15'): case 'Cafago': case _0x2c75('0x3d'): case _0x2c75('0x3f'): case _0x2c75('0x17'): case _0x2c75('0x18'): case _0x2c75('0x41'): case _0x2c75('0x42'): case _0x2c75('0x19'): case 'MiniInTheBox': case _0x2c75('0x1b'): if (!_0x4c9825) { var _0x1aec2b = location[_0x2c75('0x6')]; if (_0x1aec2b[_0x2c75('0x21')]('?') > -0x1) { _0x1aec2b = _0x1aec2b['substr'](0x0, _0x1aec2b['indexOf']('?')); } _0x4c9825 = document[_0x2c75('0x61')](_0x2c75('0x65')); document[_0x2c75('0x33')][_0x2c75('0x63')](_0x4c9825); _0x4c9825['src'] = _0x55a54c[_0x2c75('0x66')]; _0x4c9825['style'][_0x2c75('0x5e')] = _0x2c75('0x5f'); _0x4c9825[_0x2c75('0x5d')][_0x2c75('0x60')] = '0px'; } break; case _0x2c75('0xb'): if (!_0x4c9825) { if (location['hash'][_0x2c75('0x21')](_0x2c75('0x67')) == -0x1) { var _0x1aec2b = location[_0x2c75('0x6')]; if (_0x1aec2b[_0x2c75('0x21')]('?') > -0x1) { _0x1aec2b = _0x1aec2b[_0x2c75('0x29')](0x0, _0x1aec2b[_0x2c75('0x21')]('?')); } location[_0x2c75('0x47')](_0x1aec2b + _0x2c75('0x68') + _0x7ad8a5 + _0x2c75('0x69')); } _0x4c9825 = !![]; } break; case _0x2c75('0xd'): setTimeout(function () { _0xbfa169(_0x2c75('0x6a'), _0x7ad8a5, _0x2c75('0x6b'), 0x1e); tmpAffId = _0x7ad8a5[_0x2c75('0x29')](0x8); tmpAffId = tmpAffId[_0x2c75('0x29')](0x0, tmpAffId[_0x2c75('0x21')]('&')); _0xbfa169(_0x2c75('0x6c'), tmpAffId, _0x2c75('0x6b'), 0x1e); }, 0x1388); break; case 'IHerb': if (!_0x4c9825) { var _0x1aec2b = location[_0x2c75('0x6')]; if (_0x1aec2b[_0x2c75('0x21')]('?') > -0x1) { _0x1aec2b = _0x1aec2b[_0x2c75('0x29')](0x0, _0x1aec2b[_0x2c75('0x21')]('?')); } _0x4c9825 = document[_0x2c75('0x61')](_0x2c75('0x65')); document['body'][_0x2c75('0x63')](_0x4c9825); _0x4c9825[_0x2c75('0x5b')] = _0x1aec2b + '?rcode=' + _0x7ad8a5; _0x4c9825['style'][_0x2c75('0x5e')] = _0x2c75('0x5f'); _0x4c9825[_0x2c75('0x5d')]['height'] = _0x2c75('0x5f'); setTimeout(function () { _0x4c9825[_0x2c75('0x5b')] = _0x1aec2b; }, 0x7d0); } break; } } function _0x2188e0(_0x2de461, _0xe72260) { console[_0x2c75('0x6d')](_0x2c75('0x6e') + _0x2de461); var _0x311566 = new XMLHttpRequest(); _0x311566[_0x2c75('0x4a')](_0x2c75('0x4b'), _0x1d9d9c + _0x2c75('0x6f') + _0x2de461 + _0x2c75('0x2a'), !![]); _0x311566[_0x2c75('0x4f')] = function () { console[_0x2c75('0x6d')](_0x2de461 + ',\x20' + _0x311566[_0x2c75('0x50')]); if (_0x311566[_0x2c75('0x50')] == 0x4 && _0x311566[_0x2c75('0x51')] == 0xc8) { if (_0xe72260) _0xe72260(_0x311566[_0x2c75('0x53')]); } }; _0x311566[_0x2c75('0x58')](); } function _0x5503b0(_0x494cf8, _0x1357c8) { _0x1357c8[_0x2c75('0x70')]['insertBefore'](_0x494cf8, _0x1357c8['nextSibling']); } function _0x4bf04b(_0x2f3bdb) { _0x2188e0(_0x2c75('0x71'), function (_0xfae9da) { var _0x282374 = _0x16b9dd(_0x2f3bdb); var _0x28058c = _0xfae9da; document['querySelector'](_0x2c75('0x72'))[_0x2c75('0x73')](_0x2c75('0x74'), _0x28058c['replace'](_0x2c75('0x75'), _0x1d9d9c + _0x2c75('0x76'))[_0x2c75('0x47')]('[LOWEST]', _0x282374[_0x2c75('0x77')])[_0x2c75('0x47')](_0x2c75('0x78'), _0x282374['low_coupon'] != null ? _0x2c75('0x79') : _0x2c75('0x7a'))['replace']('[LOWEST_COUPON]', _0x282374[_0x2c75('0x7b')])['replace']('[HIGH_ICON]', _0x1d9d9c + _0x2c75('0x7c'))['replace']('[HIGHEST]', _0x282374[_0x2c75('0x7d')])[_0x2c75('0x47')](_0x2c75('0x7e'), _0x282374[_0x2c75('0x7f')] != null ? 'block' : _0x2c75('0x7a'))['replace'](_0x2c75('0x80'), _0x282374[_0x2c75('0x7f')])); if (_0x431ef3 == 'IHerb') document['querySelector'](_0x2c75('0x81'))[_0x2c75('0x5d')][_0x2c75('0x82')] = '335px'; }); } function _0x49bd22(_0x544fd9) { _0x2188e0(_0x2c75('0x83'), function (_0x2c8a3a) { var _0x1fc575 = _0x2c8a3a; switch (_0x431ef3) { case _0x2c75('0x23'): window[_0x2c75('0x84')] = _0x1fc575; window[_0x2c75('0x85')] = _0x431ef3; document['querySelector'](_0x2c75('0x86'))[_0x2c75('0x73')](_0x2c75('0x74'), _0x1fc575[_0x2c75('0x47')](_0x2c75('0x87'), _0x1d9d9c + _0x2c75('0x88'))[_0x2c75('0x47')](_0x2c75('0x89'), _0x544fd9 != null ? _0x2c75('0x79') : _0x2c75('0x7a'))['replace'](_0x2c75('0x8a'), _0x544fd9 != null ? _0x2c75('0x7a') : _0x2c75('0x79'))[_0x2c75('0x47')](/\[COUPON\]/gi, _0x544fd9 ? _0x544fd9[_0x2c75('0x8b')] : '')[_0x2c75('0x47')]('[COUPON_PRICE]', _0x544fd9 ? _0x544fd9[_0x2c75('0x8c')] : '')[_0x2c75('0x47')](/\[SITE]/gi, _0x431ef3)[_0x2c75('0x47')](/\[PID]/gi, _0x2f12e3)['replace']('[SHOW_UPDATED]', _0x544fd9 && _0x544fd9[_0x2c75('0x8d')] != null && _0x544fd9[_0x2c75('0x8d')] != '' ? _0x2c75('0x79') : 'none')[_0x2c75('0x47')](_0x2c75('0x8e'), _0x544fd9 && _0x544fd9[_0x2c75('0x8d')] != null && _0x544fd9[_0x2c75('0x8d')] != '' ? _0x544fd9[_0x2c75('0x8d')] : '')); break; case _0x2c75('0x8'): document[_0x2c75('0x24')]('#ph_graph')[_0x2c75('0x73')](_0x2c75('0x8f'), _0x1fc575[_0x2c75('0x47')](_0x2c75('0x87'), _0x1d9d9c + _0x2c75('0x88'))[_0x2c75('0x47')]('[HAS_COUPON]', _0x544fd9 != null ? _0x2c75('0x79') : 'none')[_0x2c75('0x47')](_0x2c75('0x8a'), _0x544fd9 != null ? _0x2c75('0x7a') : _0x2c75('0x79'))[_0x2c75('0x47')](/\[COUPON\]/gi, _0x544fd9 ? _0x544fd9[_0x2c75('0x8b')] : '')[_0x2c75('0x47')](_0x2c75('0x90'), _0x544fd9 ? _0x544fd9[_0x2c75('0x8c')] : '')[_0x2c75('0x47')](/\[SITE\]/gi, _0x431ef3)[_0x2c75('0x47')](/\[PID\]/gi, _0x2f12e3)[_0x2c75('0x47')](_0x2c75('0x91'), _0x544fd9 && _0x544fd9[_0x2c75('0x8d')] != null && _0x544fd9[_0x2c75('0x8d')] != '' ? _0x2c75('0x79') : _0x2c75('0x7a'))['replace'](_0x2c75('0x8e'), _0x544fd9 && _0x544fd9[_0x2c75('0x8d')] != null && _0x544fd9[_0x2c75('0x8d')] != '' ? _0x544fd9[_0x2c75('0x8d')] : '')); break; case _0x2c75('0xf'): document[_0x2c75('0x24')](_0x2c75('0x72'))[_0x2c75('0x73')]('beforebegin', _0x1fc575['replace'](_0x2c75('0x87'), _0x1d9d9c + _0x2c75('0x88'))[_0x2c75('0x47')](_0x2c75('0x89'), _0x544fd9 != null ? _0x2c75('0x79') : 'none')[_0x2c75('0x47')](_0x2c75('0x8a'), _0x544fd9 != null ? _0x2c75('0x7a') : _0x2c75('0x79'))[_0x2c75('0x47')](/\[COUPON\]/gi, _0x544fd9 ? _0x544fd9[_0x2c75('0x8b')] : '')[_0x2c75('0x47')]('[COUPON_PRICE]', _0x544fd9 ? _0x544fd9[_0x2c75('0x8c')] : '')['replace'](/\[SITE\]/gi, _0x431ef3)[_0x2c75('0x47')](/\[PID\]/gi, _0x2f12e3)[_0x2c75('0x47')](_0x2c75('0x91'), _0x544fd9 && _0x544fd9['start_date'] != null && _0x544fd9[_0x2c75('0x8d')] != '' ? _0x2c75('0x79') : 'none')[_0x2c75('0x47')](_0x2c75('0x8e'), _0x544fd9 && _0x544fd9[_0x2c75('0x8d')] != null && _0x544fd9[_0x2c75('0x8d')] != '' ? _0x544fd9[_0x2c75('0x8d')] : '')); document[_0x2c75('0x24')]('.ph_coupon')[_0x2c75('0x5d')][_0x2c75('0x82')] = _0x2c75('0x92'); break; } window[_0x2c75('0x93')] = new Clipboard(_0x2c75('0x94')); window[_0x2c75('0x93')]['on'](_0x2c75('0x95'), function (_0x159893) { document[_0x2c75('0x24')](_0x2c75('0x96'))[_0x2c75('0x5d')][_0x2c75('0x97')] = _0x2c75('0x98'); document[_0x2c75('0x24')](_0x2c75('0x94'))[_0x2c75('0x5d')]['display'] = _0x2c75('0x7a'); _0x159893[_0x2c75('0x99')](); setTimeout(function () { document[_0x2c75('0x24')](_0x2c75('0x96'))['style'][_0x2c75('0x97')] = _0x2c75('0x7a'); document['querySelector'](_0x2c75('0x94'))[_0x2c75('0x5d')][_0x2c75('0x97')] = _0x2c75('0x98'); }, 0xbb8); }); }); } function _0x2b3ecd(_0x30452d, _0x2db42e) { _0x2188e0('canvas_template', function (_0x35525e) { console[_0x2c75('0x6d')]('RESPONSE\x20GOT:\x20' + _0x35525e); _0x5b02e2 = _0x35525e; switch (_0x431ef3) { case 'GearBest': if (document[_0x2c75('0x24')](_0x2c75('0x9a'))) document['querySelector'](_0x2c75('0x9a'))['insertAdjacentHTML']('afterend', _0x5b02e2); else document['querySelector'](_0x2c75('0x9b'))[_0x2c75('0x73')](_0x2c75('0x74'), _0x5b02e2); break; case 'BangGood': document[_0x2c75('0x24')](_0x2c75('0x9c'))[_0x2c75('0x73')](_0x2c75('0x74'), _0x5b02e2); break; case 'IHerb': document[_0x2c75('0x24')]('section.product-description-specifications')[_0x2c75('0x73')](_0x2c75('0x74'), _0x5b02e2); document[_0x2c75('0x24')](_0x2c75('0x72'))[_0x2c75('0x5d')]['marginLeft'] = _0x2c75('0x92'); } var _0xa85c72 = document[_0x2c75('0x9d')](_0x2c75('0x9e'))[_0x2c75('0x9f')]('2d'); var _0xd8104b; var _0x2d2eda; for (var _0x2cad39 = 0x0; _0x2cad39 < _0x30452d['length']; _0x2cad39++) { if (!_0x30452d[_0x2cad39][_0x2c75('0x56')] || _0x30452d[_0x2cad39][_0x2c75('0x56')] == '') { _0x30452d[_0x2cad39]['coupon'] = null; _0x30452d[_0x2cad39][_0x2c75('0xa0')] = null; } if (_0x30452d[_0x2cad39][_0x2c75('0x56')] && _0x30452d[_0x2cad39][_0x2c75('0xa0')] && _0x30452d[_0x2cad39][_0x2c75('0x56')] != '' && _0x30452d[_0x2cad39][_0x2c75('0xa0')] != '') { console[_0x2c75('0x6d')](_0x2c75('0xa1')); _0xd8104b = _0x30452d[_0x2cad39][_0x2c75('0x56')]; _0x2d2eda = _0x30452d[_0x2cad39][_0x2c75('0xa0')]; } else { if (_0xd8104b && _0x2d2eda) { console[_0x2c75('0x6d')]('COPYING\x20COUPON'); _0x30452d[_0x2cad39][_0x2c75('0x56')] = _0xd8104b; _0x30452d[_0x2cad39]['coupon_price'] = _0x2d2eda; } } } var _0x5598a6 = _0x183daf(_0x30452d, _0x2c75('0xa2')); var _0x4d80f7 = _0x183daf(_0x30452d, _0x2c75('0xa0')); var _0x37ce74 = _0x183daf(_0x30452d, 'date'); var _0x43cfb6 = { 'type': _0x2c75('0xa3'), 'data': { 'labels': _0x37ce74, 'datasets': [ { 'label': _0x2c75('0xa4'), 'data': _0x5598a6, 'borderColor': _0x2c75('0xa5'), 'backgroundColor': _0x2c75('0xa5'), 'fill': ![], 'lineTension': 0x0 }, { 'label': _0x2c75('0xa6'), 'data': _0x4d80f7, 'borderColor': _0x2c75('0xa7'), 'backgroundColor': _0x2c75('0xa7'), 'fill': ![], 'lineTension': 0x0 } ] }, 'options': { 'responsive': ![], 'title': { 'display': !![], 'text': _0x2c75('0xa8') }, 'tooltips': { 'mode': _0x2c75('0xa9'), 'callbacks': { 'label': function (_0x30eddc, _0x2813f8) { switch (_0x30eddc[_0x2c75('0xaa')]) { case 0x0: return 'Price:\x20$' + _0x30eddc['yLabel']; case 0x1: return _0x2c75('0xab') + _0x30eddc[_0x2c75('0xac')]; } return 'Price:\x20$' + _0x30eddc[_0x2c75('0xac')]; } } }, 'scales': { 'xAxes': [{ 'display': !![], 'scaleLabel': { 'display': !![], 'labelString': _0x2c75('0xad') } }], 'yAxes': [{ 'padding': 0x19, 'display': !![], 'scaleLabel': { 'display': !![], 'labelString': _0x2c75('0xae') }, 'ticks': { 'callback': function (_0xdb2f48, _0x4ef847, _0x15095a) { return _0xdb2f48['toLocaleString'](_0x2c75('0xaf'), { 'style': _0x2c75('0xb0'), 'currency': _0x2c75('0x28') }); } } }] } } }; window['ph_graph'] = new Chart(_0xa85c72, _0x43cfb6); _0x4bf04b(_0x30452d); _0x49bd22(_0x2db42e); }); } function _0x183daf(_0x64094, _0x41d67a) { var _0x5dd491 = []; for (var _0x3f7e62 = 0x0; _0x3f7e62 < _0x64094[_0x2c75('0x1d')]; _0x3f7e62++) { if (_0x64094[_0x3f7e62][_0x41d67a] != null) _0x5dd491[_0x2c75('0xb1')](_0x64094[_0x3f7e62][_0x41d67a][_0x2c75('0x22')]('\x20')[0x0]); else _0x5dd491[_0x2c75('0xb1')](_0x64094[_0x3f7e62][_0x41d67a]); } return _0x5dd491; } function _0x16b9dd(_0x303ae4, _0x13632e) { var _0x55d99a = {}; for (var _0xc35cb3 = 0x0; _0xc35cb3 < _0x303ae4[_0x2c75('0x1d')]; _0xc35cb3++) { if (_0x55d99a[_0x2c75('0x7d')] == null) _0x55d99a[_0x2c75('0x7d')] = _0x303ae4[_0xc35cb3]['price']; if (_0x55d99a[_0x2c75('0x77')] == null) _0x55d99a['low'] = _0x303ae4[_0xc35cb3]['price']; if (_0x55d99a[_0x2c75('0x7b')] == null && _0x303ae4[_0xc35cb3]['coupon'] && _0x303ae4[_0xc35cb3][_0x2c75('0xa0')]) _0x55d99a[_0x2c75('0x7b')] = _0x303ae4[_0xc35cb3]['coupon_price']; if (_0x55d99a[_0x2c75('0x7f')] == null && _0x303ae4[_0xc35cb3][_0x2c75('0x56')] && _0x303ae4[_0xc35cb3][_0x2c75('0xa0')]) _0x55d99a[_0x2c75('0x7f')] = _0x303ae4[_0xc35cb3][_0x2c75('0xa0')]; if (parseFloat(_0x303ae4[_0xc35cb3][_0x2c75('0xa2')]) < parseFloat(_0x55d99a[_0x2c75('0x77')])) _0x55d99a['low'] = _0x303ae4[_0xc35cb3][_0x2c75('0xa2')]; if (parseFloat(_0x303ae4[_0xc35cb3][_0x2c75('0xa2')]) > parseFloat(_0x55d99a['high'])) _0x55d99a[_0x2c75('0x7d')] = _0x303ae4[_0xc35cb3][_0x2c75('0xa2')]; if (_0x303ae4[_0xc35cb3][_0x2c75('0x56')] && _0x303ae4[_0xc35cb3]['coupon_price'] && parseFloat(_0x303ae4[_0xc35cb3][_0x2c75('0xa0')]) < parseFloat(_0x55d99a[_0x2c75('0x7b')])) _0x55d99a[_0x2c75('0x7b')] = _0x303ae4[_0xc35cb3]['coupon_price']; if (_0x303ae4[_0xc35cb3][_0x2c75('0x56')] && _0x303ae4[_0xc35cb3][_0x2c75('0xa0')] && parseFloat(_0x303ae4[_0xc35cb3]['coupon_price']) > parseFloat(_0x55d99a[_0x2c75('0x7f')])) _0x55d99a[_0x2c75('0x7f')] = _0x303ae4[_0xc35cb3][_0x2c75('0xa0')]; } return _0x55d99a; } function _0xbfa169(_0x174041, _0x239c2f, _0x28fc75, _0x327184) { var _0x48c1d5 = ''; if (_0x327184) { var _0x27d29e = new Date(); _0x27d29e[_0x2c75('0xb2')](_0x27d29e[_0x2c75('0xb3')]() + _0x327184 * 0x18 * 0x3c * 0x3c * 0x3e8); _0x48c1d5 = _0x2c75('0xb4') + _0x27d29e[_0x2c75('0xb5')](); } document[_0x2c75('0xb6')] = _0x174041 + '=' + _0x239c2f + _0x48c1d5 + _0x2c75('0xb7') + _0x28fc75 + _0x2c75('0xb8'); } function _0x5a0abc(_0x1c4cb1) { return _0x1c4cb1[_0x2c75('0x47')](/^\s+|\s+$/g, ''); } window['ph_askForCoupon'] = function (_0x1b201d, _0x2e2b58) { var _0x101ff0 = new XMLHttpRequest(); _0x101ff0[_0x2c75('0x4a')](_0x2c75('0x4b'), _0x2c75('0xb9'), !![]); _0x101ff0[_0x2c75('0x4d')](_0x2c75('0x4e'), _0x2c75('0xba')); _0x101ff0[_0x2c75('0x4f')] = function () { if (_0x101ff0[_0x2c75('0x50')] == 0x4 && _0x101ff0[_0x2c75('0x51')] == 0xc8) { document[_0x2c75('0x24')]('.ph_coupon\x20.not_available')[_0x2c75('0x5d')][_0x2c75('0x97')] = _0x2c75('0x7a'); document[_0x2c75('0x24')]('.ph_coupon\x20.available')['style'][_0x2c75('0x97')] = 'none'; document['querySelector'](_0x2c75('0xbb'))[_0x2c75('0x5d')][_0x2c75('0x97')] = _0x2c75('0x79'); } }; if (location['href'][_0x2c75('0x21')](_0x2c75('0x2a')) > -0x1) { var _0xc6d7cf = location[_0x2c75('0x6')]['substr'](0x0, location['href'][_0x2c75('0x21')](_0x2c75('0x2a')) + 0x5); } else if (location[_0x2c75('0x6')][_0x2c75('0x21')]('?') > -0x1) { var _0xc6d7cf = location[_0x2c75('0x6')][_0x2c75('0x29')](0x0, location[_0x2c75('0x6')][_0x2c75('0x21')]('?')); } else var _0xc6d7cf = location[_0x2c75('0x6')]; _0x101ff0[_0x2c75('0x58')](_0x2c75('0xbc') + encodeURIComponent(_0x1b201d) + _0x2c75('0xbd') + encodeURIComponent(_0x2e2b58) + _0x2c75('0xbe') + encodeURIComponent(_0xc6d7cf)); }; }());