I tried to make a script to get the review score of a steam app - for example, get_review_score(220) should return 96.

function get_review_score(appID){
        var returnData;
        $.ajax({
            url: ("http://store.steampowered.com/app/"+appID),
            success: function(data){
                returnData=($(".responsive_reviewdesc",data));
            }
        });
        return parseFloat(returnData.text());
    }

But I get this security error:

Refused to connect to 'http://store.steampowered.com/app/220' because it violates the following Content Security Policy directive: "connect-src 'self' http://steamcommunity.com https://steamcommunity.com https://api.steampowered.com/".
8 years ago

Comment has been collapsed.

If you're using a chrome-like browser and your script is for personal use,this might help.

8 years ago
Permalink

Comment has been collapsed.

Use jQuerys get method?

8 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 5 years ago.

8 years ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.