Skip to content

Instantly share code, notes, and snippets.

@acgotaku
Last active April 14, 2017 09:28
Show Gist options
  • Save acgotaku/75613d67bea472462e0287fa9ccf03c0 to your computer and use it in GitHub Desktop.
Save acgotaku/75613d67bea472462e0287fa9ccf03c0 to your computer and use it in GitHub Desktop.
Hack tag fame
var tags = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdo", "bdi", "blockquote", "body", "br", "wbr", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "comment", "doctype", "data", "datalist", "dd", "del", "dfn", "div", "dl", "dt", "em", "embed", "fieldset", "figure", "figcaption", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hr", "html", "i", "s", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "pre", "progress", "q", "rtc", "rb", "rp", "rt", "ruby", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "template", "u", "ul", "var", "video"];
function fillData(data) {
setTimeout(function() {
$("#html5tags_game input").val(data);
$("#html5tags_game input").keyup();
}, 5000 * Math.random());
}
for (var i = tags.length; i >0 ; i--) {
var rand = Math.floor(Math.random() * tags.length);
fillData(tags[rand]);
tags.splice(rand,1);
}
@acgotaku
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment