Skip to content

Commit

Permalink
Hotfix Hide about links option
Browse files Browse the repository at this point in the history
  • Loading branch information
tfedor committed Aug 14, 2019
1 parent 2c81ddb commit 67ce685
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 25 deletions.
6 changes: 5 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
v1.2.0
v1.2.1
-----
- Hotfix after latest Steam changes

v1.2.0
-----
- Complete rework of Options page. Feels so fresh now.
- Added option to open external links in new tab
Expand Down
19 changes: 1 addition & 18 deletions changelog_new.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
<h2>New and improved</h2>
<ul>
<li>Complete rework of Options page. Feels so fresh now.</li>
<li>Added option to open external links in new tab</li>
<li>Improved YouTube search query</li>
<li>Added option to show applicable coupon on app pages and improved inventory handling</li>
<li>Updated localizations</li>
</ul>

<h2>Fixes</h2>
<ul>
<li>Fixed highlighting on front page after summer sale</li>
<li>Fixed "Add selected DLC to cart" button</li>
<li>Fixed profile theme not being applied to every showcase</li>
<li>Fixed achievement sorting not working in other languages than English</li>
<li>Fixed "Install Steam" button not being properly handled (which was breaking other things)</li>
<li>Fixed achievement bars sometimes using different styles</li>
<li>Fixed price data overlay info staying visible on wishlist after game was removed</li>
<li>Fixed account name on being replaced on purchase history page</li>
<li>Hotfix after latest Steam changes</li>
</ul>

<p>For more information, check out <a href="https://steamaugmented.com/">our website</a> or <a href="https://discord.gg/yn57q7f">discord channel</a></p>
11 changes: 7 additions & 4 deletions js/content/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -949,17 +949,20 @@ let EnhancedSteam = (function() {

// Triggers the unhandledrejection handler, so that the error is not fully suppressed
Promise.reject(err);
}
};

self.removeAboutLinks = function() {
if (!SyncedStorage.get("hideaboutlinks")) { return; }

document.querySelector("div.header_installsteam_btn").remove();
let node = document.querySelector("div.header_installsteam_btn");
if (node) { node.remove(); }

if (User.isSignedIn) {
document.querySelector(".submenuitem[href='https://store.steampowered.com/about/']").remove();
let node = document.querySelector(".submenuitem[href^='https://store.steampowered.com/about/']");
if (node) { node.remove(); }
} else {
document.querySelector(".menuitem[href='https://store.steampowered.com/about/']").remove();
let node = document.querySelector(".menuitem[href^='https://store.steampowered.com/about/']");
if (node) { node.remove(); }
}
};

Expand Down
2 changes: 1 addition & 1 deletion js/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Info = {
'version': "1.2.0",
'version': "1.2.1",
};

/**
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Augmented Steam",
"version": "1.2.0",
"version": "1.2.1",
"description": "Augments your Steam Experience",
"icons": {
"128": "img/es_128.png",
Expand Down

0 comments on commit 67ce685

Please sign in to comment.