Skip to content

Instantly share code, notes, and snippets.

/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
addKiller("YouTube", {
"processItag": function(itag) {
if(itag === "38") return {"format": "4K MP4", "height": 2304, "isNative": true};
if(itag === "37") return {"format": "1080p MP4", "height": 1080, "isNative": true};
if(itag === "22") return {"format": "720p MP4", "height": 720, "isNative": true};
if(itag === "18") return {"format": "360p MP4", "height": 360, "isNative": true};
if(canPlayFLV) {
if(itag === "35") return {"format": "480p FLV", "height": 480, "isNative": false};
if(itag === "5") return {"format": "240p FLV", "height": 240, "isNative": false};
// ВКонтакте killer (2012-08-13)
addKiller("ВКонтакте", {
"canKill": function(data) {
return data.src.indexOf("vkontakte.ru/swf/") !== -1 || data.src.indexOf("vk.com/swf/") !== -1;
},
"process": function(data, callback) {
var flashvars = parseFlashVariables(data.params.flashvars);