Closed Thread Icon

Topic awaiting preservation: GreaseMonkey : site-specific (DHTML) extension for Mozilla (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=24625" title="Pages that link to Topic awaiting preservation: GreaseMonkey : site-specific (DHTML) extension for Mozilla (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: GreaseMonkey : site-specific (DHTML) extension for Mozilla <span class="small">(Page 1 of 1)</span>\

 
poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-08-2005 14:39

Aaron Boodman and David Pullman have released their Greasemonkey FireFox extension that allows to write some site-specific DHTML extensions. That way anybody can fix/add some usability features to any website.

I haven't tried it yet but the possibilities seems truly awesome.

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 01-08-2005 14:53

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

mas
Maniac (V) Mad Librarian

From: the space between us
Insane since: Sep 2002

posted posted 01-08-2005 15:54

does that mean i can finally have my scrolling menu over here at the asylum?

B | T | E | P | L

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-08-2005 15:57

InI: I understand your point, but in that case using a plugin/extension is a little price to pay to let us use the standards to enhance our daily web experience. Since we are sure our scripts will only be executed for us and on our favorite browser, we can use all the standards ( and de facto standards ) it supports, including Xpath, DOM2, XMLHTTP, ...

mas: I don't know what you call "scolling menu", but if it's done in DHTML the answer is : yes!

mas
Maniac (V) Mad Librarian

From: the space between us
Insane since: Sep 2002

posted posted 01-08-2005 16:00

poi: i mean this piece http://www.embege.com/asylum/dropdown.html

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-08-2005 16:06

Oh yes. But since we know the admin of the Asylum and he welcomes our suggestions, it's likely that he'll add this little script to let every inmates enjoy it. Meanwhile you can test it on side with GreaseMonkey.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-08-2005 16:13

no, it doesnt seems as if he'll add it: http://www.ozoneasylum.com/21618

mas
Maniac (V) Mad Librarian

From: the space between us
Insane since: Sep 2002

posted posted 01-08-2005 16:14

poi: mhmm yes but i am afraid it is not possible to give the body a onload function with this extension, and without this, it wont work i guess

(Edited by mas on 01-08-2005 16:14)

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-08-2005 16:31

mas: you don't need the onload event. You can use the onscroll event for that. And if you absolutely want to make the menu "float" smoothly from one position to another you can initialize that process during the first call to the onscroll event then use your setInterval( ... ).

mas
Maniac (V) Mad Librarian

From: the space between us
Insane since: Sep 2002

posted posted 01-08-2005 16:33

yeah, i just figured that out (sorry, i am not the best when it comes to JS)
here is what i have so far, thanks to the help of grumble
(it doesnt work yet)

code:
IE5=NN4=NN6=false
if(document.all)IE5=true
else if(document.layers)NN4=true
else if(document.getElementById)NN6=true

function slide(l) {
document.getElementById('forum_menu_button').style.position = "absolute"
var c=document.getElementById('forum_menu_button');
var m=document.getElementById('forum_menu');
if (IE5) {
yt=document.body.scrollTop+10;
window.status=yt;
} else {
yt=window.scrollY+10;
}
yc=l+Math.round((yt-l)*0.5);
ym=yc+30;
if (IE5) {
c.style.pixelTop=yc;
m.style.pixelTop=ym;
} else {
c.style.top=yc+"px";
m.style.top=ym+"px";
}
setTimeout('slide(yc)',30);
}
document.onload=function() {slide(0)}

Cameron
Paranoid (IV) Inmate

From: Brisbane, Australia
Insane since: Jan 2003

posted posted 01-08-2005 22:29

If you're putting this in a firefox extention that only you use, you don't need the cross browser code. In fact, you could just probably just use DHTML to set it's CSS position to 'fixed' and be done with it. You're using Firefox after all

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-08-2005 22:46

^ good points

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-09-2005 01:00

this does it:

document.getElementById("forum_menu_button").style.position = "fixed"
document.getElementById("forum_menu").style.position = "fixed"

mas
Maniac (V) Mad Librarian

From: the space between us
Insane since: Sep 2002

posted posted 01-09-2005 01:26

this works just fine thanks, GRUMBLE

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 01-09-2005 01:45

Hmm... is there a reason why it grays out "Install User Script..."? How can I create a new script?

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-09-2005 01:49

Iron Wallaby: if you look closely on Using Greasemonkey : Installing Scripts you'll see that to install a script you must either right click on a link pointing to a .user.js file, or if you have that file already open in a tab you can install it via Tools > Install User Script ( which should be accessible only in that case )

Iron Wallaby
Paranoid (IV) Inmate

From: USA
Insane since: May 2004

posted posted 01-09-2005 01:59

I had tried opening script and then going to the menu, but it didn't work. Right clicking a script works, at least. *shrug* Thanks.

[edit: and woo, the scrolling OZONE menu rocks. ]

"Any sufficiently advanced technology is indistinguishable from magic." -- Arthur C. Clarke
"Any sufficiently arcane magic is indistinguishable from technology." -- P. David Lebling

(Edited by Iron Wallaby on 01-09-2005 02:03)

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 01-09-2005 02:06

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-09-2005 03:17

Ok, here comes my first try with this great extension.
I made a suggestion I did in opinion on 2 suggestions comes true. Hope you like it.

mas
Maniac (V) Mad Librarian

From: the space between us
Insane since: Sep 2002

posted posted 01-09-2005 14:34

sweet, poi just installed it, and will keep it for sure

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-09-2005 14:43

Glad you like it.

Notice that it's subject to the bug #8634 : Scripts are not executed for pages loaded in Background Tabs, but I've recently imunized it to the bug #8782 : user scripts executed before onload of background tabs.

Alevice
Paranoid (IV) Inmate

From: Mexico
Insane since: Dec 2002

posted posted 01-09-2005 22:21

Have you realized we can create some sort of "plug-in" series for the asylum, that way we can add more crap to the asylum to our likeness without having to bother TP?

I mean, for sutff that may not be used by at least a large population.

I'd be pretty fun.

__________________________________
Something else

Sexy Demoness cel

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 01-10-2005 11:24

wanna link to that scrolling menu in a .js file mas? Then we can all install it if we so desire


Justice 4 Pat Richard

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-10-2005 11:52

Skaarjj, its just as i posted above, only these two lines:

document.getElementById("forum_menu_button").style.position = "fixed"
document.getElementById("forum_menu").style.position = "fixed"

put them in a js file and apply to that extension thing.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-10-2005 14:01

Alevice: Oh yes I've realized that Honestly my script may be a bit redundant with the SearchEngine plugin made by kuckus ( and still available in Use Firefox' search box to search the Asylum! (and the GN too) ) but I suppose I'm not the only one to switch the the selected search engine as little as possible to keep the Dictionnary or PHP manual.

GRUMBLE: if your alteration of a site is just stylistic, it be cleaner to put it in your userContent.css, no ? at least that's what I did.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-10-2005 21:20

poi, probably yes. i dont really know, cause actually i didnt DO this for myself. i dont use firefox.

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 01-10-2005 23:40

Dear God... why not?


Justice 4 Pat Richard

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-11-2005 14:50

cause opera is better!

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 01-11-2005 22:41

pffffffffffffffffffft... heh

Not gonna get into that debate


Justice 4 Pat Richard

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-12-2005 11:44


neither want i

boogs
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jan 2005

posted posted 01-15-2005 06:35

Hey guys,

haven't been around here in awhile, but I just wanted to take a second to respond to InI's comment:

quote:
plugins = let's break the standards



GM isn't really for you, as a webpage developer, it's for you as a user. I never even considered the usecase of somebody writing specific code on a website to take advantage of GM; I'm not even sure what the advantage could possibly be (though it is possible to do, technically, I guess).

It's more for when the website author makes a mistake, or does something you don't like; you have the power to fix it.

jdunck
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Jan 2005

posted posted 01-21-2005 05:47

The bugs mentioned above have been fixed, btw.

Directory of known scripts here:
http://69.90.152.144/collab/GreaseMonkeyUserScripts

ZOD
Bipolar (III) Inmate

From:
Insane since: Jun 2002

posted posted 01-23-2005 18:51

If you want to change the web pages you visit then get The Proxomitron. It isn't any mere ad/pop-up blocker. You can add/remove or modify any text based data in page which match the regular expressions you create.

FYI Proxo is no longer under development but it was already a mature product at the time its author Scott Lemon passed away.

http://www.proxomitron.info/

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 02-03-2005 18:10

There is one bug with this system that I have found, although I don't know if the bug is with Greasemonkey or poi's search addition that I run. It seems to interfere with javascript based arrays, so that if I try to do anything with the admin console here I get the javascript error 'form[0] has no properties' or somesuch. I'd report it to the developers, but frankly I don't have enough information to go on. All I know is that as soon as I disabled the extension and restarted firefox they all worked again and I could close and move the aforementioned thread.


Justice 4 Pat Richard

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 02-03-2005 18:43

Skaarj: oops, my script inserts a FORM high in the DOM tree, so it takes the position 0 in the document.forms[] collection. Well I could say that it is a little error of conception if the admin of the Asylum tries to access the forms via their index, but it's extremely rare that users alter the DOM of a site so the fault is rather on my side.

The only quick work around is to disable the search script while you're fiddling with admin tasks.

... once I think about it, I could update my user script to avoid completely the problem. When you talk about admin console, you mean http://www.ozoneasylum.com/admin/24625, or there is something else ? If there's more than that, I'll probably need a copy of those pages to fix the user script. Otherwise I'm already working on it



(Edited by poi on 02-03-2005 18:44)

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 02-03-2005 21:54

so..........I appoloigize for having to ask this....but.........where are these scripts installed to? Directory wise that is...

I tried out a few of them (Slashdot recolor for one) that didn't seem to work. Just wanted to have a poke around at the code but I can't find it. I looked at the code and then wanted to change something but didn't know where they were save to. cool stuff though.

Poi: your script works well

Later,

C:\

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 02-04-2005 04:31

The scripts are located in profile_folder/extensions/{e4a8a97b-f2ed-450b-b12d-ee082ba24781}/chrome/greasemonkey/content/scripts

{e4a8a97b-f2ed-450b-b12d-ee082ba24781} is the id of the GreaseMonkey extension, then the scripts are renamed with a numerical id, but you can find them by looking at the config.xml file.

I've found this info in the mailing list of GreaseMonkey.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 02-04-2005 05:11

Tada! the Search the Asylum | v1.01 user script is available. It seems to work fine with the admin console. At least there's no JS error in the console and the form is submitted correctly.



(Edited by poi on 02-04-2005 05:12)

« BackwardsOnwards »

Show Forum Drop Down Menu