daily pastebin goal
59%
SHARE
TWEET

Steam - Paradox Interactive games since May

McKack Jul 7th, 2017 (edited) 275 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Check if you've purchased any Paradox Interactive games since the start of May
  2. // You may be eligible for a free Paradox Interactive game, see: https://goo.gl/NmvkHM
  3.  
  4. // Enter the code below in Chrome or Firefox's console (press ctrl+shift+k to open) at this URL:
  5. // https://store.steampowered.com/account/licenses/
  6. // Steam must be set to English or replace (jul|jun|may) with your language's variations
  7. // Make sure to double check the results as this is a pretty lazy method of matching!
  8.  
  9. // By http://steamcommunity.com/id/mckack/
  10.  
  11. console.clear();
  12. var paradox = ["rts of iro","europa uni","king art","saders: thy","ghts of hon","take comm","word of the star","jesty: g","majesty 2","war of the ros","for the glo","senal of dem","magicka","kings' crus","victoria","simulator ext","ities in mot","ders of ard","rkest hou","sengoku","aval war","starvoid","game of dwa","sburg: arm","impire","iathan: w","ster of the arca","wdown effe","warlock 2","dungeonland","arch of the eag","ghts of pen","teleglitch","war of the vik","cient spac","cities: sky","stellaris","llars of ete","tyranny","eel divis"];
  13. var postmay = [];
  14.  
  15. $J(".license_date_col:contains('2017')").each(function() {
  16.     var foo = $J(this).text();
  17.     var bar = $J(this).next().text().replace(/(\t(Remove)?|\n)/ig,"").toLowerCase();
  18.     var comp = $J(this).next().text().match(/\tRemove/ig);
  19.     if(foo.match(/(jul|jun|may)/i) && (!comp)) {
  20.         paradox.forEach(game => {
  21.             if (bar.indexOf(game) > -1) {
  22.                 postmay.push(foo + ": " + bar);
  23.             }
  24.         });
  25.     }
  26. });
  27.  
  28. console.log(postmay.length > 0 ? "The following entries may be Paradox Interactive products you've purchased/activated since the start of May:\n\n" + postmay.join('\n').toUpperCase() : "Doesn't look like you have purchased/activated any Paradox Interactive products since the start of May.");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top