[0.3.3] Some client-side Shoutbox improvements. (Firefox only!) - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: General (/forumdisplay.php?fid=11) +---- Forum: Forum & Website (/forumdisplay.php?fid=13) +----- Thread: [0.3.3] Some client-side Shoutbox improvements. (Firefox only!) (/showthread.php?tid=72620) [0.3.3] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-13-2007 at 03:57 PM
* the DtTvB is not sure whether this forum is the right place to post or not. code: 0.3.1 Download the userscript (0.3.1). Changelog for 0.3.1: - Some commands will be sent using a standard way. For example, /theme. - The menu popup should disappear when you click somewhere else. [size=1]Now the size of the script gets to 15kb with 672 lines of code with more features... Note: Please uninstall the older versions first before installing 0.3.0. Changelog: - When you click on a user's name, a popup menu will appear and let you quote, PM, or view the profile. - Quick texts!! Screenshots: [/size] 0.2.1 (0.2.0 users, please redownload!) Download the userscript (0.2.1). Note: To toggle auto-refresh in this version, just click the old autorefresh button to turn it on (). Or it won't refresh anything. Changelog: - Fixed message sending bug where + is treated as a space (0.2.1) - Used new way of parsing HTML. Now it uses range.createContextualFragment - Uses XMLHttpRequest to send messages. - More comments. - Toasts! Now, toasts will pop-up when a user comes in to the shout box or exits. Preview: 0.1.2 Download the userscript (0.1.2). Note: To toggle auto-refresh in this version, just click the old autorefresh button to turn it on (). Or it won't refresh anything. Changelog: - Some fixes/improvements, thanks to WDZ. - Added comments - Changed the updating method. Won't affect the message entry box in any way. 0.1.0 Download the userscript. Important! You need to turn off the original Auto-Refresh feature of the shoutbox before installation (make sure that the autorefresh button at the bottom is grayed like this: ), because this userscript includes the better version of the autorefresh. This userscript makes following changes to the shoutbox:
RE: Some client-side Shoutbox improvements. (Firefox only!) by John Anderton on 03-13-2007 at 04:02 PM
Hmmm I may be wrong but isn't something like this already made by dt about a year and a half ago? RE: Some client-side Shoutbox improvements. (Firefox only!) by MeEtc on 03-13-2007 at 04:09 PM http://svn.thedt.net slash something, but the site seems to be missing ATM... RE: RE: Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-13-2007 at 04:20 PM
quote: I don't know. I am too new to this forum! quote: This userscript uses many things that IE doesn't support. - Well, let's see... First, I used window.XMLHttpRequest, which will not work only on IE. (In other browsers, it works) - It also uses selectionStart and selectionEnd, that is not compatible with IE also. It works on Firefox and Opera 8+ [source]. RE: Some client-side Shoutbox improvements. (Firefox only!) by haydos on 03-13-2007 at 06:07 PM I'll definitely use it, dt's script seems to have a few issues with my computer. Nice job mate. RE: Some client-side Shoutbox improvements. (Firefox only!) by prashker on 03-13-2007 at 06:16 PM Cool, great thanks ;> RE: Some client-side Shoutbox improvements. (Firefox only!) by vaccination on 03-13-2007 at 07:14 PM dt's has even more functionality though =( RE: Some client-side Shoutbox improvements. (Firefox only!) by L. Coyote on 03-13-2007 at 07:21 PM
Very nice script. quote:So? RE: Some client-side Shoutbox improvements. (Firefox only!) by Thor on 03-13-2007 at 08:16 PM Bug: I have to press enter twice to send the message. RE: Some client-side Shoutbox improvements. (Firefox only!) by prashker on 03-13-2007 at 08:43 PM
quote:Lies. RE: Some client-side Shoutbox improvements. (Firefox only!) by Thor on 03-13-2007 at 08:46 PM
quote:It's true. RE: Some client-side Shoutbox improvements. (Firefox only!) by prashker on 03-13-2007 at 08:47 PM Disable + Renable the Greasemonkey script? RE: Some client-side Shoutbox improvements. (Firefox only!) by NanaFreak on 03-13-2007 at 08:48 PM lol im just gonna use dt's one... RE: Some client-side Shoutbox improvements. (Firefox only!) by EBFL on 03-13-2007 at 09:18 PM
quote:Same RE: Some client-side Shoutbox improvements. (Firefox only!) by WDZ on 03-13-2007 at 10:48 PM
How confusing, two people named DT making GM scripts for the shoutbox. quote:Actually, it works in Opera too. See http://opera.com/support/tutorials/userjs/examples/#greasemonkey I have a few suggestions though... 1) The include/exclude code could be improved. Here's what I'm using... code:To exclude pages > 1, this should do the trick... code:And to exclude other pages like theme, help, error, etc. code:2) It would be nice to have a switch to toggle the refresh on and off. 3) The refresh shouldn't touch the message field at all, it should just replace the shouts and the users online. I noticed that the refresh can interrupt my typing. I'll probably post more suggestions/bugs later. RE: Some client-side Shoutbox improvements. (Firefox only!) by Lou on 03-14-2007 at 12:28 AM
quote:OR, you could make the refresh better for your shoutbox to fix a few of these annoying things RE: RE: Some client-side Shoutbox improvements. (Firefox only!) by WDZ on 03-14-2007 at 12:38 AM
quote:Shh, I hate Javascript so I'm trying to get someone else to do the coding for me. =o RE: Some client-side Shoutbox improvements. (Firefox only!) by Thor on 03-14-2007 at 12:40 AM
quote:Well, atleast implent it in the shoutbox then. RE: Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-14-2007 at 01:54 AM
quote:Well, then I don't really know. I think the input box is focused already, so this shouldn't happen. I will try to find some workaround. quote:All I can say is.... quote:Really, I think my code is only work on Firefox based. Thanks for telling. But I am sure not for IE. quote:OK, I will try to do it.. quote:Another strange problem. Before it reloads, it save the message field's value, selection position, and restore it after the reload has finished. I should match things better. quote:That would be very good! Thanks for all suggestions and bug reports. RE: Some client-side Shoutbox improvements. (Firefox only!) by John Anderton on 03-14-2007 at 03:19 AM
quote:And works great without any problems for me. I've been using them since he released 'em dt's svn is currently down to a certain "problem" and shall be back up soon (hopefully ) Once it is, I'm sure people can see his work as well For me his code works without any problems cause if they have problems I trouble him till he fixes it (yes he is lazier than WDZ ) RE: [0.1.2] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-14-2007 at 05:43 AM
quote: After browsing through -dt-'s random stuff server, I think I have found it. -dt- has a lot of techniques I haven't know. I'll try to learn more techniques. RE: [0.1.2] Some client-side Shoutbox improvements. (Firefox only!) by WDZ on 03-14-2007 at 05:54 AM
That's an old version (24-Jan-2006). Here's a copy from a month ago: http://shoutbox.menthix.net/crap/shoutboxbetterrefresh.user.js RE: [0.1.2] Some client-side Shoutbox improvements. (Firefox only!) by Joa on 03-14-2007 at 06:04 AM
quote: i guess my problem is something like wdz's .... it's not just that it disrupts my typing in the message box, it "steals" the focus every time the shouts refreshes. i mean say i'm typing something in the search bar in ff, the cursor goes back to the message box at each refresh while i'm typing. is it possible to do something that it doesn't steal focus when i'm typing outside of the message box... but have the shoutbox page open? RE: [0.1.2] Some client-side Shoutbox improvements. (Firefox only!) by NanaFreak on 03-14-2007 at 06:04 AM
quote:svn.thedt.net > * > random.thedt.net hmm i think that is that latest DZ RE: [0.2.0] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-14-2007 at 08:23 AM
The code updated to RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by Mike on 03-14-2007 at 12:35 PM You have a typo: It shouldn't be "user has exit the shoutbox" but "user has left the shoutbow" RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by Kenji on 03-14-2007 at 12:38 PM
quote:shoutbox* * Kenji runs dt's works fine for me... if i could use them both, i would. But your one stops dt's from working properly... RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by markee on 03-14-2007 at 12:53 PM
Could someone correct me if I'm wrong but doesn't the who's online section of the shoutbox rely on a timer before the person's name disappears which means that the toast style message could be up to 15 minutes slow? I would like to know that I'm wrong. RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-14-2007 at 01:08 PM
quote: Can you give me the link to -dt-'s script so I can detect what makes -dt-'s to stop working. quote: It's up to the forum system. You'll have to wait for some staff to answer. RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by -dt- on 03-14-2007 at 01:58 PM
quote:simple, mine hooks a bunch of things like the sbRefresh function and can disable/enable its self depending on if the refresh is enabled quote:=p quote:yes but svn.thedt.net is down for a bit (discussing stuff with dreamhost =p), random.thedt.net is _old_ stuff quote:wow thats messy , why dont you use xpaths to find the table and just replace the shout table + online users mine creates an iframe, forces it to load the shoutbox (with protections against infinite loops) then once the iframe has fully rendered it uses an xpath to find the table + online users and copies the node from the iframe document to main one. less jumpyness and a more natural look : > RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-14-2007 at 02:36 PM
quote: In my script, it completely disable the sbRefresh function, but edit the behavior of rfSwitch to call my reload function. quote: That code was removed since 0.1.2! Since 0.1.2, the script will kist replace the shout+online users. And I am not good at XPaths. quote: less jumpyness and a more natural look : > Since 0.2.0, it uses DocumentFragment to parse the HTML. code: And it works really fine! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Off-Topic! I made another userscript for the forum. This script improves the BBCode function. - You won't lose your selection when you click on a button, so you can click B, I, U, Center without re-select the text everytime. - The textarea won't scroll up anymore so you don't have to scroll down if you have typed long. - Some hotkeys. - Ctrl+B - Bold - Ctrl+I - Italic - Ctrl+U - Underline - Ctrl+L - Left - Ctrl+E - Center - Ctrl+R - Right URL: http://dttvb.yi.org/msg-edit.user.js RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by Jimbo on 03-14-2007 at 04:23 PM
quote:Thanks, thats actually really helpful! Maybe make the hotkeys work when doing a quick reply? that would be even better You may have to use Ctrl=Alt+__ because ctrl and b, when doing a quick reply, displays the bookmark thing in firefox. RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by Thor on 03-14-2007 at 05:55 PM
Oh well, here's a request. RE: RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by WDZ on 03-14-2007 at 07:26 PM
quote:Yeah, due to the way the Users Online system works, these toasts can't possibly work very well. Users can stay on the online list for up to 15 minutes after they leave. Also, users disappear from the list whenever their current board location changes. So refreshing the Latest Posts page, for example, would cause you to "leave" the shoutbox. RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by Oxy on 03-14-2007 at 08:10 PM
quote:ahh, that explains alot RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-15-2007 at 09:36 AM
quote:Sure! It is possible, I am developing on it! quote:I am also implementing quick texts, that allows you to type in texts quickly... For example /bye /insult /test quote:Updated. New version URL: http://dttvb.yi.org/msg-edit2.user.js Also, the new version also supports the resizing of the message entry. quote:Ctrl+B will not display the bookmarks... (Like in vBulletin!) RE: [0.2.1] Some client-side Shoutbox improvements. (Firefox only!) by prashker on 03-15-2007 at 10:27 AM
quote: My pm <3. RE: [0.3.0] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-15-2007 at 11:44 AM
I've finished the quick message system and userlinks hooking system. RE: [0.3.0] Some client-side Shoutbox improvements. (Firefox only!) by prashker on 03-15-2007 at 06:14 PM
Thats really good . RE: [0.3.0] Some client-side Shoutbox improvements. (Firefox only!) by Thor on 03-15-2007 at 06:39 PM
quote:Works really sweetly! One thing. After you've clicked a username, the menu pops up. But, can you make it so if you click anywhere else it disappears? RE: [0.3.0] Some client-side Shoutbox improvements. (Firefox only!) by MeEtc on 03-15-2007 at 06:58 PM
I don't have the menu for the usernames.... All i get is a link to the profile.... RE: [0.3.0] Some client-side Shoutbox improvements. (Firefox only!) by prashker on 03-15-2007 at 07:02 PM
code: From the code . Also, your script makes it so we can't type /theme (which is an actual shoutbox command for theme properties) RE: [0.3.0] Some client-side Shoutbox improvements. (Firefox only!) by Lou on 03-15-2007 at 09:07 PM I'm using your latest script along with -dt-'s for the quick text box to have a wysiwyg editor, and the box no longer expands, incompatability to max RE: [0.3.1] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-16-2007 at 01:52 AM
quote: Fixed! Some commands will not be executed using XMLHttpRequest i.e. Standard way. See the post at the top. quote: Sure. It's in 0.3.1. RE: [0.3.1] Some client-side Shoutbox improvements. (Firefox only!) by Lou on 03-16-2007 at 10:20 AM
Some suggestions for the shoutbox script:
Edit2: Added the other quick texts one That's it for now. RE: [0.3.1] Some client-side Shoutbox improvements. (Firefox only!) by J.J on 03-16-2007 at 11:07 AM Thats pretty awesome. Top stuff. RE: [0.3.7] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-17-2007 at 10:12 AM
0.3.1 is out. quote:The text would become bold now quote:OK, it is moved. quote:This text is now removed! Hurray! quote:Now times are delayed... It should be more accurate... for people who auto-refreshes. quote:OK. Now that command works... Please see the top post for download and more details. RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by Nathan on 03-17-2007 at 10:34 AM When adding a quick texts and if you enter nothing and click cancel it comes up error. RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by Jimbo on 03-17-2007 at 12:17 PM
<3 the new version, thanks so much DtTvB RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by EBFL on 03-17-2007 at 01:35 PM
* EBFL <3's this shoutbox scipt. quote: RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by Lou on 03-18-2007 at 02:05 AM
Just to make it more complete, you should add buttons of some sort which enable disable certain features (e.g: the toasts, quick texts, enlarge the comments box, etc) as not everyone will like all those features (personally, the toasts would be disabled for myself). quote: I believe you mean 0.3.2 RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by L. Coyote on 03-18-2007 at 05:14 AM
Hmmm, users who use the /me command don't get the drop-down menu. RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by duck! on 03-18-2007 at 08:53 PM installed it and seems to be running smoothly, the only thing is the notification of when someone comes in to the shoutbox comes up when someone refreshes the shoutbox, so maybe a 2minute delay so if they go off for 2 minutes or more it comes up, any lower it doesnt..? RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by Oxy on 03-19-2007 at 08:38 PM
Nice script, well done quote: *script RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by WDZ on 03-22-2007 at 12:17 AM
Some users of your script have noticed strange character encoding problems. For example, the ¬ character doesn't work right. Here are a few screenshots... RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by MeEtc on 03-22-2007 at 12:28 AM
currently, none of the commands from -dt-'s shoutboxcc.user.js are working with your script either RE: [0.3.2] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-23-2007 at 04:44 PM
> Just to make it more complete, you should add buttons of some RE: [0.3.3] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-23-2007 at 05:32 PM
> you should add buttons of some sort which enable disable certain RE: [0.3.3] Some client-side Shoutbox improvements. (Firefox only!) by Felu on 03-23-2007 at 05:37 PM Do you mind if I try and edit the script to make it work perfectly with Opera ? I'll be doing it tomorrow though. I'll release the script if i succeed . I know you'll allow, but still wanted to ask. RE: [0.3.3] Some client-side Shoutbox improvements. (Firefox only!) by the DtTvB on 03-24-2007 at 02:24 PM Sure! And thanks for asking... RE: [0.3.3] Some client-side Shoutbox improvements. (Firefox only!) by Nathan on 03-26-2007 at 12:27 PM Yeah I agree with you Phillip RE: [0.3.3] Some client-side Shoutbox improvements. (Firefox only!) by Lou on 04-07-2007 at 02:52 PM Well nobody has been posting here in a while... May I suggest you change the way your "buttons" work, because if I highlight the options button, and then wish to switch to the quick text one, that doesn't work too well. The entire thing closes first. quote:How is that coming along? RE: [0.3.3] Some client-side Shoutbox improvements. (Firefox only!) by Felu on 04-07-2007 at 05:30 PM
quote:It was going good until i got Vista. Not using Opera anymore . Thanks for reminding, I'll work on it when I'm free . |