Skip to content

Instantly share code, notes, and snippets.

@Shariar-Hasan
Last active July 8, 2024 05:31
Show Gist options
  • Save Shariar-Hasan/549efd6fd667b7496bdcebecc7d92aff to your computer and use it in GitHub Desktop.
Save Shariar-Hasan/549efd6fd667b7496bdcebecc7d92aff to your computer and use it in GitHub Desktop.
A Script for remove the block wall of glassdoor protection wall and for full scroll functionality
/*
๐Ÿ‘‰๐Ÿ‘‰๐Ÿ‘‰๐Ÿ‘‰Usage:
๐Ÿ‘‰ open inpect tool (ctrl + shift + i or right click + inspect)
๐Ÿ‘‰ click on "console" tab
๐Ÿ‘‰ then paste the whole code there.
๐Ÿ‘‰ BOOM you got your glassdoor full scrollable
๐Ÿ‘‰ hit a Starโญ if you get some help by this ๐Ÿฅน๐Ÿฅณ
๐Ÿ‘‰ Created by : ๐Ÿ’ฅShariar Hasan - https://github.com/Shariar-Hasan
๐Ÿ‘‰ Medium Blog Link : ๐Ÿ’ฅhttps://medium.com/@ShariarHasan/unlocking-glassdoor-full-scroll-a-quick-console-trick-d8caa02a242c
*/
// variables
const ContentWallHardsell = document.querySelector("#ContentWallHardsell");
const BodyElement = document.querySelector("body"); ;
const HardsellOverlay = document.querySelector("#HardsellOverlay");
// actions to remove the top blocker layer
ContentWallHardsell?.remove();
HardsellOverlay?.remove();
// active body class for overflow scroling
if (BodyElement !== null && BodyElement !== undefined) {
BodyElement.style.overflow = "scroll";
}
// remove the scooll event litener
window.onscroll = function() {
return false
}
@okch-codes
Copy link

Thanks! Let me add the following snippet that enables you to add it to the bookmarks:

javascript:(function(){ 
  const ContentWallHardsell = document.querySelector("#ContentWallHardsell");
  const BodyElement = document.querySelector("body");
  const HardsellOverlay = document.querySelector("#HardsellOverlay");
   
  ContentWallHardsell?.remove();
  HardsellOverlay?.remove();
   
  if (BodyElement !== null && BodyElement !== undefined) {
    BodyElement.style.overflow = "scroll";
  }
   
  window.onscroll = function() {
    return false;
  }
})()

@Shariar-Hasan
Copy link
Author

@okch-codes Thanks brothers, thats great ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment