Hide plugins for network

<?php

public function hide_plugins(){
global $current_blog;
if($current_blog->blog_id != 1){?>
<style type="text/css">
#wordpress-database-backup{display:none}
</style>
<?php
}
}
add_action('admin_head','hide_plugins');

?>

Disable form submit on enter

<form action="sent.asp" method="post" onkeypress="return disableEnterKey(event);">

<script language="JavaScript">
function disableEnterKey(e)
{
var key;

if(window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox

if(key == 13)
return false;
else
return true;
}
</script>

Get Excerpt by ID

<?php

function hyp_excerpt_by_id($post,$length = 10,$tags_to_keep = '',$extra = '&hellip;'){
if(is_int($post)) $post = get_post($post);
elseif(!is_object($post)) return false;
if(has_excerpt($post->ID)) return $post->post_excerpt;
else $the_excerpt = $post->post_content;
$the_excerpt = strip_shortcodes(strip_tags($the_excerpt), $tags_to_keep);
$the_excerpt = preg_split('/b/', $the_excerpt, $length * 2+1);
$excerpt_waste = array_pop($the_excerpt);
$the_excerpt = implode($the_excerpt);
$the_excerpt .= $extra;
return $the_excerpt;
}

?>

Social CSS

#content #social .social-nav li a,#content #social .social-nav,#content #social,#content #social .social-nav .social-current-tab{background:none}
#content #social #reply-title,#content #social #reply-title span{background:none; padding:0}
#content #social input.social-input,#content #social .social-select{padding:0}
#content #social input#submit{padding:2px 13px}