I have been trying to move from 'draft" to "unlisted" state for several videos in the content pages. To do this I have changed the config in the script to const VISIBILITY = ‘Unlisted’; // 'Public' / 'Private' / 'Unlisted'. When I paste this in the console, I see an error "Uncaught SyntaxError: Invalid or unexpected token". Please can you advice what needs to be done to fix this.
Hi,
I have been trying to move from 'draft" to "unlisted" state for several videos in the content pages. To do this I have changed the config in the script to const VISIBILITY = ‘Unlisted’; // 'Public' / 'Private' / 'Unlisted'. When I paste this in the console, I see an error "Uncaught SyntaxError: Invalid or unexpected token". Please can you advice what needs to be done to fix this.
Thanks a mill!
Below is the script I've used:
(() => { // ----------------------------------------------------------------- // CONFIG (you're safe to edit this) // ----------------------------------------------------------------- // ~ GLOBAL CONFIG // ----------------------------------------------------------------- const MODE = ‘edit_drafts'; // 'publish_drafts' / 'sort_playlist'; const DEBUG_MODE = true; // true / false, enable for more context // ----------------------------------------------------------------- // ~ PUBLISH CONFIG // ----------------------------------------------------------------- const MADE_FOR_KIDS = false; // true / false; const VISIBILITY = ‘Unlisted’ // 'Public' / 'Private' / 'Unlisted' // ----------------------------------------------------------------- // ~ SORT PLAYLIST CONFIG // ----------------------------------------------------------------- const SORTING_KEY = (one, other) => { return one.name.localeCompare(other.name, undefined, {numeric: true, sensitivity: 'base'}); }; // END OF CONFIG (not safe to edit stuff below) // -----------------------------------------------------------------
})();