Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - firefox extension help
  
User name:
Password:
Reply:
 

UserPost
Gavin
Posts: 673/799
Originally posted by R2H2
How do you make extensions anyway? I can think of a few I'd like to see.


Originally posted by Parasyte
Extentions are written in Javascript and XUL (for the most part) and from what I hear it is very easy to do.


Parasyte got it exactly correct. The roachfiend extensions article is what i used to learn about firefox extension, and i was very suprised to find out incredibly easy they are to make. Until two weeks ago i had never used javascript and just found the roachfiend article a few days ago... just to give you an idea how low the learning curve is.

also, as to answer my first quetsion, i found the solution:

window.addEventListener('popupshowing' , SuppressPopup , true);


...
//function: if the navigation effect has just happened, do not displaypopup menu
function SuppressPopup(event)
{
if (DoNavigate == true)
{
event.preventDefault();
}


DoNavigate = false;
}





also, i decided to make a quick Wikipedia extension because at around 6:00 AM-ish Dan recommended it to me.. Atma recommended the first extension, which i've come to find has already been implimented a few other times. That doesn't change much, however, as these were mainly to be for learning purposes.

the extensinos are here:
rocker navigation
quick wikie search

if anyone tries them out and has any bug reporst, concerns, improvements, comments.. well, it would be appreciated!

thanks again to Atma and Dan for the ideas, because i suck at being original.
Parasyte
Posts: 495/514
Extentions are written in Javascript and XUL (for the most part) and from what I hear it is very easy to do.
HyperLamer
Posts: 4328/8210
How do you make extensions anyway? I can think of a few I'd like to see.
windwaker
Posts: 1484/1797
Originally posted by Gavin
basically it runs off of the left and right mouse buttons, holding both buttons at the same time jumps either forward or backward, and which direction is dictated by which mouse button was pressed first. pressing left first, then the right mouse button navigates forward, and the reverse is true for pressing right first. i think it was said that this is a feature from Opera? I don't use opera, so i wouldn't know.


That's also a Mouse Gestures feature that I use.
Gavin
Posts: 671/799
So I decided that it was high time I started working on a small fun project in between my large personal web project and another project i was doing for actual pay.. I decided yesterday that I should get into making FireFox extensions, and i'm soo close to completing my first one, a simple navigational extension that someone recommended i make in irc when i couldn't think of anything original myself.

basically it runs off of the left and right mouse buttons, holding both buttons at the same time jumps either forward or backward, and which direction is dictated by which mouse button was pressed first. pressing left first, then the right mouse button navigates forward, and the reverse is true for pressing right first. i think it was said that this is a feature from Opera? I don't use opera, so i wouldn't know.

anyway, to get to the point of the post: what i'm really looking for is a way to selectively disable the right-click menu. the rest of the extension works great..except when you release the right-click button and the menu pops up. it makes the whole thing suck total balls.

and i'm not talking your grandma's "alert('right-click is disabled!')" javascript, hopefully something a little more sophisticated and discrete . After all, the point is to make it a natural, uninterrupted process that doesn't suck balls. alert isn't called for in such a delicate situation.

anyway, any help would be greatly appreciated.
Acmlm's Board - I2 Archive - Programming - firefox extension help


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.010 seconds.