Advertisement
austinh115

FEXBots Missing List Formatter

Jul 7th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         FEXBots Easy Missing List
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       Austin
  7. // @match        http://fexbots.com/tools/pgo/*/missing
  8. // @match        https://fexbots.com/tools/pgo/*/missing
  9. // @grant        none
  10. // ==/UserScript==
  11.  
  12.  
  13. function calculateMissing() {
  14.     $("[name=missingList_length]").children("option").val(1000).change();
  15.     var y = [];
  16.     var x = $("#missingList tr td:nth-child(3)");
  17.     x.map(function(e) {
  18.         y.push(x[e].innerHTML);
  19.     });
  20.     console.log("Missing Pokemon: " + y.join(", "));
  21.     $("span.missing").text(y.join(", "));
  22. }
  23.  
  24. (function() {
  25.     'use strict';
  26.  
  27.     if($("span.missin2g")[0] === undefined) {
  28.         var missing_span = document.createElement("span");
  29.         missing_span.className = "missing";
  30.         $("#missing > fieldset > div > div > article > div > header > h1").append("<br />").append(missing_span);
  31.  
  32.         var button = document.createElement("input");
  33.         button.className = "format_missing ";
  34.         button.type = "button";
  35.         button.className += "btn btn-alt btn-mini";
  36.         button.value = "Format Missing";
  37.         $(button).click(calculateMissing);
  38.         $("body > div.container-fluid > div.content-block > div:nth-child(3) > article > div > header > h2").append(" | " ).append(button);
  39.     }
  40. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement