Jump to content

Sort by Rank


Recommended Posts

  • 4 months later...

Using Geasemonkey (Firefox)/ Tempermonkey (Chrome) you can at least do it yourself using javascript. But its certainly not elegant and should be implemented natively:

// ==UserScript==
// @name         PSNProfiles Ranks Ordering
// @namespace    servertimeout
// @version      0.2
// @description  adding rank sorting (scroll down first, and maybe sort by native percentage first)
// @author       servertimeout
// @match        https://psnprofiles.com/*
// @grant        none
// ==/UserScript==


jQuery(document).ready(function() {
    jQuery('.dropdown-toggle.order').next().append(
        jQuery('<li><a href="">Rank</a></li>').on('click', function(ev) {
            ev.preventDefault();
            var trophyOrder = ['F','E','D','C','B','A','S'];
            for (var r=0; r<=trophyOrder.length; r++){
                jQuery('.'+trophyOrder[r]).each(function() {
                    jQuery('#gamesTable').append(jQuery(this).closest('tr'));
                });
            }
        })
    );
});
The only issue I'm having with my solution is that I usually check my trophies on my smartphone. And there are no plugins available for chrome or native browser. There is a Tempermonkey app though but surfing with is not as quick as the chrome app (I can only talk for android phones here)

post-80890-0-52161100-1435788149_thumb.jpg

Edited by serverTimeout
  • Like 4
Link to comment
Share on other sites

  • 1 year later...

Update for new version:

// ==UserScript==
// @name         PSNProfiles Ranks
// @namespace    st
// @version      0.2
// @description  adding rank sorting
// @author       servertimeout
// @match        https://psnprofiles.com/*
// @grant        none
// ==/UserScript==

jQuery(document).ready(function() {
    jQuery('.dropdown-toggle.order').next().append(
        jQuery('<li><a href="">Rank</a></li>').on('click', function(ev) {
            ev.preventDefault();
            var trophyOrder = ['F','E','D','C','B','A','S'];
            for (var r=0; r<=trophyOrder.length; r++){
                jQuery('.'+trophyOrder[r]).each(function() {
                    jQuery('#content table.zebra').eq(0).append(jQuery(this).closest('tr'));
                });
            }
        })
    );
});
  • Like 1
Link to comment
Share on other sites

  • 1 year later...

I know this ia an old topic, but I would love to get a sort for Game Rank. I thought of doing a new post, but found this one, bumping this instead of doubleposting.

 

Nice script @serverTimeout, but as you said for more than a year ago, it only works on computers. I also use my smart phone or tablet 99,9% of the time.

 

As OP asked for three uears ago, I would like a native sort for game ranks, thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...