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 | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Gavin

Fuzzy
Rhinoceruses don't play games. They fucking charge your ass.
Level: 43

Posts: 671/799
EXP: 551711
For next: 13335

Since: 03-15-04
From: IL, USA

Since last post: 13 hours
Last activity: 13 hours
Posted on 05-03-05 02:59 PM Link | Quote
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.
windwaker

Ball and Chain Trooper
WHY ALL THE MAYONNAISE HATE
Level: 61

Posts: 1484/1797
EXP: 1860597
For next: 15999

Since: 03-15-04

Since last post: 4 days
Last activity: 6 days
Posted on 05-04-05 04:32 AM Link | Quote
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.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 4328/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 05-04-05 07:00 AM Link | Quote
How do you make extensions anyway? I can think of a few I'd like to see.
Parasyte

Bullet Bill
Level: 35

Posts: 495/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 05-04-05 11:42 AM Link | Quote
Extentions are written in Javascript and XUL (for the most part) and from what I hear it is very easy to do.


(edited by Parasyte on 05-03-05 06:43 PM)
Gavin

Fuzzy
Rhinoceruses don't play games. They fucking charge your ass.
Level: 43

Posts: 673/799
EXP: 551711
For next: 13335

Since: 03-15-04
From: IL, USA

Since last post: 13 hours
Last activity: 13 hours
Posted on 05-05-05 07:04 AM Link | Quote
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.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
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.006 seconds.