var headersData, admiralChecked = false; function getHeaders() { if (headersData === undefined) { var req = new XMLHttpRequest(); req.open('GET', location, false); req.send(null); // associate array to store all values headersData = new Object(); // get all headers in one call and parse each item var headers = req.getAllResponseHeaders().toLowerCase(), aHeaders = headers.split('\n'); for (var i= 0; i < aHeaders.length; i++) { var thisItem = aHeaders[i], key = thisItem.substring(0, thisItem.indexOf(':')), value = thisItem.substring(thisItem.indexOf(':') + 1); headersData[key] = value; } } } function getCFRay() { var result = 'admiral'; getHeaders(); if (headersData['cf-ray'] !== undefined && headersData['cf-ray'].length > 0) { result = headersData['cf-ray'].split('-')[1]; } else if (headersData['x-served-by'] !== undefined && headersData['x-served-by'].length > 0) { result = headersData['x-served-by']; } return result; } /** * Read Admiral cookie value * @param {string} status */ function readAdmiralCookie() { var cookieArray = document.cookie.split(/; */), ciphertextArray = [], isValid = false, matched = false, plaintext = '', cookieName, bytes, i; for (i = 0; i < cookieArray.length; i++) { ciphertextArray = cookieArray[i].split('='); if (ciphertextArray.length > 0) { bytes = CryptoJS.AES.decrypt(ciphertextArray[0].replace(/@[email protected]/g, '='), getCFRay()); try { plaintext = bytes.toString(CryptoJS.enc.Utf8); isValid = true; } catch { isValid = false; } if (isValid && plaintext.length > 0 && plaintext === (getCFRay() + navigator.userAgent).trim()) { cookieName = ciphertextArray[0] + '='; matched = true; break; } } } if (matched) { var char = cookieArray[i]; if (char.indexOf(cookieName) === 0) { var result = char.substring(cookieName.length, char.length).replace(/@[email protected]/g, '='), decrypted = CryptoJS.AES.decrypt(result, getCFRay()), data = { 'key' : cookieName, 'val' : 'false' }; if (decrypted.toString(CryptoJS.enc.Utf8) === (navigator.userAgent + getCFRay() + '1').trim()) { data['val'] = 'true'; } return data; } } return null; } /** * Save Admiral subscribed status to cookie * @param {string} status */ function updateAdmiralCookie(cipherValue, existingCookie) { var date = new Date(), valuePlainText = cipherValue.replace(/=/g, '@[email protected]'), admiralCookie; if (existingCookie !== null) { admiralCookie = existingCookie + valuePlainText; } else { var title = (getCFRay() + navigator.userAgent).trim(), titleCipher = CryptoJS.AES.encrypt(title, getCFRay()).toString(), titlePlainText = titleCipher.replace(/=/g, '@[email protected]'); admiralCookie = titlePlainText + '=' + valuePlainText; } date.setTime(date.getTime() + (10 * 60 * 1000)); admiralCookie += '; expires=' + date.toUTCString() + '; path=/'; document.cookie = admiralCookie; } checkAdmiralCookiePromise = new Promise(function (resolve, reject) { var cookieData = readAdmiralCookie(); if (cookieData !== null && cookieData['val'] === 'true') { resolve('subscribed'); } else if (window.admiral) { var checkAdmiralStatusPromise; if (window.location.host.replace(/^((sbx)|(dev)|(stg)|(www))\./, '') === 'forums.playstationlifestyle.net') { checkAdmiralStatusPromise = new Promise(function (resolve, reject) { if (typeof window.admiral !== 'undefined') { window.admiral("after", "measure.detected", function({ adblocking, whitelisted, subscribed }){ if (subscribed) { resolve('measure.subscribed'); } else { reject('measure.unsubscribed'); } }); } }); } else { checkAdmiralStatusPromise = new Promise(function (resolve, reject) { setTimeout(function () { reject('resolve'); }, 0); }); } checkAdmiralStatusPromise.then(function () { var cookieName = null; if (cookieData !== null) { cookieName = cookieData['key']; } updateAdmiralCookie(CryptoJS.AES.encrypt((navigator.userAgent + getCFRay() + '1').trim(), getCFRay()).toString(), cookieName); resolve('subscribed'); }) .catch(function (resp) { var cookieName = null; if (cookieData !== null) { cookieName = cookieData['key']; } updateAdmiralCookie(CryptoJS.AES.encrypt((navigator.userAgent + getCFRay() + '0').trim(), getCFRay()).toString(), cookieName); reject('unsubscribed'); }); } }); checkAdmiralCookiePromise.then(function () { console.info("[ADMIRAL] User Subscribed."); }).catch(function (resp) { console.info("[ADMIRAL] User Not Subscribed."); }); -->

Amazon Buying Xbox?

Discussion in 'General Gaming' started by BigPete7978, Feb 16, 2014.

  1. BigPete7978

    BigPete7978 PSLS Level: Silver

    Joined:
    Feb 6, 2014
    Messages:
    1,826
    Likes Received:
    373
    PSN:
    BigPete7978
    Yeah you read it right. There have been numerous rumors about the online retailer buying Xbox from Microsoft. Though it has already been dismissed as ridiculous.

    LINK

    Given that it has already been denies. What would you think this would do to the gaming industry? If anything at all. Would the effects be positive or negative.
     
  2. Chandler Wood

    Chandler Wood Get Off My Wood Staff Member

    Joined:
    Feb 9, 2014
    Messages:
    602
    Likes Received:
    354
    PSN:
    Wedge19
    Given that the Xbox brand seems to be more focused on the mass marketable side of video games, I don't know that much would change. Amazon could carry that legacy forward with a fair amount of ease. It could impact how the retailer sells PlayStation merch however.
     
  3. wolfehound22

    wolfehound22 PSLS Level: Newbie

    Joined:
    Feb 7, 2014
    Messages:
    168
    Likes Received:
    37
    I can't see that happening, not sure Amazon has that kind of money. Wonder what the asking price would be.
     
  4. MakaiOokami

    MakaiOokami PSLS Level: Bronze

    Joined:
    Feb 12, 2014
    Messages:
    897
    Likes Received:
    170
    Amazon bought a newspaper just because...

    They got money.

    It would be amazing and epic in so many ways.

    1. Amazon Cloud integration (probably cloud saves too)
    2. They would use a firmware to make the hard drives easier to upgrade.
    3. They would profit tons off of Xbox Live Gold, and probably bundle Xbox Live Gold with Amazon Prime
    4. Audible integration
    5. Cross-platform digital purchases (buy your games from Amazon get PSN voucher too)
    6. They'd probably throw a bunch of money at Indie Upstarts and be like HEY make great games!
    7. Eventually they'd start buying out good developers that were managed poorly and making great games if not exclusives.
    8. Probably eventually branch out into a Linux Based gaming machine when the Xbox Live widdled down and they find a niche' to go for.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice