// ==UserScript== // @name editorify // @namespace http://twitter.com/cvsilly_ // @version v1.1 // @description you just lost the game // @author cv // @match *://x.com/* // @match *://twitter.com/* // @icon https://files.catbox.moe/2s6rw9.png // @grant none // @license Unlicense // @downloadURL https://update.greasyfork.icu/scripts/506298/editorify.user.js // @updateURL https://update.greasyfork.icu/scripts/506298/editorify.meta.js // ==/UserScript== (function() { 'use strict'; const loadwait = setInterval(() => { const element = document.querySelector('div.r-u8s1d.r-zchlnj.r-ipm5af[aria-label="Opens profile photo"]'); if (element) { loadstuff(); clearInterval(loadwait); } }, 100); function loadstuff() { const logo = document.querySelector('aside.css-175oi2r[aria-label="Who to follow"]'); const thefunny = document.createElement('audio'); const savepfp = document.querySelector('img[alt="Opens profile photo"]').src; var replacepfp = document.querySelector('div.r-u8s1d.r-zchlnj.r-ipm5af[aria-label="Opens profile photo"]'); logo.innerHTML = `

You might like

`; thefunny.innerHTML = ``; console.log(logo); console.log(thefunny); console.log("[!] if either of these is set to null then your twitter is broken.."); logo.addEventListener('mouseenter', () => {thefunny.play(); document.getElementById("liketitle").textContent = "You will like"; replacepfp.innerHTML = ``}); logo.addEventListener('mouseleave', () => {thefunny.pause(); document.getElementById("liketitle").textContent = "You might like"; replacepfp.innerHTML = `
`}); }})();