Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Send Outside
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description adds a button to send a fleet right outside a system
- // @author You
- // @match http://www.war-facts.com/fleet.php*
- // @grant none
- // ==/UserScript==
- window.sendOutside = function(x,y,z) {
- $('#xyz').val(x+', '+y+', '+z);
- getMission('verify', 'c');
- }
- var coords=$('#midcolumn div').eq(20);
- var xyz=coords.text().split(', ');
- var x=xyz[0];
- var y=xyz[1];
- var z=xyz[2].split(' ');
- z=parseInt(z[0]);
- z=z+1;
- coords.append('<div style="display:inline-block;"><input type="button" value="send outside" onClick="sendOutside('+x+','+y+','+z+');"></div>');
- console.log(coords);
Advertisement
Add Comment
Please, Sign In to add comment