UserScript For Unfinished Maps

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
Post Reply
Teeson
Posts: 3
Joined: Thu Oct 09, 2014 5:02 am

UserScript For Unfinished Maps

Post by Teeson »

Hi guys!

I just developed a little userscript to change the display of unfinished maps on ddnet.tw
This script allows to order maps by alphabetical order (from the left to the right) and adds the number of unfinished maps between parentheses.
If you want to use it, you can install it from this site.

Here is a preview:
Image
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: UserScript For Unfinished Maps

Post by deen »

That's cool. I think it would make more sense to have this on the site for everyone. Maybe we could have a selection between a few ways to sort (all in javascript): Default sort, Alphabetically, by stars/points.

If you could send me the code for that I'd probably add it.
Index
Posts: 1133
Joined: Mon May 05, 2014 7:30 pm
Clan: Eagle

Re: UserScript For Unfinished Maps

Post by Index »

I would say the code is there :p
https://monkeyguts.com/codepages/529.user.js
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.tw/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: UserScript For Unfinished Maps

Post by Soreu »

or without downloading - there:
https://monkeyguts.com/code.php?nav=code&id=529
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
Teeson
Posts: 3
Joined: Thu Oct 09, 2014 5:02 am

Re: UserScript For Unfinished Maps

Post by Teeson »

Hello deen!

I like your proposition but the problem is there is not enough information in the current page to do something like that in javascript.
The easiest way to contribute would be to share the source code of the website or at least of this page.

What do you call the default sort ? Is it the creation date of the map ?
User avatar
deen
TECHNICAL Team
Posts: 3576
Joined: Mon May 05, 2014 2:30 pm
Player profile: https://ddnet.org/players/deen/
Discord: deen#5910

Re: UserScript For Unfinished Maps

Post by deen »

Teeson
Posts: 3
Joined: Thu Oct 09, 2014 5:02 am

Re: UserScript For Unfinished Maps

Post by Teeson »

Woh ! What a surprise !
I didn't find any information about this github repository.

I'm not familiar with git and I don't like python, but I will try to do something.
In any case I'm glad to see that the source code of the website is open :) (ugly smiley)
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.tw/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: UserScript For Unfinished Maps

Post by Soreu »

ye ye, topic is old, but what about implementing this code w/o other sorting options? i'd say it still would be way more clear than current one
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
Post Reply

Who is online

Users browsing this forum: No registered users and 44 guests