! Stylus Wider Leaderboard CSS Guide (Viewing Experience Improvement)
Guias
/
! Stylus Wider Leaderboard CSS Guide (Viewing Experience Improvement)
Atualizado 1 year ago por Solderq35

This guide is geared for PC browsers (it may work on other browser types/ platforms, but may need tweaks). Tested in Google Chrome browser.

The purpose of this CSS script to expand the leaderboard to be wider for a better viewing experience. This CSS script will only affect Hitman 2 Category Extensions leaderboard, assuming you follow the instructions below carefully.

  1. Install Stylus here by selecting "Add to Chrome": https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne?hl=en

  2. It may be helpful now to pin Stylus to Chrome taskbar so you can more easily access it for the next steps. Example

  3. Go to https://www.speedrun.com/hitman_2_extensions. Click on the Stylus icon in taskbar, then "this URL", as shown here: Example

  4. You will be redirected to a Stylus page where you can add CSS code: Example

  5. Copy and paste the code from here into the Stylus page: https://gist.githubusercontent.com/solderq35/28a8dfeb75ab0d86e9a2edefad24f08d/raw You may need to change the zoom value in "body.dark .maincontent" to suit your preferences.

  6. You can edit the style's name, if you wish. Then, click on "Save". You are now done! Example

  7. You can turn the custom CSS on and off at any moment, by clicking on the extension and checking/ unchecking the script. Example

  8. If you wish to customize this CSS further, you can do so by redoing step 5-6, and editing the code to your liking. The code has been commented to show which parts are necessary for wider leaderboards and which parts are more subjective.

Tips for getting started:

Right click -> Inspect Element on browser page of the leaderboard page you wish to edit the look of, then go to the Styles tab in the Inspect Element page, to see which styles you need to edit to affect the website elements shown on screen. Example

Basic CSS tutorials: https://www.w3schools.com/css/