/** * Content script for FCC CORES (apps.fcc.gov/coresWeb/*) * * Injects a guidance overlay when on the CORES user management pages * to help the client add filings@performancewest.net as an authorized user. */ (function() { 'use strict'; const PW_EMAIL = 'filings@performancewest.net'; // Only inject on relevant pages const url = window.location.href.toLowerCase(); if (!url.includes('coresweb') && !url.includes('cores')) return; // Wait for page to load setTimeout(injectGuidance, 2000); function injectGuidance() { // Look for user management forms or "Add User" buttons const addUserBtn = document.querySelector('input[value*="Add"], button:contains("Add User"), a[href*="addUser"]'); const emailFields = document.querySelectorAll('input[type="text"][name*="email"], input[type="email"]'); // Inject floating helper banner const banner = document.createElement('div'); banner.id = 'pw-cores-helper'; banner.innerHTML = `
Add this email as an authorized user on your FRN:
Click the email to copy. Then paste it into the "Add User" form above.