Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Check if you've purchased any Paradox Interactive games since the start of May
- // You may be eligible for a free Paradox Interactive game, see: https://goo.gl/NmvkHM
- // Enter the code below in Chrome or Firefox's console (press ctrl+shift+k to open) at this URL:
- // https://store.steampowered.com/account/licenses/
- // Steam must be set to English or replace (jul|jun|may) with your language's variations
- // Make sure to double check the results as this is a pretty lazy method of matching!
- // By http://steamcommunity.com/id/mckack/
- console.clear();
- 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"];
- var postmay = [];
- $J(".license_date_col:contains('2017')").each(function() {
- var foo = $J(this).text();
- var bar = $J(this).next().text().replace(/(\t(Remove)?|\n)/ig,"").toLowerCase();
- var comp = $J(this).next().text().match(/\tRemove/ig);
- if(foo.match(/(jul|jun|may)/i) && (!comp)) {
- paradox.forEach(game => {
- if (bar.indexOf(game) > -1) {
- postmay.push(foo + ": " + bar);
- }
- });
- }
- });
- 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.");
Advertisement
Add Comment
Please, Sign In to add comment