Skip to content

Instantly share code, notes, and snippets.

@dgxo
Last active August 16, 2023 07:07
Show Gist options
  • Save dgxo/a811d94e700fd768c590530e53001ae2 to your computer and use it in GitHub Desktop.
Save dgxo/a811d94e700fd768c590530e53001ae2 to your computer and use it in GitHub Desktop.
Aternos CSS Fixes

how to remove the ads, big red popup and add a nice font on aternos

choose your browser (click): firefox | chrome/edge

I prefer Poppins but if you want a different font then click the dropdown below:

Changing the Font

Custom Font

Go to the following link, but swap out YOURFONTHERE with the Google Font you want to use. Then copy the code under /* latin */ until the empty line. Then swap out the @font-face...} with your clipboard. https://fonts.googleapis.com/css2?family=YOURFONTHERE:wght@400&display=swap

Firefox

  1. Install this custom css extension: CSS Override

  2. Click the extension icon at the top, press OFF, then press Open style editor, copy this code into it and press Save.

/* import the Poppins font */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; /* makes sure it doesn't replace the icons */
}
/* force new font everywhere */
* {
  font-family: Poppins, Play, sans-serif;
}
/* remove ads */
#ad_unit, .responsive-sky-scraper, .server-b-tutorials, .responsive-leaderboard {
  display: none;
}
  1. Disable all adblockers for Aternos (e.g. uBlock, DuckDuckGo Privacy Essentials, Privacy Badger and Firefox's Tracking Protection (shield at left of url bar))

Chrome/Edge

  1. Install this custom css extension: Custom CSS

  2. Click the extension icon at the top, allow permission, then click it again and copy this code into the text box.

/* import the Poppins font */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v20/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; /* makes sure it doesn't replace the icons */
}
/* force new font everywhere */
* {
  font-family: Poppins, Play, sans-serif;
}
/* remove ads */
#ad_unit, .responsive-sky-scraper, .server-b-tutorials, .responsive-leaderboard {
  display: none;
}
  1. Disable all adblockers for Aternos (e.g. uBlock, DuckDuckGo Privacy Essentials, Privacy Badger)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment