d2jsp
Log InRegister
d2jsp Forums > d2jsp > General Help > Site Suggestions >
Poll > Able To Preview Locked Stars
Prev1181920
Add Reply New Topic New Poll
  Guests cannot view or vote in polls. Please register or login.
Member
Posts: 788
Joined: Oct 11 2010
Gold: 0.00
Nov 15 2010 06:45am
You can already do this with a simple JS injection.
Go to the Star Setting page, then paste this line in your URL bar and hit enter.

Code
javascript:showPreview(113);




This will give you a preview of the last star, you can change 113 to whatever star you would like to see.
You can even change it to 100 so you get the njaguar icon. Huzzah.



Vulnerable code:
Code
<script type="text/javascript">
function showPreview(i) {
var o = document.getElementById("preview").getElementsByTagName("LEGEND")[0].firstChild;
var img = o.getElementsByTagName("IMG");

if(img.length) {
 if(i) img[0].src = "images/i"+i+".gif";
  else img[0].parentNode.removeChild(img[0]);
} else {
 img = document.createElement("IMG");
 img.src = "images/i"+i+".gif";
 o.appendChild(img);
}

}
</script>


Come' on people, that wasn't so hard.

This post was edited by TTYL on Nov 15 2010 07:07am
Member
Posts: 12,197
Joined: Jun 3 2006
Gold: 10,188.69
Dec 13 2010 01:21pm
Njaguar has the right to keep them locked down, and he has a good reason for it no doubt.
I say no.
Go Back To Site Suggestions Topic List
Prev1181920
Add Reply New Topic New Poll