[ code]
// ==UserScript==
// @pruned_47874318 MicroScatter Cheater Script
// @pruned_47874318space http://qsysmine.tk/
// @version 0.1
// @Description Press C on microscatter to win
// @Author qsysmine
// @match https://quizlet.com/*/microscatter
// @Grant none
// ==/UserScript==
(function(){
if (window.jQuery !== undefined) {
doStuff(jQuery);
} else {
var script = document.createElement('script');
script.src = 'https://ajax.googlea...2/jquery.min.js';
document.getElementsByTagName('head')[0].appendChild(script);
var interval = setInterval(function(){
if (window.jQuery) {
clearInterval(interval);
var JQ = jQuery.noConflict(true);
doStuff(JQ);
}
}, 100);
}
function doStuff($) { var cheatTime = 0;
window.setCheatTime = function(mils) {
cheatTime = mils;
};
var $ = window.jQuery;
var cheat = function() {
var ids = [];
var checkhasid = function(id) {
for(var i in ids) {
if(ids[i] == id) {
return true;
}
}
return false;
};
setTimeout(function() {
$('.cell').each(function(index){
if(checkhasid($(this).attr("data-id"))) $('[data-id="' + $(this).attr("data-id") + '"]').trigger("click")
if(!checkhasid($(this).attr("data-id"))) ids.push($(this).attr("data-id"));
});
}, cheatTime);
};
window.startWithTime = function(mils) {
setCheatTime(mils);
$('#start').trigger("click");
cheat();
};
var z = 0;
$('*').keyup(function(e) {
if(e.keyCode == 67 && z == 0 && $('#cells').hasClass("started")) {z = 1; cheat();}
}); }
})();
[ /code]
just in case you want to be #1 on matching
Edited by Torn, 23 February 2018 - 10:17 PM.