Pigeon Man Pigeon Man

Pigeon Man

Pigeon Man is a superhero who is half pigeon, half human. He's equally attracted to birds and people.

<script> function changethevideo(){ console.log('change vids'); var getthere = document.getElementsByClassName('media-preview-thumbnail'); var getthere = Array.prototype.slice.call(document.getElementsByClassName('media-preview-thumbnail'), 0); if (getthere.length == 9) { var video = ""; getthere[0].outerHTML = video; getthere.shift(); } if (getthere.length == 8) { var video = ""; getthere[0].outerHTML = video; getthere.shift(); } if (getthere.length == 7) { var videotwo = ""; getthere[0].outerHTML = videotwo; getthere.shift(); } if (getthere.length == 6) { var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); } if (getthere.length == 5) { var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); } if (getthere.length == 4) { var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); } if (getthere.length == 3) { var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); } if (getthere.length == 2) { var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); } if (getthere.length == 1) { var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); } else { console.log('finished'); } } function changethegif(){ console.log('change gifs'); var getthere = document.getElementsByClassName('media-preview-thumbnail'); var getthere = Array.prototype.slice.call(getthere, 0); if (getthere.length == 9) { var gif = ""; getthere[0].outerHTML = gif; getthere.shift(); } if (getthere.length == 8) { var gif = ""; getthere[0].outerHTML = gif; getthere.shift(); } if (getthere.length == 7) { var gif2 = ""; getthere[0].outerHTML = gif2; getthere.shift(); } if (getthere.length == 6) { setTimeout(function(){ var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); }, 500); } if (getthere.length == 5) { setTimeout(function(){ var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); }, 500); } if (getthere.length == 4) { setTimeout(function(){ var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); }, 500); } if (getthere.length == 3) { setTimeout(function(){ var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); }, 500); } if (getthere.length == 2) { setTimeout(function(){ var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); }, 500); } if (getthere.length == 1) { setTimeout(function(){ var urlofpic = getthere[0].src; var gifswap = ""; getthere[0].outerHTML = gifswap; getthere.shift(); }, 500); } else { console.log('finished'); } } function addintroandfooter(){ $('.collection-header').hide(); var intromsg = $('.pigeonman_intro_msg'); var footerlogo = $('.funnyordie_comics_logo'); if (intromsg.length && footerlogo.length){ console.log('Already updated'); } else { $('.channel-content').prepend("
"); $('#footer').prepend(""); $('.pigeonman_intro_msg').html(""); $('.funnyordie_comics_logo').html(""); } } function thewholething(){ addintroandfooter(); var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; if ($('#channel-figure:contains("Pigeon Man")').length > 0) { console.log('Pigeon Man') if (width < 400) { console.log('mobile'); var replaceheadgif = document.getElementById('channel-cover-photo'); $('#channel-cover-photo').css({"background-image":"url('http://assets.ordienetworks.com.s3.amazonaws.com/pandw/pigeonman/channel_page/PigeonMan_ChannelHeader.gif')"}); $('#channel-cover-photo').attr('data-srchttp://assets.ordienetworks.com.s3.amazonaws.com/pandw/pigeonman/channel_page/PigeonMan_ChannelHeader.gif'); changethegif(); } else { console.log('non-mobile'); changethevideo(); var replacehead = document.getElementById('channel-cover-photo'); var headvideo = ""; replacehead.innerHTML = headvideo; } } else { console.log('Not Pigeon Man') $('.pigeonman_intro_msg').remove() $('.funnyordie_comics_logo').remove() } } var turbolinks_sucks = function (){ console.log('Turbolinks'); addintroandfooter(); var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; if ($('#channel-figure:contains("Pigeon Man")').length > 0) { if (width < 400) { console.log('mobile'); var replaceheadgif = document.getElementById('channel-cover-photo'); $('#channel-cover-photo').css({"background-image":"url('http://assets.ordienetworks.com.s3.amazonaws.com/pandw/pigeonman/channel_page/PigeonMan_ChannelHeader.gif')"}); $('#channel-cover-photo').attr('data-src','http://assets.ordienetworks.com.s3.amazonaws.com/pandw/pigeonman/channel_page/PigeonMan_ChannelHeader.gif'); changethegif(); } else { console.log('non-mobile'); changethevideo(); var replacehead = document.getElementById('channel-cover-photo'); var headvideo = ""; replacehead.innerHTML = headvideo; } } else { console.log('Not Pigeon Man') $('.pigeonman_intro_msg').remove() $('.funnyordie_comics_logo').remove() } } document.addEventListener("DOMContentLoaded", function() { var images = document.getElementsByClassName('media-preview-thumbnail'); var imageCount = images.length; var imagesLoaded = 0; for(var i=0; i