Wakaba Extension

By O_Lawd Last update Aug 30, 2010 — Installed 8,844 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 21 posts, 12 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
alala Scriptwright

Any chance you can write a version of this for Kusaba boards?

 
3d0xp0xy User

The script loks better than ever now.
I was just wondering if you were planning on doing a script for Kareha boards?

 
O_Lawd Script's Author

Hello all,

It's been a while since I've been working on this due to university commitments and a broken laptop, so I have just seen this reported issue.

It sounds like there was a change in Opera's handling of userscripts. Greasemonkey (and Opera, at least the last version I tested), always loaded the script after the page load regardless of any event listeners, but it seems that this behavior is no longer in effect. (Incidentally, a load listener similar to operauser's was implemented quite a while back during development but was later ditched because it was deemed unnecessary due to this behavior.)

Thank you, operauser, for the report and fix! I'll get the newest Opera here and run some tests, and then I shall update this script with a similar fix.

3d0xp0xy, yes I'm probably going to add those in.

UPDATE: Strange, it actually works fine for me in the latest Opera. Still, I'll go ahead and add in the event listener.

 
operauser Scriptwright

For Opera Users
I just got the script to work, basically the problem was that the code wasn't being started by a listener, that means, it wasn't starting after the loading of the website but apparently on the middle of it. And thus, some objects that were required in fact weren't even created.
The solution? Add an even listener like this:
addEvent(window, 'load', init);
Then, copy all the code in o_lawd's script that IS NOT INSIDE OF A FUNCTION, and paste it inside of that INIT function. LEAVE ALL THE DEFAULT OPTIONS OUTSIDE ANY FUNCTION.

If you feel lazy, here's the code:
http://userscripts.org/scripts/show/33088

Thanks again to o_lawd for this extremely useful script.

 
3d0xp0xy User

That options menu is awesome!

Also, simple feature request:
▲ and ▼ links to jump to the previous or next thread, respectively.

 
operauser Scriptwright

Hi, I just tested this on Opera 9.52 and it doesn't seems to work. The script loads fine, because I tested it with an alert(0) on the beginning, but none of the options are loading. For instance, if you add an alert() on line 1699, just after

if (document.getElementById('delform') && window.location.href.indexOf('task=') == -1)

, you won't get an alert. So it's not working, basically.

 
O_Lawd Script's Author

scientus: I have went ahead and implemented your suggestion. Right now, I have it set to limit image size by width. A maximum height makes sense, too, so I will add a maximum height limit tomorrow.

discret: Bookmarking threads is becoming a possibility as I have already spoken to one individual about it. I will need to think about a good way to implement post quoting previews, though.

 
discret User

Great work!
Can you get some features from this script http://userscripts.org/scripts/show/18810, like bookmarks or preview ">>-links"?
Excuse my language.
Thanks.

 
scientus Scriptwright

/r/ option for image size limiting like on 4chan extention----possibility to set max size in script--1 click that size or smaller if less than, 2 click full size

 
anon404 Scriptwright

Very nice script

 
O_Lawd Script's Author

Thank you, 3d0xp0xy. I have added GUROchan to the included domain list and have implemented your request into the newest release.

 
3d0xp0xy User

I just tried installing the script on a clean profile, and it seems like some other extension was messing things up. Sorry to bother you!

And thanks for considering the checkbox, and for a very useful script. I'm looking forward to the update.

P.S.: It works on GUROchan, in case you were afraid to check. ;)

 
O_Lawd Script's Author

I'm sorry for the lack of updates over the last couple of weeks. I've been occupied with other things.

Anamn3sis: Do you mean that the links are rendered as just text, or that text URLs are not converted to links? The former would be an issue that has not happened to me, and I could address the latter. Administrators who configure Wakaba to kill links often do so to prevent getting revealed by HTTP_REFERER, and they probably wouldn't like me circumventing that. What I could do the solve this problem is change text-only URLs to links redirected by a de-referer, like anonym.to.

3d0xp0xy: A sage checkbox sounds reasonable; I could even have it turn on when "sage" is entered into the field by hand or by Wakaba's Javascript (which saves the name and link fields to a cookie), to prevent accidental sages.

I'm more worried about the bug report. I have never experienced and could not reproduce the right-click issue you've reported with image expansion. What is your browser, and on what board are you experiencing this behavior?

UPDATE: The fundamental thread hiding routines have been written and are testing well so far. I have also improved earlier code for image expansion. An update to the script may be soon.

 
3d0xp0xy User

A suggestion: The Not4chan Extension, which sadly doesn't work with Firefox 3 (yet), adds a checkbox to the right of the link field. When checked, "sage" is added to the field. When you uncheck it, the field is cleared. It shouldn't be too much work to add that function to this script. What do you think?

Edit: The image expansion function seems to have a bug: If I have right-clicked an expanded image (e.g. to save it), it won't shrink when I (left-)click it again. Instead, it shows the thumbnail stretched to the size of the full image.

 
Anamn3sis User

Would it be possible to add a text to link conversion script? Currently when I expand a thread the text-only links are still text, its very aggrivating.

 
nathaniel_hi... Scriptwright

@georgie
check out stylish. it allows for easy implementation of custom CSS.

 
O_Lawd Script's Author

Thanks dirtypants and georgie!

georgie: Forcing a common stylesheet like Futaba or Burichan like that does sound potentially useful. I would need to borrow a reliable URL somewhere, though.

dirtypants: That's something I've indeed considered implementing. I'm thinking the main challenge would be reliably separating threads, but I'll work on it.

 
dirtypants User

Will you be adding a way to hide or collapse threads? Is that possible?

I love the way you can hide threads using the 4chan extension. I'd love to see something like that.

Thanks for the great work!

 
O_Lawd Script's Author

I fixed and tested the CAPTCHA field. Let me know if you still have issues with a site. Thanks for the heads-up!

 
Itros User

Thanks a lot for the script! But Quick Reply doesn't work on boards with captcha, because you only recieve a message about wrong code.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel