Skip to content

Instantly share code, notes, and snippets.

@cyress
cyress / moviepilot-export-list-as-csv.js
Last active October 31, 2021 13:31
Exports your own movie lists from Moviepilot as CSV file
/*
* Moviepilot list exporter
* e.g. https://www.moviepilot.de/liste/listname-username
*
* 1. Open your list to export in the browser
* 2. Open the Console in the browsers DevTools
* 3. Copy and paste this script in the console and run it
*/
const movies = [['Title', 'Year', 'German title']];
if (!("console" in window) || !("firebug" in console)){
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group"
, "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; ++i){
window.console[names[i]] = function(input){
if (!document.getElementById('crossConsoleData')){
var ccRedQuad = '<div id="crossConsoleRedQuad" style="position: absolute; bottom: 0; left: 0; width: 20px; height: 20px; margin: 10px; background-color: #d51212; border: 1px solid #000;" onclick="document.getElementById(\'crossConsoleData\').style.display=\'block\'; document.getElementById(\'crossConsoleCloser\').style.display=\'block\';"></div>';
var ccData = '<textarea id="crossConsoleData" style="opacity: 0.9; filter:alpha(opacity=90); display: none; clear: both; position: absolute; left: 0px; bottom: 0px; width: 100%; height: 300px; border: 1px solid #000; background-color: #f3f2f2; z-index: