Skip to content

Instantly share code, notes, and snippets.

@zsoumya
Last active October 10, 2025 04:54
Show Gist options
  • Save zsoumya/459a461376ea736f101da033e43a51f5 to your computer and use it in GitHub Desktop.
Save zsoumya/459a461376ea736f101da033e43a51f5 to your computer and use it in GitHub Desktop.
Stylus (Browser Extension) script to hide right side ad-panel from Yahoo! mail
/* This script does it's job successfully for the current
* Yahoo! mail web page (October 2025). However if Yahoo!
* updates their HTML chances are the script will break.
* In that case I will reexamine their HTML structure and
* try to update this script accordingly.
*/
/* 1) Completely hide the right rail */
section[data-test-id="novation-right-rail"] {
display: none !important;
}
/* 2) Make the main content 120% wide */
div[data-test-id="novation-main-content"] {
width: 123% !important;
/* Helpful in flex/grid layouts so the 120% actually takes effect */
max-width: none !important;
flex-basis: 123% !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment