From c4e7ef983f31a39d2fc69e1f2c165ab4e2aee42c Mon Sep 17 00:00:00 2001 From: Jossef Harush Date: Thu, 16 Feb 2017 08:56:16 +0200 Subject: [PATCH] css: support for profile class in SO new design close #2 --- src/js/content-script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/content-script.js b/src/js/content-script.js index 0b69270..756b723 100755 --- a/src/js/content-script.js +++ b/src/js/content-script.js @@ -119,7 +119,7 @@ var isDisabled = !options.enableSortByMyUpvotes && var downVoted = []; var all = jQuery('.answer').toArray(); - var loggedUserProfileLink = jQuery('.profile-me').attr('href'); + var loggedUserProfileLink = jQuery('.my-profile,.profile-me').slice(0,1).attr('href'); all.forEach(function(answer, position) { answer = jQuery(answer);