Last active
April 16, 2019 02:52
-
-
Save cvan/d14d65d7b71f4b38157876dbd0939e3f to your computer and use it in GitHub Desktop.
automatically add a Vimeo video to your Vimeo channel playlist (JavaScript browser code snippet)
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
// 1. Ensure you are signed in (if not, visit https://vimeo.com/log_in). | |
// 2. Set `VIMEO_CHANNEL_ID` below to the channel ID corresponding to the channel you want to add the video to. | |
// The channel ID appears at the end of the channel URL (e.g., https://vimeo.com/channels/1434599). | |
// See the other script for a snippet to run to navigate to your list of channels. | |
// 3. If you're logged in, from a video page on Vimeo, enter this in the Console from your browser's Dev Tools: | |
VIMEO_CHANNEL_ID = 1434599; document.querySelector('.collections-button').click(); setTimeout(() => { document.querySelector(`input[id="${VIMEO_CHANNEL_ID}"]`).checked = true; }, 500); window.close(); |
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
// // If you're not first logged in to Vimeo … | |
// window.location.href = `https://vimeo.com/log_in`; | |
// If you're logged in, from any page on Vimeo, enter this in the Console from your browser's Dev Tools: | |
window.location.href = `${document.querySelector('.topnav_menu_avatar > a').href}/channels/moderated#browser`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment