Fiesta Fan Forums

Fiesta Fan Forums (http://www.fiestafan.com/forums/index.php)
-   M O S (http://www.fiestafan.com/forums/forumdisplay.php?f=25)
-   -   Dragon Cave Eg Viewer (http://www.fiestafan.com/forums/showthread.php?t=20786)

Zwivix 05-19-2009 02:31 AM

Dragon Cave Eg Viewer
 
To all that are using Dragon Cave, and use Firefox.

If you have the addon greasemonkey you can view your eggs/hatchlings/dragons as they progress. It shows up on very page you open and on every ad.

I dont know if you guys are intrested or already knew about it.

Here is where I got it from the beginning. The dragcave link on there no longer works, but I managed to have it work for me.

In case it doesnt work for who wants to try this is my current settings for my script:

// ==UserScript==
// @name DC
// @namespace http://dragcave.net
// @include http://*
// ==/UserScript==

var ele = document.createElement("div");

var DisplayType = "horizontal"; // horizontal, vertical, or random (one at a time display)
var myDragonList = "3SOQ,KsUG,BlFK,ocw0,"; //Replace these with your own! These are just examples.

var clickable = true; //link to dragon page: true or false

var disappear = false; //link disappearing: true or false

//Begin display bar customization.
ele.style.position = "fixed";
ele.style.right = "5px";
ele.style.bottom = "5px";
ele.style.border = "solid 1px black";
ele.style.zIndex = "1000";
ele.style.textAlign = "center";
//End display editing!

var myDragonListArray = new Array();
var myDragonListArray = myDragonList.split(",");

switch(DisplayType) {

case "random":
var i = Math.round(Math.random()*(myDragonListArray.length-1));
ele.innerHTML = getDragonURL(myDragonListArray[i],clickable);
break;

case "horizontal":
for (var i=0; i<myDragonListArray.length ; i=i+1) {
ele.innerHTML += getDragonURL(myDragonListArray[i],clickable);
}
break;

case "vertical":
for (var i=0; i<myDragonListArray.length ; i=i+1) {
ele.innerHTML += getDragonURL(myDragonListArray[i],clickable) + '<br />';
}
break;

}

if (!(clickable) && disappear) {
ele.setAttribute("onmouseover", "this.style.display = 'none';");
}

document.body.appendChild(ele);

function getDragonURL(dragonCode,click){
var dragonPicCode = "";
if (click) {
dragonPicCode += '<a href="http://dragcave.net/view/'+ dragonCode +'" target="_blank">';
}
dragonPicCode += '<img src="http://dragcave.net/image/'+ dragonCode+'/1.gif" style="border-width: 0; max-height: 28px;"/>';
if (click) {
dragonPicCode += '</a>';
}
return dragonPicCode;
}


This is what you need to have so your dragons show on all your pages.

I dont know how to make it give you clicks every page,so if anyone can find some info on that, or we can just use it for keeping track of your eggs.

Hessah 05-19-2009 02:43 AM

So what that does is have the eggs sit at the corner of your browser??

Lirange 05-19-2009 02:49 AM

hmm i'm interested in this
a screenie of what it looks like?

Hessah 05-19-2009 02:53 AM

i THINK it's in the "This" link near the end of his post...

Lirange 05-19-2009 02:56 AM

ohh
>.<
going to try it

Lirange 05-19-2009 03:00 AM

ehh followed the guide
dont get it

Zwivix 05-19-2009 03:52 AM

Copy my bolded item into your new script. Then click on my last link and make it look like that. Dont forget to save it. If it doesnt work ill make a step by step guide later.

FYI didnt get the guide used it as a base and tweaked it til it worked.


All times are GMT. The time now is 09:07 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.