Print Waste Minimizer

Minimize print waste, save ink: Amazon, American Eagle, eBay, Macy's, Nordstrom, SmartLabel, Old Navy, Return Saver, UPS, Zappos
Premium users can view and search full source code, and see the source code differences between two versions.
Upgrade to premium
manifest.json
{
  "manifest_version": 2,
  "minimum_chrome_version": "28",
  "default_locale": "en_US",
  "name": "__MSG_extensionName__",
  "short_name": "PWM",
  "description": "__MSG_extensionDescription__",
  "version": "0.8.0",
  "author": "PoziWorld",
  "homepage_url": "https://printwasteminimizer.com/",
  "icons": {
    "16": "global/img/pwm-icon-16.png",
    "48": "global/img/pwm-icon-48.png",
    "128": "global/img/pwm-icon-128.png"
  },
  "permissions": [
    "tabs",
    "*://*.amazon.com/returns/label/",
    "*://*.amazon.com/spr/returns/label/",
    "*://*.amazon.com/gp/rental/your-account/features/list-return-rentals/",
    "*://*.ae.com/myaccount/order-history/return-label",
    "*://*.ebay.at/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.be/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.ca/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.ch/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.co.uk/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.com/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.com.au/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.com.hk/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.com.my/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.com.sg/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.de/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.es/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.fr/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.ie/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.in/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.it/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.nl/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.ph/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.ebay.pl/rtn/*eturn/*tn*rint*hipping*abel*",
    "*://*.pb.com/images/USPS/HTMLFolders/HTML10/",
    "*://*.macys.com/my-orders/returns/*",
    "*://returnscenter.smartlabel.com/v3/*rint*eb*abel.aspx",
    "*://secure.nordstrom.com/*eturns*re*imple.aspx",
    "*://secure-oldnavy.gap.com/profile/returns_label*",
    "*://www.shipmentmanager.com/printweblabel.aspx",
    "*://*.returnsaver.com/returnlabel/*abel*",
    "*://www.ups.com/u.a/L.class?*",
    "*://www.zappos.com/returnLabel?*"
  ],
  "content_scripts": [
    {
      "matches": [
        "*://*.amazon.com/returns/label/*",
        "*://*.amazon.com/spr/returns/label/*"
      ],
      "js": [
        "global/js/pwm.js",
        "modules/com_amazon/js/pwm.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_amazon/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://*.amazon.com/gp/rental/your-account/features/list-return-rentals/*"
      ],
      "js": [
        "global/js/pwm.js",
        "global/js/pwm-toggle.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_amazon/css/textbook-rentals.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://*.ae.com/myaccount/order-history/return-label*"
      ],
      "js": [
        "global/js/pwm.js",
        "global/js/pwm-toggle.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_ae/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://*.ebay.at/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.be/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.ca/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.ch/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.co.uk/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.com/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.com.au/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.com.hk/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.com.my/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.com.sg/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.de/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.es/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.fr/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.ie/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.in/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.it/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.nl/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.ph/rtn/*eturn/*tn*rint*hipping*abel*",
        "*://*.ebay.pl/rtn/*eturn/*tn*rint*hipping*abel*"
      ],
      "js": [
        "global/js/pwm.js",
        "global/js/pwm-toggle.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_ebay/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "all_frames": true,
      "matches": [
        "*://*.pb.com/images/USPS/HTMLFolders/HTML10/*"
      ],
      "js": [
        "global/js/pwm.js",
        "modules/com_pb/js/pwm.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_pb/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://*.macys.com/my-orders/returns/*"
      ],
      "js": [
        "global/js/pwm.js",
        "global/js/pwm-toggle.js",
        "modules/com_macys/js/pwm.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_macys/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://secure.nordstrom.com/*eturns*re*imple.aspx*"
      ],
      "js": [
        "global/js/pwm.js",
        "global/js/pwm-toggle.js",
        "modules/com_nordstrom/js/pwm.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_nordstrom/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://returnscenter.smartlabel.com/v3/*rint*eb*abel.aspx*"
      ],
      "js": [
        "global/js/pwm.js",
        "global/js/pwm-toggle.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_smartlabel/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://secure-oldnavy.gap.com/profile/returns_label*"
      ],
      "js": [
        "global/js/pwm.js",
        "modules/com_gap_secure-oldnavy/js/pwm.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_gap_secure-oldnavy/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://www.shipmentmanager.com/printweblabel.aspx*"
      ],
      "js": [
        "global/js/pwm.js",
        "modules/com_gap_secure-oldnavy/js/pwm.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_gap_secure-oldnavy/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://*.returnsaver.com/*eturn*abel/*abel*"
      ],
      "js": [
        "global/js/pwm.js",
        "modules/com_returnsaver/js/pwm.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_returnsaver/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://www.ups.com/u.a/L.class?*"
      ],
      "js": [
        "global/js/pwm.js",
        "modules/com_ups/js/pwm.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_ups/css/pwm.css"
      ],
      "run_at": "document_end"
    },
    {
      "matches": [
        "*://www.zappos.com/returnLabel?*"
      ],
      "js": [
        "global/js/pwm.js",
        "global/js/pwm-toggle.js"
      ],
      "css": [
        "global/css/pwm.css",
        "modules/com_zappos/css/pwm.css"
      ],
      "run_at": "document_end"
    }
  ],
  "web_accessible_resources": [
    "global/img/*.png",
    "modules/*/js/push-state.js"
  ],
  "update_url": "https://edge.microsoft.com/extensionwebstorebase/v1/crx"
}