Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name FEXBots Easy Missing List
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author Austin
- // @match http://fexbots.com/tools/pgo/*/missing
- // @match https://fexbots.com/tools/pgo/*/missing
- // @grant none
- // ==/UserScript==
- function calculateMissing() {
- $("[name=missingList_length]").children("option").val(1000).change();
- var y = [];
- var x = $("#missingList tr td:nth-child(3)");
- x.map(function(e) {
- y.push(x[e].innerHTML);
- });
- console.log("Missing Pokemon: " + y.join(", "));
- $("span.missing").text(y.join(", "));
- }
- (function() {
- 'use strict';
- if($("span.missin2g")[0] === undefined) {
- var missing_span = document.createElement("span");
- missing_span.className = "missing";
- $("#missing > fieldset > div > div > article > div > header > h1").append("<br />").append(missing_span);
- var button = document.createElement("input");
- button.className = "format_missing ";
- button.type = "button";
- button.className += "btn btn-alt btn-mini";
- button.value = "Format Missing";
- $(button).click(calculateMissing);
- $("body > div.container-fluid > div.content-block > div:nth-child(3) > article > div > header > h2").append(" | " ).append(button);
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement