Skip to content
This repository

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

Closed
roger21 opened this Issue July 03, 2011 · 0 comments

2 participants

roger21 arantius
roger21

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 July 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.