try to take over the world!
当前为
// ==UserScript==
// @name Gamekit SeeAll
// @namespace http://tampermonkey.net/
// @version 0.3
// @description try to take over the world!
// @author MrCraftCod
// @match https://gamekit.com/*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
$(document).ready(function(){
$(".fast-menu__nav").append('<a href="#" id="revealAll" done="false">Reveal quests</a>');
$('#revealAll').click(function(){
revealAll();
});
setTimeout(revealAll, 1000);
});
})();
function revealAll(){
if($('#revealAll').attr("done") === "true")
return;
$(".item").each(function(){
$(this).find(".pad").each(function(){
appendText($(this).text());
$('#revealAll').attr("done", true);
$('#revealAll').hide();
});
});
}
function appendText(text){
$("article>.game>.row>ul").append("<li>" + text + "</li>");
}