Skip to content

Instantly share code, notes, and snippets.

@satyr satyr/obmint.uc.js
Last active Dec 16, 2015

Embed
What would you like to do?
// ==UserScript==
// @name (always) Open Bookmarks in New Tabs
// @compat Firefox 20+
// @author satyr
// @license X
// @include main
// ==/UserScript==
PlacesUIUtils.openNodeWithEvent =
function PUIU_openNodeWithEventInNewTab(node, event, view) {
var where =
PlacesUtils.nodeIsBookmark(node) &&
PlacesUtils.annotations
.itemHasAnnotation(node.itemId, this.LOAD_IN_SIDEBAR_ANNO)
|| node.uri.startsWith('javascript:')
? 'current'
: event.button
? 'tabshifted'
: 'tab'
this._openNodeIn(node, where, view.ownerWindow)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.