Created
March 22, 2013 01:00
-
-
Save shakefu/5218159 to your computer and use it in GitHub Desktop.
Make Reddit Better
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
javascript:var site = $('#siteTable').css('width', '25%');var body = $('body').empty().append(site).prepend('<div id="link"></div'); var link = $('#link').css({position: 'fixed', right: '0px', height: $(window).height(), width: '75%', overflow: 'auto' }).append($('<iframe id="frame">').css({height: $(window).height() + 260, width: '100%'})); var clicked = $('a.thumbnail,a.title').click(function(){ var href = $(this).attr('href'); $('#frame').attr('src', href); if (href.indexOf('qkme') >= 0 || href.indexOf('quickmeme') >= 0){ console.log("Quickmeme"); $('#link').scrollTop(275); } else { $('#link').scrollTop(0); } return false; }); var media = $('.expando').css({position: 'absolute', 'z-index': 100000}); | |
var site = $('#siteTable').css('width', '25%'); | |
var body = $('body').empty().append(site).prepend('<div id="link"></div'); | |
var link = $('#link').css({ | |
position: 'fixed', | |
right: '0px', | |
height: $(window).height(), | |
width: '75%', | |
overflow: 'auto' | |
}).append($('<iframe id="frame">').css({ | |
height: $(window).height() + 260, | |
width: '100%'})); | |
var clicked = $('a.thumbnail,a.title').click(function(){ | |
var href = $(this).attr('href'); | |
$('#frame').attr('src', href); | |
if (href.indexOf('qkme') >= 0 || href.indexOf('quickmeme') >= 0){ | |
$('#link').scrollTop(275); | |
} else { $('#link').scrollTop(0); } | |
return false; | |
}); | |
var media = $('.expando').css({ | |
position: 'absolute', | |
'z-index': 100000}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment