From 67ce685ea6dcc0ca2c60994f202ad0e35156f782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Fedor?= Date: Thu, 15 Aug 2019 00:18:42 +0200 Subject: [PATCH] Hotfix Hide about links option --- changelog.txt | 6 +++++- changelog_new.html | 19 +------------------ js/content/common.js | 11 +++++++---- js/core.js | 2 +- manifest.json | 2 +- 5 files changed, 15 insertions(+), 25 deletions(-) diff --git a/changelog.txt b/changelog.txt index 488004912..59affddce 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/changelog_new.html b/changelog_new.html index 6a33a0ebd..294375f8c 100644 --- a/changelog_new.html +++ b/changelog_new.html @@ -1,22 +1,5 @@ -

New and improved

- -

Fixes

-

For more information, check out our website or discord channel

diff --git a/js/content/common.js b/js/content/common.js index ce95ce347..9f7eb3c9f 100644 --- a/js/content/common.js +++ b/js/content/common.js @@ -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(); } } }; diff --git a/js/core.js b/js/core.js index 5104bc61f..258de6ee5 100644 --- a/js/core.js +++ b/js/core.js @@ -1,5 +1,5 @@ const Info = { - 'version': "1.2.0", + 'version': "1.2.1", }; /** diff --git a/manifest.json b/manifest.json index 823bc1872..794f5bba6 100644 --- a/manifest.json +++ b/manifest.json @@ -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",