Giter VIP home page Giter VIP logo

browserextension's Introduction

SteamDB Extension

chrome users firefox users edge users

Adds SteamDB links on various pages in the Steam Community and Store. Also highlights owned and wished products on steamdb.info.

Major features

  • Add SteamDB links across most Steam store and community pages
  • Highlight owned/wished/in cart games and packages on steamdb.info (by fetching info from Steam store)
  • Add new features on Steam sites (e.g. automatic age gate skip, quick sell in inventory, market prices in other inventories)
  • Fix stuff that Valve hasn't (e.g. properly center Steam store on big screens)
  • See this link for a list of all options and features

Links

There are no plans to support Safari at this time due to Apple's policies.

Contributing

This extension does not have any build steps, and you can simply load the folder on the extensions page of your browser.

When writing code, make sure to run our linter:

  1. Run npm install to install eslint
  2. Run npm test which should report warnings
  3. Run npm run fix which should automatically fix most of the reported warnings

Please do not make pull requests adding translations or languages at this time.

Making a release

Run npm run version 3.0.0 which updates manifest.json, creates a commit, creates a tag, and runs npm run build which creates a zip file with the release.

Trade offers support for for_item and my_item

This extension adds support for for_item and my_item parameters in /tradeoffer/new urls, these parameters will automatically add items to trade window upon page load.

  • for_item specifies an item in partner's inventory.
  • my_item specifies an item in your inventory.

Multiple parameters can be specified, a single parameter takes format of appid_contextid_assetid.

For example:

https://steamcommunity.com/tradeoffer/new?partner=[steamid]&for_item=753_6_1234
https://steamcommunity.com/tradeoffer/new?partner=[steamid]&for_item=753_6_1234&for_item=753_6_5678
https://steamcommunity.com/tradeoffer/new?partner=[steamid]&my_item=753_6_1234
https://steamcommunity.com/tradeoffer/new?partner=[steamid]&my_item=753_6_1234&my_item=753_6_5678
https://steamcommunity.com/tradeoffer/new?partner=[steamid]&for_item=753_6_1234&my_item=753_6_5678

Automatically open "grant an award" popup from a link using award

This extension adds support for award parameter in profile, workshop, and other published files such as screenshots.

Open the "grant an award" popup upon page load: https://steamcommunity.com/id/xpaw?award

Open popup and pre-select a specific award: https://steamcommunity.com/id/xpaw?award=17
In this case id 17 is "Take my points".

It works the same way for shared files: https://steamcommunity.com/sharedfiles/filedetails/?id=2935326022&award=17

License

Code in this repository is governed by a BSD-style license that can be found in the LICENSE file.

browserextension's People

Contributors

aviduda avatar dependabot[bot] avatar doctormckay avatar gaykevin avatar inilo avatar karlcastle avatar mtricht avatar ncla avatar rakleed avatar revadike avatar rlabrecque avatar rock48 avatar totalcaesar659 avatar xinayder avatar xpaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

browserextension's Issues

Gifts have a "View on Steam Database" button that is always greyed out

The button is created disabled and the segment of code that is intended to enable it has a bug that stops it from completing:

/gifts/undefined/validateunpack
Failed to load resource: the server responded with a status of 404 (Not Found)
inventory.js:316

I'm guessing the structure of the asset/item from CInventory changed so item.description.id is now item.assetid and PopulateActions in inventory.js hasn't been updated?

Get Free Licenses button

image

On your licenses page. This would make it more convenient for people. They wouldn't have to copy the script, then go to the license page, open dev tools to run it. Instead, it will be a simple button click.

Add "Remove from wishlist" button to app page

This is an enhancement request for Steam store pages.

When a game is on wishlist steam shows a button like this. But when clicked it just opens the wishlist page.
image

It would be easier if clicking this simply removed the game from the wishlist, or a new button next to it to remove from wishlist.

