Skip to content

Instantly share code, notes, and snippets.

@jonasbits
Created March 16, 2016 19:28
Show Gist options
  • Save jonasbits/7216b05dd788e5760094 to your computer and use it in GitHub Desktop.
Save jonasbits/7216b05dd788e5760094 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Coop.se not intended - postnummer 41705 - better print
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Jonas Östman
// @match https://www.coop.se/handla-online/varukorg/
// @grant none
// ==/UserScript==
/* jshint -W097 */
'use strict';
// Turn bad print to a little better print preview
var betterPrint = document.getElementsByName("mayNotReplace").length;
for (index = 0; index < betterPrint; ++index) {
document.getElementsByName("mayNotReplace")[index].parentElement.className += " u-printHide";
}
// If you go yourself then the brand does not matter as much
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment