This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Attack Tracker | |
// @namespace http://www.wordowl.com/misc/ | |
// @description Tracks attacks made on players | |
// @version 1.7.6_experimental | |
// @include *starpirates.net/*attack.php* | |
// @include *starpirates.net/*search.php* | |
// @include *starpirates.net/*viewgang.php* | |
// @include *starpirates.net/*profiles.php* | |
// @include *starpirates.net/*contactlist.php* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sys = require('sys'); | |
var imap = require('imap'); | |
var mailCnt = undefined; | |
function dumpMsg(aMsg) { | |
console.log(JSON.stringify(aMsg, null, "\t")); | |
if (aMsg.headers) { | |
console.log("New mail, subject: " + aMsg.headers["subject"].join(", ")); | |
} else { | |
console.log("no headers for us? :-("); |