Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

List all unbought DLC for already owned games #320 - Not possible anymore? #92

Open
last-phoenix opened this issue Apr 15, 2016 · 3 comments

Comments

@last-phoenix
Copy link

last-phoenix commented Apr 15, 2016

Hello,

I was so happy that I found this thread

But it seems that the option "Hide -> DLC for games you do not own" isn't there anymore.

Or maybe I just don't see it?

@Ryan-Witt
Copy link

I was looking for this as well. Unfortunately, it looks like Valve removed that ability.

Yeah, unfortunately this was removed at Valves request and due to limitations they built into their API.

@dragonfax
Copy link

So they genuinely don't us searching for DLC we dont' own yet, and would like to purchase. Thats pretty fucked up. Especially at sale time like now.

@DFNCTSC
Copy link

DFNCTSC commented Mar 15, 2018

@last-phoenix @Ryan-Witt @dragonfax It's likely possible to just reimplement the feature jshackles voluntarily removed.

+function hide_unowned_game_dlc() {
+	storage.get(function(settings) {
+		if (settings.hide_dlcunownedgames === undefined) { settings.hide_dlcunownedgames = false; storage.set({'hide_dlcunownedgames': settings.hide_dlcunownedgames}); }
+		if (settings.hide_dlcunownedgames) {
+			$(".search_result_row").each(function(index) {
+				var node = $(this);
+				if ($(this).html().match(/ico_type_dlc/)) {
+					var appid = get_appid($(this).attr("href"));
+					
+					get_http('//store.steampowered.com/api/appdetails/?appids=' + appid, function (data) {
+						var storefront_data = JSON.parse(data);
+						$.each(storefront_data, function(application, app_data) {
+							if (app_data.success) {						      
+								get_http('//store.steampowered.com/api/appuserdetails/?appids=' + app_data.data.fullgame.appid, function (fullgamedata) {
+									var fullgame_data = JSON.parse(fullgamedata);
+									$.each(fullgame_data, function(fullappid, fullapp_data){								
+										if (fullapp_data.success) {
+											if (!(fullapp_data.data.is_owned === true)) {										      
+												hide_node(node[0]);
+												if ($(document).height() <= $(window).height()) {
+													load_search_results();
+												}
+											}									      
+										}
+									});
+								});	
+							}
+						});	
+					});
+				}	
+			});
+		}
+	});
+}
+

You'll notice everywhere he says Valve requested him to remove the feature -- not that Valve broke the feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants