Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.63 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.63 KB

Tab Titles for Ad Manager Mozilla Add-on Standard - JavaScript Style Guide GitHub

Google Ad Manager (DFP) does not set meaningful tab titles by default, which can get confusing with a high number of tabs open. This is a simple extension to fix that.

Before After
Before: The tab title conveys no meaning. Which campaign am I even looking at? After: The tab title is set to the order’s name. I can easily find it again, even if I have multiple tabs open.

Works for the following objects:

  • Orders
  • Line items
  • Creatives
  • Reports

Installation

Extension (Firefox)

  1. Install from Firefox Add-Ons.

Userscript (all browsers)

  1. Install a userscript manager such as Violentmonkey (open-source) or Tampermonkey.
  2. Open the userscript code.
  3. Your userscript manager should prompt you to install. Accept.

Considerations

Google Ad Manager does not expose a clean way to detect page changes or object changes. Not even the hashchange event fires consistently. I did my best to detect all object changes and set the title accordingly while keeping the extension lightweight.