PennergameHighscoreExtension

By Shorty Last update Jun 17, 2009 — Installed 139,822 times.

fixes for 3.1

in
Subscribe to fixes for 3.1 6 posts, 3 voices



TheTiger2k User

# general fix in line 12:

var tr = document.getElementsByTagName('table')[1].getElementsByTagName('tr');
(its the second table now)

# fix to show pet again:


// pet
var pet = document.createElement('td');
var str = response.responseText;
var petSearchStr = '

}
tr[ x ].insertBefore(pet, tr[ x ].getElementsByTagName('td')[ 6 ]);

# improvement to show highlight members of friendly gangs:


function write_gang_info(...) -> insert at the end

// filter friendly gang members out
var isFriendly = false;
switch(name) {
case 'GANG_NAME_1':
case 'GANG_NAME_2':
case 'GANG_NAME_N':
isFriendly = true;
break;
}

if (isFriendly) {
e.parentNode.parentNode.style.backgroundColor = '#335533';
}

 
TheTiger2k User

info:
if the info box (top right) is not shown, you don't need the fix and it's the first table again.

 
Shorty Script's Author

Hey TheTiger2k,

thanks a lot for your post/bugfix! Take a look at the new Extension on:

http://www.abload.de/img/unbenannt7n8t.jpg

Compatible with new PGV3.1. The new extension based on a small pg-scripting API

I work hard to release the new version this week on sunday ;)

 
Shorty Script's Author

Update is out now!

 
alkmona Scriptwright

bitte die Regexp Änderung von antitheus in der nächsten release einpflegen (Methode renderGangSearchResultTable()):

			var regex = "\u003Cstrong\u003E([0-9]+)" +
			".*bande\u003A([0-9]+).*\u003E(.*)\u003C\u002Fa\u003E" +
			".*\u003Ctd.*\u003E([0-9]+)" +
			".*\u0022\u003E([0-9]+)";

			var r = rawTable[ i ].innerHTML.match( regex );
			// var r = rawTable[ i ].innerHTML.match(/\u003Cstrong\u003E([0-9]+).*bande\u003A([0-9]+).*none\u003B\u0022...;

danke

 
Shorty Script's Author

@TheTiger2k Kannst Du bitte diesen Thread komplett löschen?!? Wird neu aufgesetzt

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel