Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function audioKeeper() {
- BestDealsNotif = new Audio, BestDealsNotif['preload'] = 'auto', BestDealsNotif['src'] = 'sounds/BestDealsNotif.mp3', penWrite = new Audio, penWrite['preload'] = 'auto', penWrite['src'] = 'sounds/penWrite.ogg', penOff = new Audio, penOff['preload'] = 'auto', penOff['src'] = 'sounds/penOff.mp3', setTimeout(audioKeeper, 12e4)
- }
- function outGoingTradeoffers() {
- try {
- if ('connectionTrue' == localStorage['getItem']('OnConnection')) {
- if (void(0) != outgoingOffers['match'](/^[0-9]*\;/g)) {
- var _0xa99ex3 = outgoingOffers['match'](/^[0-9]*\;/g);
- _0xa99ex3 = _0xa99ex3.toString()['replace'](';', '');
- var _0xa99ex4 = 'https://steamcommunity.com/tradeoffer/' + _0xa99ex3 + '/',
- _0xa99ex5 = new XMLHttpRequest;
- _0xa99ex5['open']('GET', _0xa99ex4, !0), _0xa99ex5['send'](null), _0xa99ex5['onreadystatechange'] = function() {
- if (4 == _0xa99ex5['readyState']) {
- if (_0xa99ex5['responseText']) {
- var _0xa99ex4 = _0xa99ex5['responseText'],
- _0xa99ex6 = '<div>' + _0xa99ex4 + '</div>';
- if (_0xa99ex4 = $(_0xa99ex6), void(0) != $('.trade_area', _0xa99ex4)['html']()) {
- var _0xa99ex7 = '',
- _0xa99ex8 = _0xa99ex6['indexOf']('g_sessionID = "');
- for (_0xa99ex8 += 15;
- '"' != _0xa99ex6[_0xa99ex8];) {
- _0xa99ex7 += _0xa99ex6[_0xa99ex8], _0xa99ex8++
- };
- var _0xa99ex9 = _0xa99ex6['indexOf']('g_ulTradePartnerSteamID = \'');
- _0xa99ex9 += 27;
- for (var _0xa99exa = '';
- '\'' != _0xa99ex6[_0xa99ex9];) {
- _0xa99exa += _0xa99ex6[_0xa99ex9], _0xa99ex9++
- };
- outGoingData = 'sessionid=' + _0xa99ex7 + '&serverid=1&tradeofferid=' + _0xa99ex3 + '&partner=' + _0xa99exa + '&captcha=', chrome['tabs']['create']({
- url: 'https://steamcommunity.com/tradeoffer/' + _0xa99ex3 + '/#tradeconfirm',
- selected: !1
- }, function(_0xa99ex3) {
- outgoingOrderTabId = _0xa99ex3['id']
- })
- } else {
- outGoingSpecTry >= 2 && (outgoingOffers = outgoingOffers['replace'](_0xa99ex3 + ';', ''), outGoingSpecTry = 0), outGoingSpecTry++, setTimeout(outGoingTradeoffers, 5e3)
- }
- } else {
- setTimeout(outGoingTradeoffers, 5e3)
- }
- }
- }
- } else {
- setTimeout(outGoingTradeoffers, 5e3)
- }
- } else {
- outgoingOffers = '', setTimeout(outGoingTradeoffers, 5e3)
- }
- } catch (_0xa99ex3) {
- setTimeout(outGoingTradeoffers, 5e3)
- }
- }
- function incomingTradeoffers() {
- try {
- if (void(0) != incomingOffers['match'](/^[0-9]*\;/g)) {
- var _0xa99ex3 = incomingOffers['match'](/^[0-9]*\;/g);
- _0xa99ex3 = _0xa99ex3.toString()['replace'](';', '');
- var _0xa99ex4 = 'https://steamcommunity.com/tradeoffer/' + _0xa99ex3 + '/',
- _0xa99ex5 = new XMLHttpRequest;
- _0xa99ex5['open']('GET', _0xa99ex4, !0), _0xa99ex5['send'](null), _0xa99ex5['onreadystatechange'] = function() {
- if (4 == _0xa99ex5['readyState']) {
- if (_0xa99ex5['responseText']) {
- var _0xa99ex4 = _0xa99ex5['responseText'],
- _0xa99ex6 = '<div>' + _0xa99ex4 + '</div>';
- if (_0xa99ex4 = $(_0xa99ex6), void(0) != $('.trade_area', _0xa99ex4)['html']()) {
- var _0xa99ex7 = '',
- _0xa99ex8 = _0xa99ex6['indexOf']('g_sessionID = "');
- for (_0xa99ex8 += 15;
- '"' != _0xa99ex6[_0xa99ex8];) {
- _0xa99ex7 += _0xa99ex6[_0xa99ex8], _0xa99ex8++
- };
- var _0xa99ex9 = _0xa99ex6['indexOf']('g_ulTradePartnerSteamID = \'');
- _0xa99ex9 += 27;
- for (var _0xa99exa = '';
- '\'' != _0xa99ex6[_0xa99ex9];) {
- _0xa99exa += _0xa99ex6[_0xa99ex9], _0xa99ex9++
- };
- incomingData = 'sessionid=' + _0xa99ex7 + '&serverid=1&tradeofferid=' + _0xa99ex3 + '&partner=' + _0xa99exa + '&captcha=', chrome['tabs']['create']({
- url: 'https://steamcommunity.com/tradeoffer/' + _0xa99ex3 + '/#incomingTradeOfferConf',
- selected: !1
- }, function(_0xa99ex3) {
- incomingOrderTabId = _0xa99ex3['id']
- })
- } else {
- incomingSpecTry >= 2 && (incomingOffers = incomingOffers['replace'](_0xa99ex3 + ';', ''), incomingSpecTry = 0), incomingSpecTry++, setTimeout(incomingTradeoffers, 5e3)
- }
- } else {
- setTimeout(incomingTradeoffers, 5e3)
- }
- }
- }
- } else {
- setTimeout(incomingTradeoffers, 5e3)
- }
- } catch (_0xa99ex3) {
- setTimeout(incomingTradeoffers, 5e3)
- }
- }
- function subInterval() {
- var _0xa99ex3 = new XMLHttpRequest;
- _0xa99ex3['open']('GET', 'http://extensions.risenraise.com/profile/', !0), _0xa99ex3['send'](null), _0xa99ex3['onreadystatechange'] = function() {
- if (4 == _0xa99ex3['readyState']) {
- if (_0xa99ex3['responseText'] && 200 == _0xa99ex3['status']) {
- var _0xa99ex4 = _0xa99ex3['responseText'],
- _0xa99ex5 = $('#email', _0xa99ex4)['text']();
- if ('' != _0xa99ex5) {
- var _0xa99ex6 = $('span[name="Opskins Trade Helper"]', _0xa99ex4)['text']();
- if (void(0) != _0xa99ex6 && '' != _0xa99ex6 && parseInt(_0xa99ex6) >= 0) {
- '0' == _0xa99ex6 && (_0xa99ex6 = 1)
- } else {
- _0xa99ex6 = '0'
- };
- localStorage['setItem']('accountMail', 'activated'), localStorage['setItem']('days', '∞'), localStorage['setItem']('sub', 'true'), chrome['storage']['sync']['set']({
- opsSub: 'true'
- })
- } else {
- var _0xa99ex6 = '0';
- localStorage['setItem']('accountMail', 'activated'), localStorage['setItem']('sub', 'true'), localStorage['setItem']('days', '∞'), chrome['storage']['sync']['set']({
- opsSub: 'true'
- })
- };
- setTimeout(subInterval, 18e5)
- } else {
- setTimeout(subInterval, 3e4)
- }
- }
- }
- }
- var quickConfirm = !1,
- quickRemoveTabId = '',
- subcheck = !1,
- outgoingOffers = '',
- outGoingData = '',
- outgoingOrderTabId = '',
- incomingOffers = '',
- incomingData = '',
- incomingOrderTabId = '',
- BestDealsNotif, penWrite, penOff;
- audioKeeper(), localStorage['removeItem']('accountMail'), localStorage['removeItem']('days'), localStorage['removeItem']('sub'), chrome['storage']['sync']['set']({
- opsSub: 'false'
- }), setTimeout(outGoingTradeoffers, 100), setTimeout(incomingTradeoffers, 100), chrome['notifications']['onClicked']['addListener'](function(_0xa99ex3) {
- 'tradeFail' == _0xa99ex3 && chrome['tabs']['create']({
- url: 'https://steamcommunity.com/'
- }), chrome['notifications']['clear'](_0xa99ex3, function() {})
- }), chrome['tabs']['onRemoved']['addListener'](function(_0xa99ex3, _0xa99ex4) {
- _0xa99ex3 == quickRemoveTabId && (quickConfirm = !1), _0xa99ex3 == outgoingOrderTabId && (outGoingData = '', outGoingTradeoffers()), _0xa99ex3 == incomingOrderTabId && (incomingData = '', incomingTradeoffers())
- }), chrome['runtime']['onMessage']['addListener'](function(_0xa99ex19, _0xa99ex1a, _0xa99ex1b) {
- if (/freshSpecialData\:/g ['test'](_0xa99ex19)) {
- var _0xa99ex1c = _0xa99ex19['replace'](/freshSpecialData\:/gim, ''),
- _0xa99ex1d = _0xa99ex1c;
- localStorage['setItem']('userId', _0xa99ex1d), chrome['cookies']['get']({
- url: 'https://opskins.com/',
- name: 'PHPSESSID'
- }, function(_0xa99ex3) {
- _0xa99ex3['name'] != localStorage['getItem']('PHPSESSID') && localStorage['setItem']('PHPSESSID', _0xa99ex3['value'])
- }), chrome['cookies']['get']({
- url: 'https://opskins.com/',
- name: 'opskins_csrf_token'
- }, function(_0xa99ex3) {
- _0xa99ex3['name'] != localStorage['getItem']('csrf') && localStorage['setItem']('csrf', _0xa99ex3['value'])
- })
- } else {
- if ('deleteSpecialData' == _0xa99ex19) {
- localStorage['removeItem']('csrf'), localStorage['removeItem']('userId'), localStorage['removeItem']('PHPSESSID')
- } else {
- if ('fastFASTfast' == _0xa99ex19) {
- chrome['tabs']['create']({
- url: 'https://opskins.com/?loc=shop_checkout'
- })
- } else {
- if (/quickLog\:/gim ['test'](_0xa99ex19)) {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Quick Buy',
- message: _0xa99ex19['replace']('quickLog:', ''),
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('quickLog', function() {}), chrome['notifications']['create']('quickLog', _0xa99ex1e, function(_0xa99ex3) {})
- } else {
- if (/quickMsgBL\:/gim ['test'](_0xa99ex19)) {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Black List',
- message: _0xa99ex19['replace']('quickMsgBL:', ''),
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('quickMsgBL', function() {}), chrome['notifications']['create']('quickMsgBL', _0xa99ex1e, function(_0xa99ex3) {})
- } else {
- if (/tradeSuccess\:/gim ['test'](_0xa99ex19)) {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Quick Buy',
- message: _0xa99ex19['replace'](/tradeSuccess\:/gim, ''),
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('quickLog', function() {}), chrome['notifications']['clear']('tradeSuccess', function() {}), chrome['notifications']['create']('tradeSuccess', _0xa99ex1e, function(_0xa99ex3) {})
- } else {
- if (/tradeFail\:/gim ['test'](_0xa99ex19)) {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Quick Buy',
- message: _0xa99ex19['replace'](/tradeFail\:/gim, ''),
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('quickLog', function() {}), chrome['notifications']['clear']('tradeFail', function() {}), chrome['notifications']['create']('tradeFail', _0xa99ex1e, function(_0xa99ex3) {})
- } else {
- if ('getQuickConfirm' == _0xa99ex19) {
- chrome['tabs']['sendMessage'](_0xa99ex1a['tab']['id'], quickConfirm)
- } else {
- if ('getSpecialData' == _0xa99ex19) {
- var _0xa99ex1f = new XMLHttpRequest;
- _0xa99ex1f['open']('GET', 'https://opskins.com/?loc=support_tickets', !0), _0xa99ex1f['send'](null), _0xa99ex1f['onreadystatechange'] = function() {
- if (4 == _0xa99ex1f['readyState']) {
- if (_0xa99ex1f['responseText']) {
- var _0xa99ex20 = $('<div>' + _0xa99ex1f['responseText'] + '</div>');
- if (void(0) != $('.avatar-menu', _0xa99ex20)['html']()) {
- for (var _0xa99ex21 = $('script:not(:empty)', _0xa99ex20)['size'](), _0xa99ex22 = 0, _0xa99ex23 = ''; _0xa99ex22 < _0xa99ex21;) {
- _0xa99ex23 = $('script:not(:empty):eq(' + _0xa99ex22 + ')', _0xa99ex20)['text'](), _0xa99ex23['indexOf']('g_UID') > -1 && (eval(_0xa99ex23), _0xa99ex22 = _0xa99ex21), _0xa99ex22++
- };
- try {
- var _0xa99ex1d = g_UID;
- localStorage['setItem']('userId', _0xa99ex1d);
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Opskins Trade Helper',
- message: 'Special data collected.',
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('specialDataNotif', function() {}), chrome['notifications']['create']('specialDataNotif', _0xa99ex1e, function(_0xa99ex3) {}), chrome['cookies']['get']({
- url: 'https://opskins.com/',
- name: 'opskins_csrf_token'
- }, function(_0xa99ex3) {
- localStorage['setItem']('csrf', _0xa99ex3['value']), chrome['cookies']['get']({
- url: 'https://opskins.com/',
- name: 'PHPSESSID'
- }, function(_0xa99ex3) {
- localStorage['setItem']('PHPSESSID', _0xa99ex3['value']), chrome['runtime']['sendMessage']('readyData')
- })
- })
- } catch (a) {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Opskins Trade Helper',
- message: 'Special data error.',
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('specialDataNotif', function() {}), chrome['notifications']['create']('specialDataNotif', _0xa99ex1e, function(_0xa99ex3) {}), console['log'](a), chrome['runtime']['sendMessage']('readyData')
- }
- } else {
- localStorage['removeItem']('csrf'), localStorage['removeItem']('userId'), localStorage['removeItem']('PHPSESSID');
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Opskins Trade Helper',
- message: 'Sign In to OPSkins.',
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('specialDataNotif', function() {}), chrome['notifications']['create']('specialDataNotif', _0xa99ex1e, function(_0xa99ex3) {}), chrome['runtime']['sendMessage']('readyData')
- }
- } else {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Opskins Trade Helper',
- message: 'Failed to collect special data.\x0AINTERNET DSCONECTED',
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('specialDataNotif', function() {}), chrome['notifications']['create']('specialDataNotif', _0xa99ex1e, function(_0xa99ex3) {}), chrome['runtime']['sendMessage']('readyData')
- }
- }
- }
- } else {
- if (/InventoryManager\:/gim ['test'](_0xa99ex19)) {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Inventory Manager',
- message: _0xa99ex19['replace'](/InventoryManager\:/gim, ''),
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('InventoryManager', function() {}), chrome['notifications']['create']('InventoryManager', _0xa99ex1e, function(_0xa99ex3) {})
- } else {
- if ('startsubcheck' == _0xa99ex19) {
- 1 != subcheck && (setTimeout(subInterval, 18e5), subcheck = !0)
- } else {
- if (/^BDS_BL_Inport\:/gim ['test'](_0xa99ex19)) {
- var _0xa99ex24 = localStorage['getItem']('BestDealsSeacher_BL'),
- _0xa99ex25 = '[' + _0xa99ex19['replace'](/^BDS_BL_Inport\:/gim, '') + '];';
- if (void(0) == _0xa99ex24) {
- localStorage['setItem']('BestDealsSeacher_BL', _0xa99ex25), chrome['runtime']['sendMessage']('upd_BDS_BL:' + _0xa99ex25);
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Best Deals Searcher',
- message: _0xa99ex25['replace'](/\]\;$/, '')['replace'](/^\[/, '') + '\x0Aadded to the BlackList',
- iconUrl: 'images/blimg.png'
- };
- penWrite['play'](), chrome['notifications']['clear']('bds_bl_msg', function() {}), chrome['notifications']['create']('bds_bl_msg', _0xa99ex1e, function(_0xa99ex3) {})
- } else {
- if (_0xa99ex24['indexOf'](_0xa99ex25) > -1) {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Best Deals Searcher',
- message: 'This item is already in the list',
- iconUrl: 'images/icon128.png'
- };
- penOff['play'](), chrome['notifications']['clear']('bds_bl_msg', function() {}), chrome['notifications']['create']('bds_bl_msg', _0xa99ex1e, function(_0xa99ex3) {})
- } else {
- _0xa99ex24 = _0xa99ex25 + _0xa99ex24, localStorage['setItem']('BestDealsSeacher_BL', _0xa99ex24), chrome['runtime']['sendMessage']('upd_BDS_BL:' + _0xa99ex25);
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Best Deals Searcher',
- message: _0xa99ex25['replace'](/\]\;$/, '')['replace'](/^\[/, '') + '\x0Aadded to the BlackList',
- iconUrl: 'images/blimg.png'
- };
- penWrite['play'](), chrome['notifications']['clear']('bds_bl_msg', function() {}), chrome['notifications']['create']('bds_bl_msg', _0xa99ex1e, function(_0xa99ex3) {})
- }
- }
- } else {
- if ('This item is already in the list' == _0xa99ex19) {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Best Deals Searcher',
- message: 'This item is already in the list',
- iconUrl: 'images/icon128.png'
- };
- chrome['notifications']['clear']('bds_bl_msg', function() {}), chrome['notifications']['create']('bds_bl_msg', _0xa99ex1e, function(_0xa99ex3) {})
- } else {
- if (/confirmThisOutgoingTrade\:/gim ['test'](_0xa99ex19)) {
- var _0xa99ex26 = _0xa99ex19['replace'](/confirmThisOutgoingTrade\:/gim, '');
- outgoingOffers = outgoingOffers + _0xa99ex26 + ';'
- } else {
- if ('getOutgoingData' == _0xa99ex19) {
- chrome['tabs']['sendMessage'](_0xa99ex1a['tab']['id'], 'outGoingData:' + outGoingData + ';;;' + outgoingOffers['match'](/^[0-9]*\;/g)
- .toString()['replace'](';', ''))
- } else {
- if ('outGoingTradeConfirmed' == _0xa99ex19) {
- chrome['runtime']['sendMessage']('successOutgoingTradeOffer:' + outgoingOffers['match'](/^[0-9]*\;/g)
- .toString()['replace'](';', '')), outgoingOffers = outgoingOffers['replace'](/^[0-9]*\;/g, ''), outGoingSpecTry = 0
- } else {
- if (/quickConfirmTadeoffer\:/gim ['test'](_0xa99ex19)) {
- var _0xa99ex26 = _0xa99ex19['replace'](/quickConfirmTadeoffer\:/gim, '');
- incomingOffers = incomingOffers + _0xa99ex26 + ';'
- } else {
- if ('getIncomingData' == _0xa99ex19) {
- chrome['tabs']['sendMessage'](_0xa99ex1a['tab']['id'], 'incomingData:' + incomingData + ';;;' + incomingOffers['match'](/^[0-9]*\;/g)
- .toString()['replace'](';', ''))
- } else {
- if ('incomingTradeConfirmed' == _0xa99ex19) {
- chrome['runtime']['sendMessage']('successIncomingTradeOffer:' + incomingOffers['match'](/^[0-9]*\;/g)
- .toString()['replace'](';', '')), incomingOffers = incomingOffers['replace'](/^[0-9]*\;/g, ''), incomingSpecTry = 0
- } else {
- if (/DealsNotif\:/gim ['test'](_0xa99ex19)) {
- var _0xa99ex1e = {
- type: 'basic',
- title: 'Best Deals Searcher',
- message: _0xa99ex19['replace'](/DealsNotif\:/gim, ''),
- iconUrl: 'images/icon128.png'
- };
- BestDealsNotif['play'](), chrome['notifications']['clear']('DealsNotif', function() {}), chrome['notifications']['create']('DealsNotif', _0xa99ex1e, function(_0xa99ex3) {})
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }), localStorage['setItem']('OnConnection', 'connectionFalse'), chrome['runtime']['onMessageExternal']['addListener'](function(_0xa99ex3, _0xa99ex4, _0xa99ex5) {
- _0xa99ex3 = _0xa99ex3['data'], 'connectionTrue' == _0xa99ex3 && (localStorage['setItem']('OnConnection', _0xa99ex3), chrome['runtime']['sendMessage']('checkConnetion')), 'connectionFalse' == _0xa99ex3 && (localStorage['setItem']('OnConnection', _0xa99ex3), chrome['runtime']['sendMessage']('checkConnetion'))
- });
- var outGoingSpecTry = 0,
- incomingSpecTry = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement