Last active
March 2, 2026 04:04
-
-
Save ravarcheon/606b641df4ade3642fb01bec0950c7c0 to your computer and use it in GitHub Desktop.
the horse that blocks your screen after a 2 minutes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name the horse that stands in your way | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2026-03-01 | |
| // @description no more than 2 minutes of twitter. the first minute is a clear view, the second minute is where the horse slowly fades in. third minute and beyond there is nothing to see except horse | |
| // @author You | |
| // @match http*://*.x.com/* | |
| // @match http*://*.instagram.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=x.com | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| function map(x, a, b, c, d) { | |
| return ((x - a) / (b - a)) * (d - c) + c; | |
| } | |
| const horseContainer = document.createElement("div"); | |
| horseContainer.style.cssText = | |
| `position:fixed;` + | |
| `top:0;` + | |
| `left:0;` + | |
| `width:100vw;` + | |
| `pointer-events:none;` + | |
| `height:100vh;`; | |
| const horseImage = document.createElement("img"); | |
| horseImage.style.cssText = | |
| `width:100%;` + | |
| `opacity:0;` + | |
| `z-index:2147483647;` + | |
| `height:100%;`; | |
| horseImage.src = `data:image/webp;base64,UklGRqYEAABXRUJQVlA4IJoEAACQKACdASq4ALgAPx2AtFUtJ7AxrDIL8jAjiWctlrJe3MpDfmZr5mbZEGvmFlYzPwsqtlrpWrYmxCREt0Z32pTr5VoqJsfZMWovL7fbb/1QPYV+n1yPIYVPmhFrk10Xk4hhnklTQph/tbHe3wOjNPDaRwNHjuDNCx8J4/odMB15eW8x0ikImx7GBWoRhfPnTvU1zfgB1VeuaJVh5cgH4plvC2DibTXvz56bXEvs3KLMN6vAzngG2V4ZzdMxSzhv34gy9J2XDoZidRAKOgD9Y7Tnr0d5yqdTBA8dEJuYvliFH1AVgse2IWpwszEjxreAqV+0k4H8sBeAhnf6oO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yZuVZLOOMA9OrFwg47JwSmJj0Hriiqunk/6mbXX31EJznrKwqyfQMn2qySFavugYPm0gAJUQevrUM4ueMZcy6Ay0XS9dwhnzjD76X2QqbOsPm0/YYKgn86FZP5Z049llgIrXi35Y5kJq+KfWaoa4pi7AAAAAA==`; | |
| let horsepacity = 0; | |
| document.body.appendChild(horseContainer); | |
| horseContainer.appendChild(horseImage); | |
| let horseRaf; | |
| function horseDo() { | |
| horsepacity = Math.min(Math.max(0, map(performance.now(), 60_000, 120_000, 0, 1)), 1); // the 60000 and 120000 are the times when the horse goes from 0 to 1 opacity, change this if you want a shorter time or a longer time or whatever | |
| horseImage.style.opacity = horsepacity; | |
| if (horseRaf) { | |
| cancelAnimationFrame(horseRaf); | |
| } | |
| horseRaf = requestAnimationFrame(horseDo); | |
| } | |
| horseDo(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you should move the
z-index: 2147483647 !important;to the container so that it covers any reels ur watching from dms as well, rn the horse shows under the popup reel