Skip to content

Instantly share code, notes, and snippets.

@cvan
Last active April 16, 2019 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvan/d14d65d7b71f4b38157876dbd0939e3f to your computer and use it in GitHub Desktop.
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)
// 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();
// // 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