GM 0.9.6 : GM_openInTab according to user's prefs #1370

Closed
roger21 opened this Issue Jul 3, 2011 · 0 comments

Projects

None yet

2 participants

@roger21
roger21 commented Jul 3, 2011

hi,
please do something about this: GM_openInTab doesn't follow the user's prefs about the position of the new tabs
here is a possible fix (it works for me ff 3.6.18 and ff5)

replace line 292 in components/greasemonkey.js :

browser.moveTabTo(newTab, currentTab._tPos + 1);

by :

var afterCurrent = Cc["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService)
.getBranch("browser.tabs.").getBoolPref("insertRelatedAfterCurrent");

if(afterCurrent)
browser.moveTabTo(newTab, currentTab._tPos + 1);

or something that do the same

thanks

@arantius arantius closed this in 9eec712 Jul 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment