This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Select all elements with an ID that starts with 'ot-header-id-' | |
onetrust_id_elements = document.querySelectorAll('*[id^="ot-header-id-"]'); | |
success = true; | |
categories = {} // Map OneTrust ID to category name (e.g. 1: "Strictly Necessary Cookies") | |
onetrust_id_elements.forEach(function (element) { | |
let onetrust_id = element.id.split('ot-header-id-')[1]; // get the ID after the prefix | |
let category = element.innerText; | |
// Check for conflicts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mv -v ~/Library/Application\ Support/.lpxuserdata ~/.Trash |