// ==UserScript== // @name Twitter Zoom Cursor // @namespace https://github.com/chocolateboy/userscripts // @version 0.0.1 // @description Distinguish between images and links on Twitter // @author chocolateboy // @license GPL: http://www.gnu.org/copyleft/gpl.html // @grant GM_addStyle // @run-at document-start // @match https://twitter.com/* // @match https://mobile.twitter.com/* // @downloadURL none // ==/UserScript== (function() { let css = ` a[role="link"][href^="/"][href$="/photo/1"], a[role="link"][href^="/"][href$="/photo/2"], a[role="link"][href^="/"][href$="/photo/3"], a[role="link"][href^="/"][href$="/photo/4"] { cursor: zoom-in !important; } `; if (typeof GM_addStyle !== "undefined") { GM_addStyle(css); } else { const styleNode = document.createElement("style"); styleNode.appendChild(document.createTextNode(css)); (document.querySelector("head") || document.documentElement).appendChild(styleNode); } })();