Skip to content

Instantly share code, notes, and snippets.

@gurdiga
Created April 18, 2013 02:09
Show Gist options
  • Save gurdiga/5409435 to your computer and use it in GitHub Desktop.
Save gurdiga/5409435 to your computer and use it in GitHub Desktop.
Personalized Web Options ^https://www.google.com/bookmarks/
textarea[name=annotation] {
height: 250px;
padding: 5px 7px;
}
#gb,
#sidenav,
#cnt+div,
div[clear]+div,
form[name="add_bkmk_form"] tr:nth-child(1),
form[name="add_bkmk_form"] tr:nth-child(2),
form[name="add_bkmk_form"] tr:nth-child(7),
form[id^=bkmk_form_] tr:nth-child(3),
form[id^=bkmk_form_] tr:nth-child(4),
div[style="text-align: center;"],
#search table:nth-child(3) td[nowrap],
div.kd-buttonbar[style="float:left"],
a.kd-button:first-child /*cancel button in the new bookmark dialog */ {
display: none;
}
form[name="add_bkmk_form"] td {
vertical-align: top !important;
}
form[name="add_bkmk_form"] td[style="vertical-align:middle"] {
font-weight: bold;
}
var forEach = Array.prototype.forEach;
forEach.call(document.querySelectorAll('textarea.areastyled'), function(textarea) {
textarea.value = textarea.value.replace(/ /g, '\n');
});
forEach.call(document.querySelectorAll('span[id^=bkmk_text_] a:first-of-type'), function(a) {
var i = a.getAttribute('onclick').match(/'(\d+)'/)[1];
a.addEventListener("click", function() {
document.querySelector('#bkmk_notes_' + i).focus();
}, false);
});
forEach.call(document.querySelectorAll('a[id^=bkmk_href_]'), function(a) {
a .target = "_blank";
});
document.querySelector('.kd-button-submit').setAttribute('tabindex', 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment