Skip to content

Instantly share code, notes, and snippets.

@gurdiga
gurdiga / assembla.com.css
Created April 18, 2013 01:57
Personalized Web Options ^https://.*.assembla.com/
.ticket-description, .message-content,
.ticket-comments .comment, #new_flow_body {
width: 42em;
}
.commit-comment-header span {
display: block;
}
@gurdiga
gurdiga / sudval.org.css
Created April 18, 2013 02:00
Personalized Web Options ^http://.*.sudval.org
body {
width: 35em;
margin: 0 auto;
}
@gurdiga
gurdiga / breakout.tld.css
Last active December 16, 2015 08:59
Personalized Web Options ^http://.*breakout.tld
.right-app-top-bar .user-options a span.user-name {
display: inline-block;
max-width: 170px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding-left: 2px;
}
textarea[name=annotation] {
height: 250px;
padding: 5px 7px;
}
#gb,
#sidenav,
#cnt+div,
div[clear]+div,
form[name="add_bkmk_form"] tr:nth-child(1),
@gurdiga
gurdiga / nnm-club.ru.css
Last active December 16, 2015 08:59
Personalized Web Options ^http://nnm-club.ru/
table.header .row2, div#mb_top_space {
display: none;
}
@gurdiga
gurdiga / map.point.md.css
Created April 18, 2013 02:08
Personalized Web Options ^http://map.point.md/
aside.leftSidebar {
padding-top: 85px;
}
div.bannerBlock {
display: none;
}
window.onload = function() {
setTimeout(function() {
console.log(document.forms.add_bkmk_form.annotation);
document.forms.add_bkmk_form.annotation.focus();
}, 100)
};
@gurdiga
gurdiga / Facebook.css
Last active December 17, 2015 13:49
Personalized Web Options UI hack to hide “Recommended pages” and “Facebook © 2013” from the right-side panel. ^https://www.facebook.com/
#pagelet_ego_pane,
#pagelet_ego_pane_w,
#pagelet_rhc_footer,
#u_0_v {
display: none;
}
@gurdiga
gurdiga / handlebars-partial.md
Last active December 23, 2015 21:39
Handlebars to emulate Rails partials with locals

Handlebars to emulate Rails partials with locals

I’ve created a little helper that takes a partial name and a Ruby-like hash of parameters that will be passed into that partial:

Handlebars.registerHelper('include', function(partialName, options) {
  var locals = options.hash,
      context = this;

  // the included partial also inherits the current context’s data

for (var property in context) {

@gurdiga
gurdiga / Kindle Library.html
Created September 30, 2013 06:49
Personalized Web Options for Kindle Library to delete an item with a double click.
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script>
var q = jQuery.noConflict(true);
q(function($) {
$('table#orderList').on('dblclick', 'tr[id~="collapse"]', function() {
var $tr = $(this),
sessionId = document.cookie.split(';')
.map(function(item) { return item.split('=', 2).map(function(token) { return token.toString().trim(); }); })
.filter(function(pair) { return pair[0] == 'session-id'; })[0][1];