Greasy Fork is available in English.

"Jagged's Master Meme Script for Cosmos Quest"

Adds Potato/Meme/Github buttons and chat commands.

// ==UserScript==
// @name            "Jagged's Master Meme Script for Cosmos Quest"
// @namespace       jaggedlightning@kongregate
// @author          jaggedlightning
// @version         1.0.6
// @description     Adds Potato/Meme/Github buttons and chat commands.
// @include         *://www.kongregate.com/*
// ==/UserScript==

if (/^\/?games\/[^\/]+\/[^\/?#]+([\?#].*)?$/.test(window.location.pathname)) {
    setTimeout(function(){javascript:void(window.location.assign("javascript:$('header').innerHTML+='<style>.POTATO{clear:none;margin:0px;padding:0px 5px;} .POTATOc{position:absolute;left:235px;top:3px}</style>';function POTATOED(){sendChatMessage('www.kongregate.com/forums/910715-cosmos-quest/topics/1769600-a-farmers-guide-to-growing-potatoes');holodeck.activeDialogue()._input_node.focus();return false};function POTATO2(){sendChatMessage('🥔');holodeck.activeDialogue()._input_node.focus();return false};function sendChatMessage(a){a = a.replace(/\\\\(?!u[0-9a-fA-f]{4}|x[0-9a-fA-f]{2})/g, '\\\\\\\\');dispatchToKonduit({type:KonduitEvent.ROOM_MESSAGE,data:{message:a,room:holodeck.chatWindow()._active_room._room}});return a;};holodeck.addChatCommand('potato', POTATOED);holodeck.addChatCommand('potato2', POTATO2);(function(){var a=$$('.room_name_container'),b,i;for(i in a){if(!(b=a[i]).POTATO)b.POTATO=b.innerHTML+=\"<span class='POTATOc'><input type='button' onclick='POTATOED();' class='POTATO' value='POTATO'></span>\";}})();window.POTATOED=POTATOED;window.sendChatMessage=sendChatMessage;void(0); javascript:$('header').innerHTML+='<style>.MEME{clear:none;margin:0px;padding:0px 5px;} .MEMEc{position:absolute;left:95px;top:28px}</style>';function LUXM(){sendChatMessage('Skill description of Lux M is completely wrong. It doesnt attack a random unit. It attacks that unit that allows its line to win. That is not random gamble, is gamble with rigged chances. Good thing that I could test this DQ and finally understand');holodeck.activeDialogue()._input_node.focus();return false};function DJM(){sendChatMessage('https://i.ytimg.com/vi/9HIlNhuFgb0/hqdefault.jpg');holodeck.activeDialogue()._input_node.focus();return false};function SOON(){sendChatMessage('Soon™');holodeck.activeDialogue()._input_node.focus();return false};function KERMIT(){sendChatMessage('https://i.pinimg.com/originals/25/52/c7/2552c7fe8a2cdf4ef7bb3d51d5852e77.jpg https://www.twitch.tv/endogamestv');holodeck.activeDialogue()._input_node.focus();return false};function NOFAITH(){sendChatMessage('wolf454: HA CALLED IT promotion still not on for tournaments wolf454: rip ice? where you the one who upgraded all is commons?');holodeck.activeDialogue()._input_node.focus();return false};function MEME2(){sendChatMessage('It\\'s challenging to provide tourney modes that don\\'t have situations where there\\'s a discrepancy between GWR and RNG. There should be a little variance. The art is finding a fine point where 90%+ winrate grids are coming in the bottom 5% of results.');holodeck.activeDialogue()._input_node.focus();return false}function SHRUG(){sendChatMessage('¯\\\\_(ツ)_/¯');holodeck.activeDialogue()._input_node.focus();return false};function KAPPA(){sendChatMessage('( ͡° ͜ʖ ͡°)');holodeck.activeDialogue()._input_node.focus();return false};function SHRUG2(){sendChatMessage('🤷');holodeck.activeDialogue()._input_node.focus();return false};function PR(){sendChatMessage('Lots of stuff has changed, we haven\\'t yet come to an agreement on what is the best way to do things');holodeck.activeDialogue()._input_node.focus();return false};function SAD(){sendChatMessage('(;︵;)');holodeck.activeDialogue()._input_node.focus();return false};function THINKING(){sendChatMessage('🤔');holodeck.activeDialogue()._input_node.focus();return false};function sendChatMessage(a){a = a.replace(/\\\\(?!u[0-9a-fA-f]{4}|x[0-9a-fA-f]{2})/g, '\\\\\\\\');dispatchToKonduit({type:KonduitEvent.ROOM_MESSAGE,data:{message:a,room:holodeck.chatWindow()._active_room._room}});return a;};holodeck.addChatCommand('kermit', KERMIT);holodeck.addChatCommand('meme2', MEME2);holodeck.addChatCommand('nofaith', NOFAITH);holodeck.addChatCommand('pr', PR);holodeck.addChatCommand('meme', LUXM);holodeck.addChatCommand('shrug', SHRUG);holodeck.addChatCommand('kappa', KAPPA);holodeck.addChatCommand('thinking', THINKING);holodeck.addChatCommand('djm', DJM);holodeck.addChatCommand('shrug2', SHRUG2);holodeck.addChatCommand('sad', SAD);holodeck.addChatCommand('soon', SOON);holodeck.addChatCommand('luxm', LUXM);(function(){var a=$$('.room_name_container'),b,i;for(i in a){if(!(b=a[i]).MEME)b.MEME=b.innerHTML+=\"<span class='MEMEc'><input type='button' onclick='LUXM();' class='MEME' value='MEME'></span>\";}})();window.LUXM=LUXM;window.sendChatMessage=sendChatMessage;void(0); javascript:$('header').innerHTML+='<style>.GITHUB{clear:none;margin:0px;padding:0px 5px;} .GITHUBc{position:absolute;left:134px;top:28px}</style>';function PROMO(){sendChatMessage('https://www.kongregate.com/forums/910715-cosmos-quest/topics/1785651-heroes-promotions-full-list-spreadsheet');holodeck.activeDialogue()._input_node.focus();return false};function ALYA(){sendChatMessage('www.github.com/Alya-N');holodeck.activeDialogue()._input_node.focus();return false};function PEBL(){sendChatMessage('pastebin.com/u/pebl');holodeck.activeDialogue()._input_node.focus();return false};function GIZMO(){sendChatMessage('https://github.com/GizmoMar');holodeck.activeDialogue()._input_node.focus();return false};function MONS(){sendChatMessage('https://github.com/monsenanna');holodeck.activeDialogue()._input_node.focus();return false};function IDS(){sendChatMessage('https://pastebin.com/PyqP1pY9');holodeck.activeDialogue()._input_node.focus();return false};function sendChatMessage(a){a = a.replace(/\\\\(?!u[0-9a-fA-f]{4}|x[0-9a-fA-f]{2})/g, '\\\\\\\\');dispatchToKonduit({type:KonduitEvent.ROOM_MESSAGE,data:{message:a,room:holodeck.chatWindow()._active_room._room}});return a;};holodeck.addChatCommand('alya', ALYA);holodeck.addChatCommand('pebl', PEBL);holodeck.addChatCommand('ids', IDS);holodeck.addChatCommand('gizmo', GIZMO);holodeck.addChatCommand('promo', PROMO);holodeck.addChatCommand('mons', MONS);holodeck.addChatCommand('dad', MONS);(function(){var a=$$('.room_name_container'),b,i;for(i in a){if(!(b=a[i]).GITHUB)b.GITHUB=b.innerHTML+=\"<span class='GITHUBc'><input type='button' onclick='ALYA();' class='GITHUB' value='GITHUB'></span>\";}})();window.ALYA=ALYA;window.sendChatMessage=sendChatMessage;void(0); javascript:$('header').innerHTML+='<style>.CALENDAR{clear:none;margin:0px;padding:0px 5px;} .CALENDARc{position:absolute;left:184px;top:28px}</style>';function CALENDARIO(){sendChatMessage('docs.google.com/spreadsheets/d/1CQsOlaZn9rS49oGDrPgAKw5fY6mH4Tv9Ohou9ES-jMI/edit#gid=1102699272');holodeck.activeDialogue()._input_node.focus();return false};function AH(){sendChatMessage('docs.google.com/spreadsheets/d/1yI0lE8tcEVk_uERL8ECjR1PNvTJ-BVyCsgJOqEM_-as/edit#gid=104609276');holodeck.activeDialogue()._input_node.focus();return false};function FOLLOWERS(){sendChatMessage('docs.google.com/spreadsheets/d/1kooHnekJluRFK6raZExGRsSZwJzK9jyOprvU0N2EWqI/edit#gid=129657897');holodeck.activeDialogue()._input_node.focus();return false};function TOURNEY(){sendChatMessage('https://pastebin.com/7gsUhcPc');holodeck.activeDialogue()._input_node.focus();return false};function ASHY(){sendChatMessage('https://pastebin.com/0SyQ1fuj');holodeck.activeDialogue()._input_node.focus();return false};function EVENTS(){sendChatMessage('Lottery --> Flash --> Extra AS Day --> Dungeon --> Followers --> Key Tower --> Lottery');holodeck.activeDialogue()._input_node.focus();return false};function sendChatMessage(a){a = a.replace(/\\\\(?!u[0-9a-fA-f]{4}|x[0-9a-fA-f]{2})/g, '\\\\\\\\');dispatchToKonduit({type:KonduitEvent.ROOM_MESSAGE,data:{message:a,room:holodeck.chatWindow()._active_room._room}});return a;};holodeck.addChatCommand('calendar', CALENDARIO);holodeck.addChatCommand('followers', FOLLOWERS);holodeck.addChatCommand('ah', AH);holodeck.addChatCommand('tourney', TOURNEY);holodeck.addChatCommand('ashy', ASHY);holodeck.addChatCommand('events', EVENTS);holodeck.addChatCommand('ah', AH);(function(){var a=$$('.room_name_container'),b,i;for(i in a){if(!(b=a[i]).CALENDAR)b.CALENDAR=b.innerHTML+=\"<span class='CALENDARc'><input type='button' onclick='CALENDARIO();' class='CALENDAR' value='CALENDAR'></span>\";}})();window.CALENDARIO=CALENDARIO;window.sendChatMessage=sendChatMessage;void(0);"));
}, 1250);
}