☰

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.

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

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==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);
})();