#!/usr/bin/env python from __future__ import print_function import sys import os import re def append2x(content, dir): header = """/* BEGIN 2X BLOCK -- DO NOT EDIT MANUALLY -- USE 2XIZE */ @media (min-resolution: 1.25dppx) {\n""" footer = "\n}\n" output = "" for line in content.split("\n"): matches = re.match('(.+chrome://zotero/skin/)(.+(?