Last active
July 7, 2023 18:15
-
-
Save rflrkn/6d5e7adc3829a58b92cd4b9910ce2e53 to your computer and use it in GitHub Desktop.
auto hides steam deck infos on ProtonDB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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