I found people suggested same feature on Steam forums, which Valve apparently didn't pay much attention to:
Remove from Wishlist on Store Page
Remove From Wishlist
Remove from Wishlist feature
Remove from Wishlist on Store Page
(This list keeps going on and on but I'll just stop here)

"Hide Products" No Longer Working in Google Chrome

Summary: In Steam Database's options, I've got "Hide products on sales page that you are not interested in" checked. But, products I've checked as "Not Interested" on Steam are not being hidden on SteamDB's Sales page.

Apology: I'd initially commented on this in a closed Issue:

#9 (comment)

But, since it's continuing, I thought it would be best if I started my own, open issue. Sorry.

Details: I'm using:

As of about 4 days ago, I'm pretty sure this was working. It looked like new games that I marked as "Not Interested" would disappear from the Sale page within a few hours. But, since then, things I mark as "Not Interested" are no longer being removed from the SteamDB Sales page. Even if I force a re-sync via the SteamDB Settings page, nothing changes. Ditto for forcing a refresh on the page with variations of F5 or CTRL+R. Turning the option off and on again makes no difference. Turning the extension, itself, off and on makes no difference.

In my browser, if I look at the store pages for the items I've marked as "Not Interested," they are actually showing as "Not Interested." Ditto for doing that within Steam, itself. Going to:

https://store.steampowered.com/account/notinterested/

shows what appears to be my up-to-date list of "Not Interested" games (75 of them).

If I check my cookies and site data in Chrome and limit them to those with "steam" in them, there are two with local data: steamdb.info and store.steampowered.com. The local data under the steamdb.info one seems to be getting modified (current last date/time is when I started checking this stuff today). But, the local data under the store.steampowered.com one hasn't been modified in 11 days.

I don't know if any of that makes any difference, but those are the only things I can think of to give you to help you track this down.

Disable "STEAMDB RATING" on Store page

Hi,
I consider the STEAMDB RATING not useful in any way for my purposes. Seeing the percentage on every game's Store page misleads me. Please at least add an option to disable it.

"Show Wishlisted Only" Greyed Out

On the steamdb.info page for current Steam sales:

https://steamdb.info/sales/

the "Show Wishlisted Only" option is grayed out. If I hover over it, it shows a red, crossed circle symbol (i.e., "not") and says "Requires Browser Extension." According to my Chrome Extensions list, I'm running version 1.8.3 of the Steam Database extension. According to the extension's options, I've got the "Highlight owned and wished products on steamdb.info" option turned on and I've added "store.steampowered.com" to Chrome's cookie whitelist.

I'm on:

  • Microsoft Windows 10 Pro (x64)
  • Chrome Version 69.0.3497.23 (Official Build) beta (64-bit)
  • Steam Database extension version 1.8.3

Add-on causes "Install Steam" download button to be removed on Firefox 69

Hello everyone!

I noticed the extension removes the "Install Steam" download button, which is normally located left of the log-in buttons on top. I am running the latest Firefox 69.0 and haven't tested on other browsers. Disabling the extension and refreshing the page immediately resolves the issue. Expected behavior is obviously the button staying there.

Thank you.

about cheat the queue

Related code

Not stated in the feature list

Desired behavior:
image

Can not be disabled in extension options

Desired behavior:
image

Can not recognize the completed explore queue. (Better implementation)

Desired behavior:
When my explore queue was manually done a part. It does not automatically explore queues without card.

Most of the settings won't be visible when viewed on scaled displays

As you can see from the screenshots, only a small portion of the extension's settings is on scaled displays (which is 125% on my end). If possible, a scrollbar would sort this issue out.

How it looks like without user interference:
chrome_2018-04-06_18-23-39

You have to set Chrome's own scaling down to 50% to be able to view all the settings:
image

Set currency in options

I am missing the option to set a desired currency for the steamDB calculator website.

If i click on the SteamDB Icon which redirects me to the calculatori get redirected to:
https://steamdb.info/calculator/76561198125362467/
but i think it would be very helpful to set a desired currency that users can get redirected directly to the page they want:
https://steamdb.info/calculator/76561198125362467/?cc=eu

Delete/restore packages

Add a button or link where we can delete (later restore) owned steam packages. This is done via help.steampowered.com API. All "permanently" removed packages, can be restored from my experience, even when you might expect AlreadyOwned error.

Filter wishlist to games containing demo

This is one of the features I've been desiring the most out of Enhanced Steam (now Augmented Steam), but the guys there said to implement this, they either have to scrape each wishlist game's store page, or use some sort of database, and it would takes ages to get implemented for Augmented Steam.

They said I would have better luck requesting this feature for the SteamDB extension, since you already have a great database that is perfect for this.

Any chance we can get it?

Does not work with Firefox Multi-account containers

  • OS: Manjaro Linux (Kernel: 5.3.18-1)
  • Firefox 72.0.2 (64-bit)
  • Firefox Multi-Account Containers: 6.1.1
  • Steam Database (extension): 2.4.3

Firefox Multi-Account Containers extension separates website storage into tab-specific Containers.
I am using to keep my browsing patterns separate.

While "Sign in Via Steam" feature of Steam Database extension works inside containerized tab. The browser extension is unable to retrieve game data. Since the browser extension uses cookies stored outside the containers.

Expected behavior:
The extension should use some other method to authenticate with steam. Maybe a login page for the extension itself.

ERROR! Firefox v61

ERROR!
The add-on downloaded from this site can not be installed, as it seems to be corrupted.

Please correct!
Firefox v61.

Please Reconsider the Position of new Sub Information within Steam Store Pages

Dear Sir,

Had been using SteamDB Extension (Chrome) for years and thank you for your hard work as it's now a "Must Install" extension along uBlock Origin and Augmented Steam along few others that eases user's life quite much.

But, since the Last Update on your Extension, while other new features added or improved, noticed that you choose to move the Steam Sub information per Game Page from here to new location of there while at first I thought myself as it got better attention due "Contrast" both in color and positioning of the Link, last image proves that such positioning is quite unfortunate and breaks page fluidity and design.

Last image is taken as of now (erasing personals) as it is the result of both Augmented Steam (on Price for 8 countries Always On for comparison) and SteamDB installed. As you can see due to Augmented Steam's "Show Package Info for All Apps" setting turned on, there are two packages present for the game Subs 46002 and 46736 which creates two blue-ish buttons (normally there's only One Sub) which squeezes the new position of your Sub Information more as if itself already wasn't squeezing the "X Friends want this game" info line down below.

Considering Augmented (Enhanced) Steam features that seems to cause trouble had been there for years before such change of SteamDB itself, sadly it's SteamDB's new choice of location for Sub Information that's causing the problem, not AS at all. It both lacks the "Other" sub's information AS provides and wedges itself between Steam > AS prepared Page Layout for worse viewing pleasure. Also your new location Shifts AS's blue buttons and Steam's Price Information so that it overlaps with the "Price per Country" Info Box making Price information to be Half-Seen.

If it was Augmented Steam to get newer change that causes such disruption, I would have posted it on https://github.com/tfedor/AugmentedSteam/issues instead of here yet since your change is the Last one, I'm believing it's also your responsibility to remedy the situation for your User's ease as there was nothing wrong with the "Previous Location" of Sub Information as presented in the first image linked above.

You could suggest to turn off Augmented Steam's feature yet it's both an unnecessary suggestion and not-an-alternative one because SteamDB links Sub Information to SteamDB Site itself whereas Augmented Steam links Sub Information to within Steam Sub pages such as https://store.steampowered.com/sub/46736/ which is also missing from your extension. So as a Power User having access to both functionality is more important instead of having to have close things for Identical Functionality such as both AS and you're offering Player Stats while AS place is on bottom and you put in Sidebar where I have one of them turned off for same stats.

Sorry for long read and finally, please reconsider the positioning of your New Sub information maybe to the old place but with new look and colors so that pages and extensions can co-exist in harmony instead of pushing one another within page. I can rectify the situation for only myself and had been using Stylus+UserStyles for quite some time with CSS information so that I can write myself a Custom CSS to fix your new choice for such information to its old place but this won't be the option for many other users that is using your Extension.

For their sakes please take this into consideration.

Best Regards.

Lowest record price and graphs blocks are missing unless Steamdb is visited beforehand

After I open browser (latest Chrome) and visit Steam, said blocks are missing for every game. But once I visit steamdb manually and get past the 'checking browser' stage, blocks start working normally everywhere.
I guess it's because of the cloudflare protection on steamdb.info and the fact that extension somehow can't go past it in the background?

Add all subscribed items to collection Button

It would be nice to have this feature integrated into the extension but maybe with a progress bar or something similar that shows the progress of it, because looking it up in the console is not very intuitive, as shown in this picture of the post on reddit:

grafik

Source Code from kluvo2

setTimeout(function(){
    // Create "Add" button
    var btn_add = document.createElement("BUTTON");
    var collection_window = document.querySelector('div.collectionAddItemsSection')
    collection_window.insertBefore(btn_add,collection_window.firstChild);
    btn_add.setAttribute('id','ASCM_addall');
    jQuery('button#ASCM_addall').html('+')
    btn_add.style.position = 'absolute';
    btn_add.style.top = '110px';
    btn_add.style.right = '50px';
    btn_add.style['border-radius'] = '10px';
    btn_add.style.color = 'white';
    btn_add.style['font-size'] = '40px';
    btn_add.style.background = '#00c417';
    btn_add.style.width = '60px';
    btn_add.style.height = '60px';
    btn_add.style['text-decoration'] = 'none';
    // Create "Remove" button
    var btn_rem = document.createElement("BUTTON");
    var collection_window = document.querySelector('div.collectionAddItemsSection')
    collection_window.insertBefore(btn_rem ,collection_window.firstChild);
    btn_rem .setAttribute('id','ASCM_removeall');
    jQuery('button#ASCM_removeall').html('-')
    btn_rem.style.position = 'absolute';
    btn_rem.style.top = '110px';
    btn_rem.style.right = '120px';
    btn_rem.style['border-radius'] = '10px';
    btn_rem.style.color = 'white';
    btn_rem.style['font-size'] = '40px';
    btn_rem.style.background = '#c20000';
    btn_rem.style.width = '60px';
    btn_rem.style.height = '60px';
    btn_rem.style['text-decoration'] = 'none';
    // Bind "Add" button
    jQuery('button#ASCM_addall').click(function(){
        var items = [];
        var collection_name = jQuery('div.manageCollectionHeader div.breadcrumbs a').eq(2).text().trim();
        var url = new URL(document.location.href);
        var collection_id = url.searchParams.get('id');
        jQuery('div#MySubscribedItems div.itemChoice:not(.inCollection)').each(function(){
            var data = {
                id: collection_id,
                sessionid: window.g_sessionID,
                childid: jQuery(this).attr('id').replace('choice_MySubscribedItems_',''),
                activeSection: collection_name
            };
            addToCollection(data, jQuery(this));
        });
    });
    // Bind "Remove" button
    jQuery('button#ASCM_removeall').click(function(){
        jQuery('div#MySubscribedItems div.itemChoice.inCollection').each(function(){
            window.RemoveChildFromCollection(jQuery(this).attr('id').replace('choice_MySubscribedItems_',''))
        });
    });
    // Function to send a request to add item to a collection
    function addToCollection(data, object){
        jQuery.ajax({
            type: "POST",
            url: 'https://steamcommunity.com/sharedfiles/addchild',
            data: data,
            success: function(response){
                if(object && response.success == 1){
                    object.addClass('inCollection');
                }
            }
        });
    }
}, 0);

Display Steam Card Exchange link

image from Enhanced Steam

profiles badges page
image

profiles gamecards page
image

Steam store pages

πŸ˜„ I hope Steam Database Extension can replace Enhanced Steam. And more convenient

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.