Skip to content

Instantly share code, notes, and snippets.

View nbriz's full-sized avatar

Nick Briz nbriz

View GitHub Profile
@nbriz
nbriz / gist:9601714
Last active August 29, 2015 13:57
mobile/desktop index redirect php
<?php
if( preg_match('/iphone|android/i', $_SERVER['HTTP_USER_AGENT']) ) {
include('index-mobile.html');
}
else {
include('index-desktop.html');
}
?>
@nbriz
nbriz / gist:c488f979faf48d4834f2
Last active August 29, 2015 14:03
clickAllUntag.js
$( "input[name|='untag']" ).click();
$('span').each(function( i ) {
if( $(this).html() == 'Leave Group'){
$(this).click();
}
});
@nbriz
nbriz / gist:618d0c8e60154ec1c3bc
Created June 30, 2014 06:06
leaveGroupConfirm.js
$('button').each(function( i ) {
if( $(this).html() == 'Leave Group'){ $(this).click(); }
});
@nbriz
nbriz / gist:144b81a8e97f88f3fc69
Last active August 29, 2015 14:03
loadActivityMen.js
var edit = $('.uiPopover > a');
for (var i = 0; i < edit.length; i++) { edit[i].click(); };
@nbriz
nbriz / gist:973c46f7bb60c919da03
Last active August 29, 2015 14:03
removePost.js
$('span').each(function( i ) {
if( $(this).html() == 'Report'){ $(this).click(); }
if( $(this).html() == 'Report/Remove Tag'){ $(this).click(); }
if( $(this).html() == 'Remove Tag...'){ $(this).click(); }
if( $(this).html() == 'Delete This Photo'){ $(this).click(); }
if( $(this).html() == 'Delete'){ $(this).click(); }
if( $(this).html() == 'Delete...'){ $(this).click(); }
if( $(this).html() == 'Unlike'){ $(this).click(); }
});
@nbriz
nbriz / gist:0eb08d7dcddf687ea749
Last active August 29, 2015 14:03
confirmDiabox.js
$('button').each(function( i ) {
if( $(this).html() == 'Continue'){ $(this).click(); }
if( $(this).html() == 'Confirm'){ $(this).click(); }
if( $(this).html() == 'Delete Post'){ $(this).click(); }
if( $(this).html() == 'Remove Tag'){ $(this).click(); }
if( $(this).html() == 'Remove Search'){ $(this).click(); }
if( $(this).html() == 'Okay'){ $(this).click(); }
});
$('span').each(function( i ) {
if( $(this).html() == 'Close'){ $(this).click(); }
$('._4-hy').css('background-color','rgba(0, 0, 0, 0)');
{
"boxes" : [ {
"box" : {
"maxclass" : "comment",
"text" : "WARNING: THIS IS VERY GLITCHY",
"frgb" : 0.0,
"numinlets" : 1,
"fontsize" : 12.0,
"numoutlets" : 0,
"patching_rect" : [ 464.0, 344.0, 207.0, 20.0 ],
function unfriend() {
window.scrollBy(0,113);
setTimeout('unfriend()',2800);
}; unfriend();