// ==UserScript==
// @name Solved Media
// @namespace https://eugenox.appspot.com/
// @description Autocompletion for Solve Media image CAPTCHAs.
// @version 1.0
// @author Eugene Nouvellieu <eugenox_gmail_com>
// @license MIT License
// @include *
// @run-at document-end
// @grant unsafeWindow
// @homepageURL https://eugenox.appspot.com/script/solvedmedia
// ==/UserScript==
// Copyright (c) 2018 Eugene Nouvellieu <eugenox_gmail_com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do
// so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
'use strict';
var PHRASES = [
"1.21 gigawatts",
"5 dollar shake",
"6 feet of snow",
"a wild captcha appears",
"abelian grape",
"abide with me",
"absent without leave",
"ace of spades",
"across the board",
"adapt improve succeed",
"against the grain",
"all dancing",
"all growns up",
"all of the above",
"all singing",
"almost got it",
"always there",
"am i happy",
"anchors away",
"another castle",
"apple juice",
"apple pie",
"april may",
"april showers",
"are we there yet",
"are you ready",
"as i see it",
"ask questions",
"auto driving",
"awesome dude",
"azgoths of kria",
"babel fish",
"back to basics",
"back track",
"background noise",
"bacon and eggs",
"bad books",
"bad egg",
"bait the line",
"banana bread",
"banana split",
"banana stand",
"bangers and mash",
"barking mad",
"basket case",
"be careful",
"be mine",
"be nimble be quick",
"beans and rice",
"beer in the bottle",
"bees knees",
"bel my friend",
"believe me",
"berlin wall",
"bewties are cool",
"beyond me",
"big brother",
"big kahuna burger",
"big nose",
"bigger in texas",
"bike rider",
"birthday boy",
"birthday girl",
"bizarro jerry",
"black coffee",
"black gold",
"black monday",
"blahblahblah",
"blaze a trail",
"bless you",
"blinded by science",
"blog this",
"blue ribbon",
"blue sky",
"bob loblaw",
"body surfing",
"boiled cabbage",
"bon voyage",
"bond james bond",
"bone dry",
"bonus points",
"bots are bad m'kay",
"box jelly fish",
"boxx of chocolates",
"braaains",
"brand spanking new",
"bread of life",
"bruce lee",
"bunny rabbit",
"burger with fries",
"burning oil",
"buy some time",
"by the board",
"by the book",
"cabbage horsht",
"cabbage stew",
"call me maybe",
"call me",
"can i love",
"capital gain",
"car trouble",
"carbon copy",
"carbon footprint",
"carpe diem",
"carry a towel",
"carry on",
"cary grant",
"case closed",
"cat got your tongue",
"catch the man",
"cats and dogs",
"change the world",
"change yourself",
"charm offensive",
"charmed life",
"chicken noodle",
"chicken salad",
"chicken soup",
"chin boy",
"chit chat",
"choco lazer boom",
"chocolate cookie",
"chow down",
"chuck norris",
"clear blue water",
"clear sailing",
"close quarters",
"cloud nine",
"clown around",
"cold feet",
"cold hat",
"cold turkey",
"coleslaw",
"come along",
"come back",
"come on down",
"come what may",
"comma comma",
"common law",
"cop an attitude",
"cor blimey",
"count your change",
"counting sheep",
"covered bridge",
"creative process",
"creative vision",
"creepy crawler",
"crime of passion",
"crocodile tears",
"crop up",
"cross the rubicon",
"cubic spline",
"cucumber sandwich",
"cup cake",
"cut the mustard",
"dalek asylum",
"dear cookie",
"dear mr vernon",
"deep thought",
"deep waters",
"dharma initiative",
"diddy squat",
"digital clock",
"dinner bell",
"dinosaur spaceship",
"do a little dance",
"do be do be do",
"do it now",
"do or do not",
"do unto others",
"do wah ditty",
"do you love me",
"dobedobedo",
"doctor caligari",
"doe a deer",
"dog days",
"dog's breakfast",
"dogapus",
"dogs dinner",
"dollar bill",
"dollar signs",
"dollars to donuts",
"don't be late",
"don't stop",
"don't waste time",
"done that",
"doodah man",
"double crossed",
"double dutch",
"double time",
"double-cross",
"down the hath",
"drag race",
"dragon with matches",
"dragonfly",
"drink milk",
"drive me to firenze",
"easy as pie",
"easy peasy",
"eat cous cous",
"eat your dinner",
"eat your veggies",
"eat your vitamins",
"ecks why zee",
"egg on",
"eggs ter minate",
"electro head",
"enjoy life",
"evil eye",
"evil genius",
"exceedingly well read",
"exercise more",
"face the music",
"fair and square",
"fairy godmother",
"fake an umbrella",
"fancy free",
"far away",
"farcical aquatic ceremony",
"fashion victim",
"father time",
"fava beans",
"feeling blue",
"fellow traveller",
"fifth column",
"filthy dirty mess",
"final answer",
"fire brim stone",
"fire cracker",
"firecracker",
"first contact",
"first post",
"first water",
"fish and chips",
"flag day",
"flat out",
"flipadelphia",
"flipflops",
"foe-curling",
"follow me",
"folsom prison",
"fool's paradise",
"fools gold",
"for the gripper",
"forbidden fruit",
"foregone conclusion",
"forget you",
"forty two",
"foul play",
"four by two",
"fried ices",
"full house",
"full tilt",
"fun with flags",
"funny farm",
"fusilli jerry",
"fuzzy wuzzy",
"gadzooks",
"garlic yum",
"gathers moss",
"gee louise",
"gee whiz",
"genghis khan",
"george washington",
"get out",
"get your goat",
"giant bunny rabbit",
"giddy-goat",
"gift horse",
"give or take",
"global warming",
"go further",
"go gadget go",
"goes to eleven",
"gold medal",
"golly jeepers",
"good afternoon",
"good day",
"good evening",
"good grief",
"good job",
"good luck",
"good morning",
"good samaritan",
"good work",
"goody goody gumdrops",
"goody gumdrop",
"goody two shoes",
"gordon bennett",
"gotham city",
"gothic arch",
"gothic church",
"grain of salt",
"grand slam",
"grape soda",
"grass up",
"graveyard shift",
"gravy train",
"grease the skids",
"great scott",
"great unwashed",
"gridlock",
"grumpy cat",
"guitar player",
"habsons choice",
"had me at hello",
"hairy eyeball",
"halcyon days",
"half done",
"half empty",
"half full",
"half inch",
"ham burger bun",
"hamburger bun",
"handover fist",
"happy anniversary",
"happy trails",
"hard cheese",
"hard lines",
"hard-sharp",
"hardened prestoopnicks",
"harp on",
"harpoon",
"hat head",
"hat trick",
"have a purpose",
"have courage",
"he loves her",
"head case",
"head over heels",
"healthy food",
"hear me roar",
"heart strings",
"heart's content",
"heat up",
"heavens to betsy",
"heavy metal",
"heebie jeebies",
"here or there",
"here's johnny",
"hey brother",
"higgledy piggledy",
"high def",
"high flyer",
"high sleeper",
"hit the sack",
"hoagie roll",
"hoi polloi",
"hold your horses",
"home james",
"honey mustard",
"hops a daisy",
"horse and cart",
"hot diggity dog",
"hot-blooded",
"hover hand",
"how are you",
"how now, brown cow",
"how quaint",
"how sweet",
"howdy partner",
"hug me",
"hunky dory",
"hush puppies",
"i am fine",
"i can do this",
"i have fallen",
"i like humans",
"i love deadlines",
"i love lamp",
"i love you",
"i mustache you why",
"i think i am",
"i think so",
"i want control",
"i'm cold brr",
"i'm so cold",
"i'm sorry",
"idk my bff jill",
"if it fits",
"im cold. brr",
"im sorry",
"in limbo",
"in over my head",
"in spades",
"is it enough",
"is it hot",
"is low",
"it doesn't count",
"it happens",
"it hurts",
"it is enough",
"it will pass",
"it's over",
"jack be nimble",
"jay gatsby",
"jimmy horner",
"john lennon",
"jump higher",
"jump over",
"jump the gun",
"june july",
"just dance",
"just deserts",
"just friends",
"karma points",
"keep calm",
"keyboard cat",
"kick your heels",
"kindness of strangers",
"king arthur",
"knick knack",
"knock knock knock penny",
"knock off",
"knock on wood",
"know the ropes",
"knuckle down",
"kosher dill",
"labour of love",
"lager frenzy",
"lark about",
"laser beams",
"later gator",
"lazy sunday",
"learn from mistakes",
"learn the ropes",
"learn, advance",
"leave britney alone",
"leave me alone",
"left right",
"lefty loosey",
"less is more",
"let it be",
"let me know",
"lets eat",
"level playing field",
"library book",
"lickety-split",
"like a boss",
"linear algebra",
"little did he know",
"live free",
"live in the moment",
"live with purpose",
"living day lights",
"lizard poisons spock",
"lo and behold",
"loaf of bread",
"local derby",
"lol cat",
"look away",
"love is blind",
"love me",
"lunatic fridge",
"mad science",
"magic eight ball",
"make a bee line",
"make haste",
"make my day",
"many happy returns",
"many wishes",
"marble rye",
"marcia marcia marcia",
"margin of error",
"math test",
"mayan ruins",
"mea culpa",
"meddling kids",
"media frenzy",
"melody polld",
"men in suits",
"mend fences",
"meow meow",
"metropolis",
"milk was a bad choice",
"million dollars",
"mimsy borogoves",
"minced oaths",
"mind the gap",
"miss you",
"mister wilson",
"mom and dad",
"moot point",
"more coffee",
"more internets",
"morning person",
"most interesting man",
"mother country",
"motley crew",
"move along",
"move mountains",
"move over",
"movers and shakers",
"mum's the word",
"mustachioed",
"my bad",
"my beating heart",
"my friends can't dance",
"nanoo nanoo",
"nap time",
"narrow minded",
"neart strings",
"neckbeard",
"need a bigger boat",
"needs must",
"nercolas cerg",
"nest egg",
"never mind",
"nice to meet you",
"night owl",
"nip and tuck",
"nitty gritty",
"no dice",
"no friend of mine",
"no holds barred",
"no means no",
"no regrets",
"no stinking badges",
"no way",
"none of the above",
"nosy parker",
"not a bot",
"not in kansas",
"now and forever",
"nth degree",
"nul points",
"numa numa",
"nutrition",
"nyan cat",
"nyquist rate",
"off the record",
"oh brother",
"oh you",
"oh, wait",
"ohso close",
"old hat",
"on-off",
"once upon a time",
"one day more",
"one fell swoop",
"one hit wonder",
"one small step for man",
"one stop shop",
"one way",
"open season",
"orange juice",
"out of sorts",
"out of toner",
"over the hill",
"over the moon",
"over the top",
"oxford university",
"paints on the ground",
"pandora's box",
"paper plate",
"partial derivative",
"partly cloudy",
"patch of grass",
"pea brain",
"pell mell",
"perfect world",
"pester power",
"peter out",
"philadelphia",
"phone home",
"pick me",
"pick up sticks",
"pickle juice",
"pickled peppers",
"piggyback",
"pipe down",
"pipe dream",
"piping hot",
"pitter patter",
"pizza topping",
"plain sailing",
"play a game",
"play again",
"play ball",
"plugged nickel",
"pocket sized",
"pod bay doors",
"point-blank",
"points font matter",
"political party",
"poly cracker",
"poor house",
"pound cake",
"power dressing",
"powertool",
"practice makes perfect",
"press into service",
"primrose path",
"print out",
"public good",
"pudding pops",
"pumpkin pie",
"puppy love",
"queen of hearts",
"question mark",
"rain go away",
"read me, write me",
"ready set go",
"red herring",
"reduplicated phrases",
"return to sender",
"reverse the polarity",
"rhyme nor reason",
"rice and beans",
"ride the subway",
"riff-raff",
"rinky-dink",
"rise and shine",
"roast beef",
"robe of saffron",
"rocket science",
"roll over",
"roller skates",
"rooftop",
"root beer float",
"rope burn",
"rosie lea",
"round one",
"round robin",
"round tab1e",
"rule of chomio",
"rule of thumb",
"rum do",
"salad days",
"salt and pepper",
"salty cheese",
"sandy beach",
"sausages",
"save our bruths",
"sax and violins",
"say cheese",
"science class",
"science fair",
"science project",
"scot free",
"sea change",
"sea shore",
"seattle",
"see red",
"seems legit",
"seven signs",
"shaken not stirred",
"shakers and movers",
"sharp stick",
"sheldon alpha five",
"shilly-shally",
"ship shape",
"shoe shine",
"shoes shine",
"shoot through",
"shoulder of orion",
"signs point to yes",
"silver hoing",
"silver lining",
"silver spoon",
"sing a song",
"sixes and sevens",
"skidrow",
"skynet is watching",
"skynet watches",
"sleep tight",
"slippery slope",
"slow down",
"small fry",
"smashed potato",
"smoked salmon",
"snake eyes",
"snapshot",
"snow drift",
"snow flurry",
"snow shovel",
"so far away",
"sod's law",
"soft kitty warm kitty",
"somebody that i used to know",
"sorry sight",
"souffle girl",
"sound bite",
"sour grapes",
"speeding bullet",
"spelling bee",
"spend time",
"spicy hot",
"spitting feathers",
"spitting image",
"spoilers",
"spread the net",
"spruce up",
"square one",
"squeaky clean",
"st johns bay",
"stalla stella",
"stand up guy",
"star spangled",
"star wars kid",
"start from scratch",
"stay safe",
"steam punk",
"steering wheel",
"step over",
"steve holt",
"sticky wicket",
"sting like a bee",
"stinking rich",
"stony-hearted",
"string along",
"stump up",
"sulpher smell",
"summon inglip",
"sunday",
"sunshine",
"swan song",
"sweety pie",
"taco tuesday",
"take a look",
"take an umbrella",
"take it all",
"take out food",
"take potluck",
"take wrong turns",
"talk to strangers",
"talk turkey",
"tall building",
"tastes good",
"tastes like chicken",
"tea with jam",
"tea with milk",
"tear us apart",
"technicolor yawn",
"ten four",
"thank you, come again",
"that escalated quickly",
"that's enough",
"the bee's knees",
"the big cheese",
"the big easy",
"the cat lady",
"the cats cradle",
"the dennis system",
"the dude abides",
"the one eyed man is a king",
"the other side",
"the yellow king",
"there is only zul",
"there once was",
"they are watching",
"they ate it",
"think hard",
"think twice",
"this is sparta",
"this or that",
"this statement is false",
"three strikes",
"thumbs up",
"thunder storm",
"ticked off",
"tickled pink",
"tide over",
"tight lipped",
"time flies",
"time machine",
"to boot",
"toe the line",
"too late",
"too many secrets",
"top dog",
"top drawer",
"topsy turvy",
"tor curling",
"total shamble",
"towel dry",
"tower of strength",
"traffic light",
"train surfing",
"treat yoself",
"trick or treat",
"trickle down",
"trolololol",
"trust me",
"tuckered out",
"tuna fish",
"tune in",
"turkey sandwich",
"turn signal",
"turn the tables",
"twenty four seven",
"twenty one",
"two left feet",
"two tone",
"uncharted island",
"under the sea",
"union jack",
"unlimited wishes",
"until next time",
"until tomorrow",
"until tonight",
"up and away",
"up or down",
"upper crust",
"upper hand",
"upward slope",
"van surfing",
"vanilla ice cream",
"veg out",
"vegetarian",
"very nice",
"vicious cycle",
"video tape",
"vienna calling",
"virtue of necessity",
"vis avis",
"vocal minority",
"vorpal sword",
"vote pancakes",
"walk the plank",
"want more",
"warp speed",
"wash whites separately",
"watch out",
"we go forwards",
"we like the libon",
"weakest link",
"weasel words",
"well heeled",
"well now",
"well read",
"what ever",
"what is for dinner",
"what is your quest",
"wheebie-jeebies",
"wheel group",
"whistle and flute",
"white bread",
"white elephant",
"white rabbit",
"who am i",
"who are you",
"who is it",
"who you gonna call",
"who, what, where",
"whoa there",
"whole nine yards",
"whoops a daisy",
"wicked witch",
"wide berth",
"willy nilly",
"win hands down",
"window dressing",
"winter snow",
"wisdom of inglip",
"wisdom teeth",
"wishy-washy",
"with bells on",
"without a doubt",
"work out",
"would you believe",
"x all the y",
"xylophone",
"year dot",
"yee haw",
"yellow belly",
"yes ma'am",
"you don't say",
"you first",
"you good",
"you the man",
"you win",
"you're in my spot",
"you're welcome",
"zombie attack",
"zombie prom"
];
function publish(entity) {
if (typeof exportFunction == 'function' && typeof cloneInto == 'function') {
switch (typeof entity) {
case 'function':
return exportFunction(entity, unsafeWindow);
case 'object':
return cloneInto(entity, unsafeWindow, {cloneFunctions: true});
}
}
return entity;
}
function setup() {
var datalist = document.createElement('datalist');
datalist.setAttribute('id', 'adcopy_phrases');
for (var i = 0; i < PHRASES.length; ++i) {
datalist.appendChild(document.createElement('option')).appendChild(document.createTextNode(PHRASES[i]));
}
var input = document.getElementById('adcopy_response');
input.parentNode.insertBefore(datalist, input.nextSibling);
input.setAttribute('list', datalist.id);
}
var scripts = document.getElementsByTagName('script');
for (var i = 0; i < scripts.length; ++i) {
if (scripts[i].src.indexOf('solvemedia.com') > -1) {
if (unsafeWindow.ACPuzzleOptions) {
unsafeWindow.ACPuzzleOptions.callback = publish(setup);
}
else {
unsafeWindow.ACPuzzleOptions = publish({callback: setup});
}
break;
}
}