jshackles / Enhanced_Steam

Enhances the Steam Experience
www.EnhancedSteam.com
GNU General Public License v3.0
1.31k stars 195 forks source link

[Feature Request] Show items on wishlist filtered by wishlist notes #943

Open lipefl opened 8 years ago

lipefl commented 8 years ago

Everytime i add a wishlist note i would be able to filter all the games with the same note. It'll create some kind of directories for the games in wishlists.

Anahkiasen commented 8 years ago

👍 would love the same thing, I add things to my wishlist for different reasons, would love to be able to filter them in categories or tags

lipefl commented 8 years ago

I did a little (ugly) hack injection code myself using CSS and Javascript Injection extension (it could be tampermonkey).

$(document).ready(function(){

if(window.location.href.indexOf("steamcommunity.com/id/lipefl/wishlist") > -1) {

var checkExist = setInterval(function() {
   if ($('.es_wishlist_note').length) {
     var $tags=[];
  $('.wishlistRow').each(function(){
    $texttag=$(this).find('.es_wishlist_note').text();
    if ($texttag){
      $tags.push($texttag);
    }
  });

  $.unique($tags);

  var $appendtags='<a href="#" class="filterLipefl notePadrao" data-note="">Padrão</a> | ';
  for (i = 0; i < $tags.length; i++) { 
    $appendtags+='<a href="#" class="filterLipefl" data-note="'+$tags[i]+'">'+$tags[i]+'</a> | ';
}

  $appendtags+='</p>';

    $('#wishlist_sort_options').append($appendtags);

$('a.filterLipefl').click(function(){
    var $filter=$(this).attr('data-note');
    $('.wishlistRow').each(function(){
    if ($(this).find('.es_wishlist_note').text()!=$filter){
        $(this).hide();
    } else {
        $(this).show();
    }
});
    return false;
});
      $('a.notePadrao').click();
      clearInterval(checkExist);
   }
}, 100);
}
});
VanityFox commented 5 years ago

So, Enhanced Steam is discontinued. There is now Augmented Steam. Perhaps your requested feature/bugfix is already implemented there! If not, you could move your issue there.