Author of Info Blue UI Skin (Really wish Turbine would update the skinning interface and enable all the new UI parts.)
If you don't have an SSD, you should be using DDOPreload (fixes the slow first login issue)
loaded grease monkey. installed the two scripts but nothing seems to be happening.
the pull down menu for the monkey head on the tool bar, when I am in myddo.com/user name, shows that the sort script is active. but it's not showing the hide other servers script. though both will come up if I hit "manage user scripts".
when I open up the .js script for hide other servers, I must not be reading it correctly, because I don't see anything in there that would actually do anything. appears to be comments on how change the script to determine which servers or character names to exclude but not the actual script to do that
suggestions, ideas on what step or piece I missed?
The pull down menu for the monkey head only shows what scripts are running on that page. The hide other server script only runs on the Lottery signup sub-page. On your MyDDO page, click the Enter Lotteries Click Here link to open the Lottery signup sub-page, then check the monkey head pull down menu (it should show both scripts active at that point).
In the .js script for hide other servers, lines 1-9 should start with // and be comments, and lines 10-20 should be code. Line 10 should say "var rows = document.evaluate(" for instance.
Author of Info Blue UI Skin (Really wish Turbine would update the skinning interface and enable all the new UI parts.)
If you don't have an SSD, you should be using DDOPreload (fixes the slow first login issue)
I just wanted to add for any newer people to using scripts that in the original source for the server sort:
http://userscripts.org/scripts/review/104453
the source seems to be missing some commas at the end of the lines. This took me quite a while to figure out, and the correct version can be found on post 20 of this very thread:
http://forums.ddo.com/showpost.php?p...5&postcount=20
The auto install seems to work okay but not if you copy and past it from the source code ....
For those who use IE, the sort entries script does work with IE9. You just have to turn it into a link that you can bookmark. To add this to IE follow the these steps:
Click add to favorites in the favorites menu.
Name it what you want.
Right click your new favorite and choose properties.
Paste the line below into the link target.
Click okay.
To use you will have to click the bookmark when you are on your myDDO page but it will sort your entries just fine.Code:javascript:function sortTable(table) {var today = new Date();var maxAge = 22;var rows = Array.prototype.slice.call(table.getElementsByTagName('tr'), 0);for (var i=0, row; row = rows[i]; i++) {if ( row.innerHTML.search('<td class="left right pad"') == -1 ) {rows.splice(i,1);i--;}} rows.sort(function(a,b) { var adate = getRowDate(a); var bdate = getRowDate(b); var aurl = getRowURL(a); var burl = getRowURL(b); var aname = getRowName(a); var bname = getRowName(b); return ((adate != bdate) ? bdate - adate : ((aurl < burl) ? -1 : ((aurl > burl) ? 1 : ((aname < bname) ? -1 : ((aname > bname) ? 1 : 0))))); });while (table.firstChild) { table.removeChild(table.firstChild);} for (var i=0, row; row = rows[i]; i++) { if(getRowAge(row) < maxAge ) { table.appendChild(row); } } function getRowAge(row) { return (today.getTime()/(1000*60*60) + today.getTimezoneOffset()/60 - 5 - getRowDate(row)/(1000*60*60))/24; } function getRowDate(row) { return Date.parse(row.cells[0].getElementsByClassName('lotteryEndDate')[0].innerHTML); } function getRowURL(row) { return row.cells[0].getElementsByTagName('a')[0].getAttribute('href').toLowerCase(); } function getRowName(row) { return row.cells[0].getElementsByTagName('table')[0].nextSibling.nodeValue.toLowerCase(); }}var gradtables = document.getElementsByClassName('gradient_table');for (i = 0; i < gradtables.length; i++) { if ( gradtables[i].getAttribute('id') == 'lotterysignups' ) { sortTable(gradtables[i]) }}
I love the lottery sorter!
Except ... it has stopped working for me. I tried reinstalling it but clicking the Install button on the userscripts page no longer installs the script, instead showing me the script source.
I tried reinstalling greasemonkey too, I note that a new version of it was posted 2/12 which was about when I noticed that my lottery winners were out of sort. But no help.
Anyone else having this?
Community Member
I'm always able to enter the lotteries just fine from the in-game browser, but not from a standalone browser, with or without these scripts. Using Fireox, the only place I can see any lottery is if I go to a particular character's web page, such as my.ddo.dcom/character/[server]/[charname]. I've never been able to see the lotteries for all characters at once outside of the game.
Where do you view the lotteries online? Do you have to make all of your characters public for this to work?
Click your user name at the top of the my.ddo.com page and you should be able to enter all your characters at once. In your case it would be http://my.ddo.com/Barazon/
using chrome and Tampermonkey.
Sort script works great, thanks!!!
Hide Server script not working, seems to have one red line:
'//tr/td/a[contains(@href,"/orien/") or contains(@href,"/argonnessen/") or contains(@href,"/ghallanda/") or contains(@href,"/khyber/") or contains(@href,"/sarlona/") or contains(@href,"/wayfinder/")]'
no idea why. any suggestions?
Originally Posted by Towrn
The only difference between yours and mine is you are missing the comma at the end of the line:
Code:'//tr/td/a[contains(@href,"/orien/") or contains(@href,"/argonnessen/") or contains(@href,"/ghallanda/") or contains(@href,"/khyber/") or contains(@href,"/sarlona/") or contains(@href,"/wayfinder/")]',
missed the comma during copy/paste. it's there.
also tried installing direct to chrome (without tampermonkey) and again, sort works, ignore servers doesn't.
searching in other places leads me to believe it's a 'long line' issue.... also seems Greasemonkey is no longer supported in chrome, due to chrome native .js support... is there still a legacy Greasmonkey version available somewhere that CAN be used in Chrome, and can handle this .js ?
Originally Posted by Towrn
My mistake. Reading Comprehension fail. I mistakenly thought the hide servers script hid servers from the winners list, instead of the lottery entry box itself. Doi me. Got it figured out now, and I must admit, not entering the lotto on toons/servers I don't currently play makes MUCH more sense than filtering them out after the fact.
So yeah, all's well and working properly, but note to Chrome users, you don't need greasemonkey. Just download the scripts, open Chrome's 'wrench'->Tools->Extensions, drag-and-drop the scripts onto the Extension page to install.
Originally Posted by Towrn
Thankyou thankyou thankyou. This should get made sticky.
Here's a working example for hiding the "New Hair in 2012 Lottery" lottery on all characters (deletes the entire row, not just the character names/check boxes):
Code:var rows = document.evaluate( '//td/label[contains(text(),"New Hair") ]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null) for (i = 0; i < rows.snapshotLength; i++) { foo = rows.snapshotItem(i).parentNode.parentNode foo.parentNode.removeChild(foo) }
Looks like the DDO Lottery is working (for me at least) again. I went months without it displaying the lottery. Long bug thread about it that got nowhere a lot of us were posting in... I gave up. But tonight, it started working again, so I reloaded this up and it worked like a charm.
Nice job!
Blackmoor Defenders (LVL - 193)
Ghallanda ...Lhazaar 2006
Forum-ID u779 : Guild Leader of The Blackmoor Defenders
An alternate version which only hides every character entry checkbox for undesired lotteries, but leaves the lotto name and prize display intact. Useful if you are afraid of accidentally filtering out something you actually want (in which case, edit or disable the script to enter that lottery), or if you just want to see proof that some lottos are actually running.
Code:var rows = document.evaluate( '//td/label['+ 'contains(text(),"New Hair") '+ 'or contains(text(), "Get there faster") '+ 'or contains(text(), "Not really dead") '+ 'or contains(text(), "Barkskin +")'+ 'or contains(text(), "Close Friends")'+ 'or contains(text(), "Sun in a bottle")'+ ']', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null) for (i = 0; i < rows.snapshotLength; i++) { lotto = rows.snapshotItem(i).parentNode.parentNode boxes = document.evaluate( './/tr/td/a[contains(@href, "/character/")]', lotto, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null) for (j = 0; j < boxes.snapshotLength; j++) { charj = boxes.snapshotItem(j).parentNode.parentNode charj.parentNode.removeChild(charj) } }