
Untitled
By: a guest on
Jun 13th, 2012 | syntax:
JavaScript | size: 1.06 KB | hits: 24 | expires: Never
/* For Kongregate's Dawn of the Dragon
// Outputs the raids URL links from your raid links tab.
// You can filter the tab and run the script to get the last <number> of raids
//
// Needs:
// SRDotDX FPX DOTD script plugin
// Kongregate's Prototype.js to be available
//
// Copy and paste the script into the browser console from Chrome browser inspector, or firefox browser console.
//
// To use, type/run:
// raw(10)
//
// To further filter by 'visited', run:
// raw(10,1)
//
// or filter by 'not visited', run:
// raw(10,2)
//
// Change the number to your desired last number of raids from your raids tab.
*/
var raw = function(num){
var visited = '';
if (arguments[1]){
if (arguments[1] === 1){ // visited
visited = ':not([raidvisited=false])'
} else if (arguments[1] === 0) {
visited = ':not([raidvisited=true])'
}
}
$A($$('.raid_list_item:not(.hidden)' + visited + ' .raid_list_item_head a.link').slice(
-num)).each(
function(item){
console.log(window.location.href + item.attributes.getNamedItem('href').value
)}
)}