Skip to content

About

Shrinks the huge [⌃ Go Up] sidebar on telegram blog and documentation pages

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Telegram.org - Go Up (BackToTop) Button Fix

A lightweight Tampermonkey / Violentmonkey userscript that fixes and shrinks the excessively large, misconfigured [⌃ Go Up] sidebar button layout on Telegram's blog and core documentation pages.

Preview

Preview.mp4

The Problem

By default, the entire vertical wrap container (a.back_to_top_wrap) on Telegram's site acts as a giant clickable button stretching up the screen. This causes accidental clicks, unwanted scrolling behavior, and overrides the native cursor: pointer logic across a massive blank zone of the page layout.

The Fix

This script restructures the layout interaction dynamically:

  • Restores cursor: default to the wrapping container.
  • Keeps the clickable cursor: pointer area constrained strictly to the actual [⌃ Go Up] inner button.
  • Re-routes the backToTopGo() onclick execution trigger safely from the macro-wrapper to the inner button block.
  • Actively watches the page using a MutationObserver and periodic intervals to prevent the website from overriding or breaking the fix during dynamic page loads.

Installation

Prerequisites

First, make sure you have a userscript manager extension installed in your browser:

How to Install

  1. Click on the telegram-go-up-fix.user.js file inside this repository.
  2. Your userscript manager extension will automatically open and prompt you with an Install button.
  3. Click install and refresh any open Telegram pages!

Supported Domains

The script activates on the following URLs:

  • https://telegram.org/*
  • https://core.telegram.org/*

License

This project is licensed under the WTFPL (Do What The Fuck You Want To Public License).

        DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
                    Version 2, December 2004 

 Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> 

 Everyone is permitted to copy and distribute verbatim or modified 
 copies of this license document, and changing it is allowed as long 
 as the name is changed. 

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 

  0. You just DO WHAT THE FUCK YOU WANT TO.

About

Shrinks the huge [⌃ Go Up] sidebar on telegram blog and documentation pages

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages