Trying to use Greasemonkey to create a button that can run Javascript. -
Trying to use Greasemonkey to create a button that can run Javascript. -
website i'm on has bunch of chat rooms can accessed via dropdown menu. problem dropdown menu generated via vbscript while buttons javascript. have no problem using net explorer, friend of mine needs utilize these rooms , cannot on mac. i'm trying create greasemonkey script create these buttons elsewhere on page can click on them, have no experience greasemonkey or javascript @ all.
when right click button in ie , take properties code gives me. hope you'd need help, if not please allow me know , i'll seek need.
javascript:openwindow('/portal/chattransfer.aspx? chatroom=attnesting1&url=https://chat02.arise.com/chat/ ','','width=800px,height=600px,status=no,menubar=yes, scrollbars=yes,titlebar=no,resizable=yes,toolbar=no,location=no');
in short...
// create button var btn = document.createelement( 'input' ); with( btn ) { setattribute( 'onclick', 'alert( "you clicked me!" )' ); setattribute( 'value', 'click me!' ); setattribute( 'type', 'button' ); } // append @ end document.getelementsbytagname( 'body' )[ 0 ].appendchild( btn );
this should add together button @ end of page; of course of study have replace alert()
in onclick-attribute desired openwindow()
-function call. , guess have address unsafewindow.openwindow()
.
javascript greasemonkey
Comments
Post a Comment