Created
March 16, 2016 19:28
-
-
Save jonasbits/7216b05dd788e5760094 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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