Skip to content

Instantly share code, notes, and snippets.

@rflrkn
Last active July 7, 2023 18:15
Show Gist options
  • Save rflrkn/6d5e7adc3829a58b92cd4b9910ce2e53 to your computer and use it in GitHub Desktop.
Save rflrkn/6d5e7adc3829a58b92cd4b9910ce2e53 to your computer and use it in GitHub Desktop.
auto hides steam deck infos on ProtonDB
// ==UserScript==
// @name ProtonDB Hide Steam Deck
// @match https://www.protondb.com/*
// @require https://code.jquery.com/jquery-3.7.0.slim.min.js
// @version 1.0
// @author rflrkn.de
// @description auto hides steam deck infos on ProtonDB
// ==/UserScript==
let waitForEl = function(selector, callback) {
if ($(selector).length) {
callback();
} else {
setTimeout(function(){
waitForEl(selector, callback);
}, 50);
}
};
waitForEl('*:contains("Deck Verified Status")', function() {
let steamDeckContainer = $('*:contains("Deck Verified Status")')[7];
$(steamDeckContainer).hide();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment