Created
October 19, 2023 16:13
-
-
Save szechyjs/8ac86863fdc1b0bbba682bff3b78e306 to your computer and use it in GitHub Desktop.
Tampermonkey script to remove Glassdoor content wall
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 Remove Glassdoor reviews content wall | |
// @version 1.0 | |
// @description Get rid of the annoying review content wall when browsing glassdoor. | |
// @author szechyjs | |
// @match https://www.glassdoor.com/Reviews/* | |
// @icon https://www.glassdoor.com/favicon.ico | |
// @grant none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// ==/UserScript== | |
waitForKeyElements('#HardsellOverlay', removeOverlay); | |
waitForKeyElements('p.review-details__review-details-module__isCollapsed', expandReview); | |
function removeOverlay(node) { | |
node.remove(); | |
document.body.style.overflow = 'unset'; | |
document.body.style.position = 'unset'; | |
window.onscroll = undefined; | |
} | |
function expandReview(node) { | |
node.attr('class', 'review-details__review-details-module__isExpanded'); | |
node.parent().siblings('.review-details__review-details-module__showMoreButton').remove(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment