☰

Sleazy Fork is available in English.

My Site Helper

Adds a simple "Back to top" button on every page you visit.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         My Site Helper
// @namespace    https://afsfireball.com/
// @version      1.0.0
// @description  Adds a simple "Back to top" button on every page you visit.
// @author       afsfirestop
// @match        *://*/*
// @homepageURL  https://afsfireball.com/
// @license      MIT
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    const btn = document.createElement('button');
    btn.textContent = '↑ Top';
    btn.style.cssText =
        'position:fixed;bottom:20px;right:20px;z-index:99999;' +
        'padding:10px 14px;border:none;border-radius:6px;' +
        'background:#2d7ff9;color:#fff;cursor:pointer;font-size:14px;';
    btn.onclick = () => window.scrollTo({ top: 0, behavior: 'smooth' });
    document.body.appendChild(btn);
})();