How can you get 4chan time to work on the text boards?
Name:
aeosynth!zdxFBW2hCw2010-02-17 6:55
>>7
I guess I could seperate date parsing from date manipulation, then check the url to see which parser to use. Give me a sec....
Updated.
Name:
Anonymous2010-02-17 8:29
>>8
Cheers. It works except there's some brackets that appear after the date :
02/17/2010()06:55AM
Name:
92010-02-17 8:31
Forgot to mention the brackets only appear on the text boards.
Name:
Anonymous2010-02-17 15:35
How come insta-click doesnt work on google searches?
Name:
aeosynth!zdxFBW2hCw2010-02-17 19:03
>>9 >>10
actually the brackets appear on the imageboards too, you just don't notice it because they're being used to enclose the day of the week. the text boards don't display the dotw, so the brackets are empty there. change the date formatting yourself.
I guess I could extract the formatting into a seperate function, too; that would probably be easier than figuring out the dotw based on the timestamp.
>>11
b/c insta-click only sees the links available at page load, while google uses ajax to insert more links after page load. let me fix that....
Updated.
Name:
Anonymous2010-02-18 8:14
>>12
I found a third option - include the bracketsparens in the matches.
4chan time updated.
Name:
Anonymous2010-02-18 8:33
is there a way to make /b/ackwash compatible with fychan? because it doesn't work for me
Hey man, I was wondering if you could add easymodo on the related boards (/a/ /jp/ /m/ /sp/ ). Sometimes, the archive has sauce for images.
Name:
Anonymous2010-02-18 21:50
Also, now that "Quick post" has been removed, I've noticed that sometimes the thread updater duplicates the posts you make. http://i46.tinypic.com/2q0lgqq.jpg
Browser is opera 10.50
Name:
Anonymous2010-02-18 21:54
>>18
If you're talking about 4chan sauce, add whatever url works to the prefix array.
>>26
stack trace plox. I don't support opera usb, only the normal Opera. 10.50+ is required now for json support, and the emulator isn't needed anymore.
so - make sure 4chan x is the only script in your userscript folder, reload a 4chan page, look for errors in the error console. repeat for backwash.
Hey I'm using this thread filter but I get bands where the threads are hidden.
// ==UserScript==
// @name ShiichanFilter
// @namespace 4ch
// @include http://dis.4chan.org/*;
// ==/UserScript==
function gcl(vclass){return document.getElementsByClassName(vclass)}
var filt=/test1|text2|text3/gim;
var filt2=/name1|name2|name3/gim;
var filt3=/thread1|thread2|thread3/gim; //Links/threadnames
function tag(x,y){if(!y){return document.getElementsByTagName(x)}else{return x.getElementsByTagName(y)}};
function sa(x,y,z){x.setAttribute(y,z)};
var posts=tag('blockquote');var pl=posts.length;//hide by text
for(var d=0;d<pl;d++){if(posts[d].innerHTML.search(filt)!=-1){sa(posts[d].parentNode,'style','display:none')}else{sa(posts[d].parentNode,'style','display:inline')}}
var ss2=gcl("postername");//hide by postername
for(var d=0;d<pl;d++){if(ss2[d].innerHTML.search(filt2)!=-1){sa(ss2[d].parentNode.parentNode.parentNode,'style','display:none')}}
var st2=gcl("replies");//hide entire thread
for(var d in st2){if(st2[d].parentNode.innerHTML.search(filt3)!=-1){sa(st2[d].parentNode.parentNode.parentNode,"style","display:none")}}
var sd2=tag("a");//hide thread from links
for(var d in sd2){if(sd2[d].innerHTML.search(filt3)!=-1){sa(sd2[d],"style","display:none");}}
Is there a way to modify the above code to make it hide threads the way this script does? :
var threads, thread;
threads = document.evaluate("//div[@class='border']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < threads.snapshotLength; i++) {
thread = threads.snapshotItem(i);
if (-1 != thread.childNodes[3].childNodes[3].childNodes[1].childNodes[1].textContent.search(/200[4-8]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9]/g)) {
thread.style.display = "none";
}
}
/* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details. */
Name:
Anonymous2010-02-23 9:48
>>41
Cheers. How do I get this bookmarklet to work on imagefap?
dont u think that your filter causes less moderation because less spam is reported?
Name:
aeosynth!zdxFBW2hCw2010-02-24 7:04
>>48
probably. I wish 4chan automatically filtered reported posts, but it doesn't.
Name:
Anonymous2010-02-25 8:30
bump
Name:
Anonymous2010-02-25 9:38
>>41 When i use this filter and I want to filter soemthing with a slash "/" The script ceases to work. I think this is because "//" is used for coments or something. Is there a workaround? I tried "%2F" the url encoding for slash but that didnt work...
Name:
aeosynth!zdxFBW2hCw2010-02-25 13:33
>>51
it's because `/' is used to denote the beginning and end of a regex. escape it with a backslash `\': 1/0 -> 1\/0.
>>52
Ok so if I wanted to filter say the string "/k/" I would enter this in the script?
"/\/k/\/"
Name:
aeosynth!zdxFBW2hCw2010-02-25 15:55
>>53
if that's the only pattern you're searching for, then yeah, that'll work. if you decide you want to search for more stuff, then add a bar `|': /\/k\/|pattern2/ .
honestly though, the 4chan filter works on text boards, why would you want a script that forces you to edit its source to change anything? if you're a developer, then yeah small codesizes are great because they're easier to understand/hack, but for an end-user, that just seems masochistic.
(I swear I'll (eventually) update my scripts so that everyone has the same options gui as the firefriends)
Name:
Anonymous2010-02-25 17:02
>>54
Your 4chan filter cannot hide threads on the text boards thats why :( I have to mess around with that awful script
Name:
aeosynth!zdxFBW2hCw2010-02-26 17:04
>>55
Ah, you should have told me that in the first place. I just tried it and thread hiding works except for tripcodes and subjects. Does putting 'anon' in the name field not hide any threads?
Would like to see a way for the filter to show you what a filter is affecting, think it was requested on the us.o page, just putting it here too.
Name:
Anonymous2010-02-28 12:34
What are chances of you developing a mini 4chan X for the text boards?
Name:
aeosynth!zdxFBW2hCw2010-02-28 19:03
>>60
trip + subject filtering should be fixed now.
Name:
Anonymous2010-02-28 21:55
I haven't read the thread so I don't know if it's already been said, but you should have an option in the filter to hide posts that reply to posts you have hidden.
Name:
Anonymous2010-02-28 23:07
Why is it when i try to do a quick reply on a NSFW board, the ad at the top shows up in the popup window?
Name:
aeosynth!zdxFBW2hCw2010-02-28 23:26
>>62
That's planned, but I'm gonna have to rewrite 4chan X to thread replies first.
>>63
because you're not using a decent ad blocker.
Hey I am getting some weird issues. As you can see in this screenshot: http://img411.imageshack.us/img411/3483/downloadv.png
I am getting double updater boxes and double arrows and yacie stop working when this happens. I am running chrome with 3 extensions:
4chan x
yacie
/b/ackwash reloaded
any help is gladly appreciated.
Name:
aeosynth!zdxFBW2hCw2010-03-06 0:35
Well, I updated 4chan x. I think I've solved the multiples bug on Firefox, on Chrome not so much, and now for some reason Quick Reply on Chrome doesn't work....
Name:
aeosynth!zdxFBW2hCw2010-03-06 5:05
>>67
false alarm. god damn fucking chrome doesn't know how to upgrade scripts.
uninstall / reinstall 4chan x and the bug should be fixed.
Name:
Anonymous2010-03-11 9:20
Would you consider porting 4chanX to work on 420chan ?
Name:
aeosynth!zdxFBW2hCw2010-03-11 12:48
>>69
I don't use 420chan, so no. If someone else ports it and sends me a patch, then I might support it.
Name:
Anonymous2010-03-11 13:51
Uncaught exception: Error: WRONG_ARGUMENTS_ERR
Error thrown at line 1013, column 2 in x(xpath, root) in .user.js.js:
return document.evaluate(xpath, root, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null).singleNodeValue;
called from line 108, column 0 in <anonymous function>() in .user.js.js:
const form = x('./form');
called from line 44, column 0 in .user.js.js:
(function() {// <-- Opera wrapper
I'm using Opera 10.5. Not sure what I'm doing wrong.
Name:
aeosynth!zdxFBW2hCw2010-03-11 19:46
>>71
um, it would help if you stated which script you were having trouble with (4chan x). that would help me and other users.
I just tested and it works find for me in Opera 10.50. remove all other scripts from your js folder and try again; that's the only think I can think of.
Did moot do something to 4chan so that now I can't quick reply on /g/ with 4chan X(+that other script of yours which name I forgot)?
Name:
aeosynth!zdxFBW2hCw2010-03-13 21:28
>>79 (+that other script of yours which name I forgot)
honestly, how hard is it for you to look in your greasemonkey menu and see what's enabled? quick reply works fine for me on /g/, both replying from the front page and inside the thread.
Name:
Anonymous2010-03-13 22:34
>>80
It's chromium so I had to "blend" your scripts with a blendtec total blender for it to work without it recursively backlinking(you know what I mean).
Unless updating to the latest build of chromium fucked it up for me... BRB.
it does seem that quick reply on chromium is broken.
OT, isn't chromium's tab completion pretty sweet? it's not enough to make me switch, but it is cool.
Name:
Anonymous2010-03-13 23:16
>>isn't chromium's tab completion pretty sweet?
yes very
anyways, it seems there's a problem with the site(yet again) and the lag is interfering with me trying to reply.
Probably another DDoS or something.
Name:
Anonymous2010-03-14 5:54
I've noticed a discrepancy in the post count. The favicon for 4chanX gives the right one but the thread filter gives a huge one. Any ideas? Is this to do with userscript order?
Name:
aeosynth!zdxFBW2hCw2010-03-14 6:30
>>84
4chan filter shows the total number of posts, while 4chan x shows the number of unread posts, which goes down as you scroll the page.
4chan x does nothing for me (Opera 10.51 RC1). Hasn't since 10.10.
These are the errors I get when loading a 4chan thread with 4chan x active:
==============
JavaScript
User JS compilation
Syntax error at line 18 :
ki|antedFiles))"</A>,
--------------------^
syntax error
JavaScript
User JS compilation
Syntax error at line 186 :
(locationHref))</A> {
--------------------^
in string literal: invalid line terminator.
===============
Any idea how to fix?
Name:
Error2010-03-14 12:14
Never mind...updating to latest version, and it's suddenly working. Nice.
Name:
aeosynth!zdxFBW2hCw2010-03-14 20:23
>>86
It works fine for me in either order, so I'm thinking it's a conflict with another script. First make sure you're using the latest versions of 4chan x and 4chan filter, then disable everything except for those two scripts. If the bug persists, swap their order.
Just installed the script for the first time on the FF 3.6.3pre - the menu does not get displayed. I see "Watched Threads" and added up / down / hide buttons next to posts, though.
Name:
Anonymous2010-03-24 14:59
Just installed the script for the first time on the FF 3.6.3pre - the menu does not get displayed. I see "Watched Threads" and added up / down / hide buttons next to posts, though.
Name:
Anonymous2010-03-24 15:10
Sorry for the double post. Anyway, I overlooked that one ought to place the script above the 4chan filter, it works just fine now. Sorry resp. thanks.
Name:
INFECTED!i7MUSHROOM2010-03-25 0:00
The 4chan X report button is not working correctly. It seems to be reporting the thread at the top of the page no matter which thread I try to report.
Problem with 4chan filter. When the op-post of a thread gets filtered, there is no stub for that thread even if the option "show stubs" is turned on. Furthermore, hidden threads won't show up when I click "show". The only way to see them is to turn off the filter and reload.
I use Firefox 3.6.2 and 4chan X with "thread hiding" enabled.