NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Twitter gallery fix // @namespace http://tampermonkey.net/ // @version 0.3 // @description Make Twitters gallery functions a little easier. // @author Esoliken // @match https://pbs.twimg.com/media/* // @match https://twitter.com/* // // @license MIT // @grant none // ==/UserScript== (function() { 'use strict'; var url = window.location.href; if(url.indexOf(":large") != -1){ url = url.substring(0,url.indexOf(":large")); window.location = url; } })(); $(document).ready(function(){ var url = window.location.href; if(url.indexOf("https://twitter.com/") == 0){ $("div.GalleryNav--next").css("width", "33%"); } var foo = setInterval(function(){ //There's an easier way to do this, but this is an error free method for now. if($("img.media-image").prop('src')){ var url = $("img.media-image").prop('src'); if(url.indexOf(":large") != -1){ $("img.media-image").prop('src',url.substring(0,url.indexOf(":large"))); } } },500); });