• Stefy Spora's avatar
    Fix story-data retrieval by fetching raw HTML from GET request · d1311178
    Stefy Spora authored
    - Update getCurrentMediaData function in content.js to fetch raw HTML from current page URL
    - Parse story-data script tag from raw HTML response instead of relying on DOM
    - Update background.js executePrivacyUpdateFromContext to use same approach
    - Handle cases where story-data script is removed by JavaScript after page load
    - Add proper error handling and fallback to default values
    - Maintain existing functionality while fixing story-data retrieval issue
    - Update bulk processing functions to use new story-data retrieval method
    d1311178
content.js 21.5 KB