[Dragtotab] MileWideBack - close tab when there is no back history
Tom Kennedy
creativetom2001 at yahoo.com
Mon Oct 30 17:21:34 PST 2006
I love MileWideBack, thank you.
I used to have the Back Is Close extension installed also, which meant that if I click the edge and the tab has no back history, the tab will close.
The problem is that Back Is Close has not been updated to Firefox 2.0.
So I figured out how to put that feature into MileWideBack, and it works.
Please consider adding this feature, to make it easy for others also.
By the way, I wrote two extensions myself: Addictive Typing Lessons, and Numpad Typing Drills.
Below is the code to add the feature:
onClick: function(event) {
if(event.button == 0) {
if(gBrowser.canGoBack) {
MileWideBack.left(event);
}
else {
gBrowser.removeCurrentTab();
}
}
---------------------------------
Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/dragtotab/attachments/20061030/c26a429f/attachment.html
More information about the Dragtotab
mailing list