Skip to content

Instantly share code, notes, and snippets.

@brrd
Last active May 15, 2019 13:35
Show Gist options
  • Save brrd/979482e90645f53bf1afffbb8c1aeee8 to your computer and use it in GitHub Desktop.
Save brrd/979482e90645f53bf1afffbb8c1aeee8 to your computer and use it in GitHub Desktop.
gmail-img-max-width.user.js
// ==UserScript==
// @name gmail-img-max-width
// @namespace http://brrd.fr
// @version 0.1
// @description Fix image max width in gmail
// @author brrd
// @match https://mail.google.com/mail/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
GM_addStyle ( `
img[src^="https://mail.google.com/mail/u"] {
max-width: 100%;
}
` );
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment