Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

userscript support throd

Name: aeosynth !zdxFBW2hCw 2010-02-14 21:28

instead of registering on us.o just to make one post, you can use this thread. questions, comments, feature requests, patches are all fine.

I'll provide support for everything listed at http://userscripts.org/users/64431/scripts.

Name: aeosynth !zdxFBW2hCw 2010-05-24 15:51

HEY ANONYMOUS

ends all of his posts with the :/ emoticon

:/$

$ = end of line. done.

Name: Anonymous 2010-05-24 18:22

>>281
It doesn't work for me. I had it setup like

// ==UserScript==
// @name           fix sci
// @namespace      http://dis.4chan.org/sci/
// @description    fixes all of :/'s posts on /sci/
// @include        http://dis.4chan.org/*;
// ==/UserScript==

(function(){
 var posts = [];
 var myclass = new RegExp('\\bpost\\b');
 var divs = document.getElementsByTagName('div')
 for(var i = 0; i < divs.length; ++i){
  var classes = divs[i].className;
  if(myclass.test(classes)) posts.push(divs[i]);
 }
 for(var i = 0; i < posts.length; ++i){
  var postername = posts[i].getElementsByTagName('span')[3];
  var postertrip = posts[i].getElementsByTagName('span')[4];
  var postbody   = posts[i].getElementsByTagName('blockquote')[0];
  if(/:\$//.test(postbody.innerHTML))
   posts[i].parentNode.removeChild(posts[i]);
 }
})();


Where the hell do I put the $ in this code?

Name: aeosynth !zdxFBW2hCw 2010-05-24 20:12

hm, the text boards add some extra whitespace. you got the line right, I just gave you a non-working regex :/. instead, use: :\/\s+$

on this line:
  if(/:\/\s+$/.test(postbody.innerHTML))

I wrote a simple filter at >>41, you might be interested in that. if you use it, you can filter this guy with

var  comments = /:\/\s+$/;

ending with :/ to verify that everything's working:

:/

Name: aeosynth !zdxFBW2hCw 2010-05-24 20:21

hm, reposting >>41 since the semicolon on the @include line is giving me errors.

// ==UserScript==
// @name           dis.4chan.org filter
// @namespace      aeosynth
// @include        http://dis.4chan.org/*;
// @version        0.0.1
// @copyright      2010, James Campos
// @license        WTFPL; http://sam.zoy.org/wtfpl/
// ==/UserScript==

/* 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. */

var comments = /comment1|comment2/i;
var names    = /name1|name2/i;
var subjects = /subject1|subject2/i;
var years    = /200[4-8]/;

//utility
function $$(selector) {
  return document.body.querySelectorAll(selector);
}
function x(xpath, root) {
  return document
    .evaluate(xpath, root, null, XPathResult.ANY_UNORDERED_NODE_TYPE, null)
    .singleNodeValue;
}
//funk(s)
function filter(regex, nodes, className) {
  for (var i = 0, l = nodes.length; i < l; i++) {
    if (regex.test(nodes[i].textContent)) {
      x('ancestor::div[starts-with(@class, "' + className + '")]', nodes[i])
        .style.display = 'none';
    }
  }
}
//main
filter(comments, $$('blockquote'), 'post');
filter(names, $$('span.postername'), 'post');
filter(subjects, $$('span.replies + a'), 'border');
filter(years, $$('span.posterdate'), 'border');


do you want me to post this on us.o and maintain it? I still don't see why an end-user would want this instead of the gui filter.

Name: aeosynth !zdxFBW2hCw 2010-05-24 20:25

>>284
wat. 4chon is auto-adding a semicolon... remove it from the @include line.

test [code]http://dis.4chan.org/*[code]

Name: aeosynth !zdxFBW2hCw 2010-05-24 20:26

Name: Anonymous 2010-05-24 20:31

>>284
do you want me to post this on us.o and maintain it? I still don't see why an end-user would want this instead of the gui filter.
If you want, sure. I already have a userscripts.org page on it however.

I still don't see why an end-user would want this instead of the gui filter.
The gui filter works good, but putting in :/ also unfortunately filters out URLs, just as the original script does. I just need a solution that filters out simply all posts that end with :/ and nothing else, and that includes URLs. Plus, when people install the script, boom, they're done, don't have to worry about anything else.

Also, I have scripts that ignore multiple tripcode users and certain text. Not sure if 4chan filter can filter multiple tripcode users and text, unless it actually does have that ability.

I'm going to try this new regex you suggested. Thanks for all your help, man. You're a good individual and a wonderful human being. :)

Name: 287 2010-05-24 20:46

Never mind, I tried the code with the new regex you suggested, and it doesn't filter anything. His posts still show up for me. God damn, filtering this guy successfully without also the side effect of filtering all URLs is such a pain in the arse.

Name: Anonymous 2010-05-24 20:51

Also, this is the way the current code is

// ==UserScript==
// @name           fix sci
// @namespace      http://dis.4chan.org/sci/
// @description    fixes all of :/'s posts on /sci/
// @include        http://dis.4chan.org/*;
// ==/UserScript==

(function(){
 var posts = [];
 var myclass = new RegExp('\\bpost\\b');
 var divs = document.getElementsByTagName('div')
 for(var i = 0; i < divs.length; ++i){
  var classes = divs[i].className;
  if(myclass.test(classes)) posts.push(divs[i]);
 }
 for(var i = 0; i < posts.length; ++i){
  var postername = posts[i].getElementsByTagName('span')[3];
  var postertrip = posts[i].getElementsByTagName('span')[4];
  var postbody   = posts[i].getElementsByTagName('blockquote')[0];
  if(/:\/\s+$/.test(postbody.innerHTML))
   posts[i].parentNode.removeChild(posts[i]);
 }
})();


Doesn't filter anything at all. Also this is the userscript page I'm maintaining it on http://userscripts.org/scripts/show/77139 the original guy who coded this was http://dis.4chan.org/read/sci/1273083138/13

Name: aeosynth !zdxFBW2hCw 2010-05-24 21:15

use textContent instead: change

if(/:\/\s+$/.test(postbody.innerHTML))

to

if(/:\/\s+$/.test(postbody.textContent))

putting :/\s+$ in the gui filter hides >>283. you can add multiple patterns by seperating them with a semicolon - this is in my comment field for /b/:

eggmen; grumfeld; blogspot; call me at; we have archived; cannot display the webpage

Thanks

welcome :)

Name: Anonymous 2010-05-24 22:56

>>290
Works perfectly now. Thank you so much for all you've done. I don't know how I can make it up to you man. You are awesome :) Please, don't ever stop what you're doing, because you are that cool! :)

I know, I'm being a big suck-up, but I truly am grateful, and so are the people who can now finally and properly ignore this shitposter.

Name: Anonymous 2010-05-25 3:22

>>159
i can't seem to see that comment you said about reverse filters, i never bothered to remember it and it seems i have use of it right now, temporarily anyway.

Name: aeosynth !zdxFBW2hCw 2010-05-25 5:42

>>292
yeah, it is gone. to only see posts with the phrase 'banana banana banana', use:

^(?![^]+banana banana banana)

Name: aeosynth !zdxFBW2hCw 2010-05-25 5:45

>>293
err, use

^(?![^]*banana banana banana)

I was thinking about the text boards with their extra white space.

Name: Anonymous 2010-05-27 23:57

does 4chan X somehow hides threads automatically?
4chan X allows you to manually hide whole threads.
4chan filter only allows you to manually hide comments in these threads unless it's hidden by the automatic filter function.
somehow, some threads don't show up when i click "show"
a few remain hidden as if they were hidden using 4chan X, the show function doesn't show the threads i hide using 4chan X.

it's not possible to show what stuff i hidden using 4chan extension right now right?
other than disabling the script and refreshing of course.

one thing that came to mind is that the thread that is hidden is on another page.

Name: Anonymous 2010-05-28 0:01

does 4chan X somehow hides threads automatically?
4chan X allows you to manually hide whole threads.
4chan filter only allows you to manually hide comments in these threads unless it's hidden by the automatic filter function.
somehow, some threads don't show up when i click "show"
a few remain hidden as if they were hidden using 4chan X, the show function doesn't show the threads i hide using 4chan X.

it's not possible to show what stuff i hidden using 4chan extension right now right?
other than disabling the script and refreshing of course.

one thing that came to mind is that the thread that is hidden is on another page.

Name: Anonymous 2010-05-28 6:33

Does anyone know how to decrypt the contents of the md5 attribute? It looks like Base64 but I get gibberish when I try unencoding it.

Name: Anonymous 2010-05-28 7:04

Okay, figured it out, but I realized that it's for the thumbnail. :/

Name: Anonymous 2010-05-29 17:51

I've been noticing that on chromium, if I hide a thread and it happens to be the first thread on the first page, it'll instead hide the first thread of that page instead.

For example lets say I go to /g/ and see that the first thread on the first page is some troll posting guro.  I hide it and refresh the page, and whether that thread is still the first or not, the first thread will be hidden.

I'm assuming it's a problem with chromium, but thought I'd let you know, in case you didn't.

:\

Name: Anonymous 2010-05-29 20:01

>>299
I've seen the same thing.
Which version of chromium are you running?

Name: Anonymous 2010-05-29 22:20

>>300
ATM: 47231

Name: Anonymous 2010-05-30 3:07

What would the regex be for numbers from 1 to 1000 ?

int i=0, i++, i=>1000

Name: aeosynth !zdxFBW2hCw 2010-05-30 3:55

>>302
/(^|\D)0*([1-9]\d{0,2}|1000)($|\D)/

(^|\D) - start at the beginning, or at a non-digit character
0* - allow 0 or more leading zeros
([1-9]\d{0,2}|1000) - match the numbers 1-9, followed by 0-2 other numbers; or match 1000
($|\D) - end at the end, or at a non-digit character

Name: aeosynth !zdxFBW2hCw 2010-05-30 3:56

/(^|\D)0*([1-9]\d{0,2}|1000)($|\D)/

Name: Anonymous 2010-05-31 11:24

Would you consider adding the 4chan menu to 4chan X like in the 4chan add-on? If no, how about a standalone userscript?

Name: Anonymous 2010-06-01 9:18

I just updated to the newest version of 4chan X by uninstalling the pervious one and installing the newest one.  It retained my watchlist but broke the links to the threads and I'm unable to delete the broken links.

What do?

Name: aeosynth !zdxFBW2hCw 2010-06-02 2:08

>>306
uninstall, this time checking 'also uninstall assosciated preferences'. you could also go to about:config and reset 4chan x.watched (I assume you're using ff / gm).

>>305
greasemonkey can't modify the browser, so I can't add stuff to the right-click / toolbar menu. I could create an in-browser pop-up that listed all the boards, or you could get a userstyle that makes the board links follow you.

I never really used that feature in the first place, so I don't know what the best way of implementing it is.

>>301
4chan x works fine in chrome 6, chrome/chromium 4 is known to be buggy.

>>296
yeah, i need to re-add the 'clear hidden' option.

Name: Anonymous 2010-06-02 12:40

>>307
Unfortunately I'm using Chrome 6.0.408.1 dev, so no Greasemonkey or about:config

Name: aeosynth !zdxFBW2hCw 2010-06-02 13:36

>>308
ctrl + shift + j > storage tab > local storage > watched.

just tried uninstalling 4chan x, chrome removed all the options for me.

Name: Anonymous 2010-06-02 14:23

>>309
I figured out how to fix the problem.

Had to delete the 4chan local storage file in...
C:\Users\(username)\AppData\Local\Google\Chrome\User Data\Default\Local Storage

Name: Anonymous 2010-06-04 11:12

Why doesnt this work in 4chan filter?


/[\p{InHiragana}\p{InKatakana}\p{InCJK_Unified_Ideographs}\p{InHangul_Syllables}]+/

Name: aeosynth !zdxFBW2hCw 2010-06-04 14:52

>>311
is that latex? you don't need the opening and closing slashes; the filter compiles strings into regexes automatically.

if that's literally what you put in the filter, you're doing it wrong.

Name: Anonymous 2010-06-04 15:04

>>312
I got it from http://dis.4chan.org/read/prog/1275126268

So how would I filter all chinese/japanese with 4chan filter?

Name: Anonymous 2010-06-04 16:00

Invade Yahoo! Answers.
Instead just post statements and tell everybody they are too interfering and should stay out of other peoples business and in general not to ask questions.

Yours truly the Mafia,
 - Not really - if this is the CIA - I'm not really the Mafia.

Name: aeosynth !zdxFBW2hCw 2010-06-05 3:16

>>313
yeah, they were trolling you. what you need to do is find the ranges of all those character sets, either online or from digging through a character map. then you can easily filter them out - you'll end up with something like [\u2004-\u2500] (filter everything with a unicode value between 2004 and 2500). you're on your own when it comes to finding the ranges, but if you do, post them here so others can benefit.

remember, google and wikipedia are your friends.

Name: Anonymous 2010-06-05 3:21

Name: aeosynth !zdxFBW2hCw 2010-06-05 5:20

>>316
that. thank you, anon.

that page brought my firefox to a crawl, so I'll just scrape the relevant info:

Japanese-style punctuation ( 3000 - 303f)
Hiragana ( 3040 - 309f)
Katakana ( 30a0 - 30ff)
Full-width roman characters and half-width katakana ( ff00 - ffef)
CJK unifed ideographs - Common and uncommon kanji ( 4e00 - 9faf)
CJK unified ideographs Extension A - Rare kanji ( 3400 - 4dbf)


[\u3000-\u30ff\uff00-\uffef\u4e00-\u9faf\u3400-\u4dbf]

アノン ディリーバズ

Name: Anonymous 2010-06-05 5:50

>>317
Thanks man I can now browse /games/ !

Name: Anonymous 2010-06-06 14:06

I'm having a loving relationship with the Thread Watcher from 4chan x with Opera 10.53.

On first use, I was able to move the Thread Watcher window. Now, whenever trying to move the window it disappears.

I can click on it, but any dragging/movement causes it to go. This happens with or without threads watched. Apart from this, it functions normal.

Is there a specific area to select for dragging or does it disappear "by design?" Anyway to reset the position?

Here's effectively what the error console spits out:

CSS - http://boards.4chan.org/g/
DOM style property
Invalid value for property: left
Line 1:
  NaNpx

I have eight of these entries. The difference between them is the value for "Invalid value for property" which alternates between "left" then "top" then "left" and so forth.

Name: wedding 2010-06-07 1:00


It’s so much easier to  find the perfect <a href="http://www.eastbridal.com/">wedding dresses</a><a href="http://weddings.lovetoknow.com/wiki/Bridal_Party_Dresses" title="Bridal Party Dresses"></a> dress  today than it was 20 or 40 years ago. <a href="http://www.eastbridal.com/">wedding dress</a> are the days of puffy shoulder pads  and<a href="http://www.eastbridal.com/">discount wedding dresses</a>, today’s bridesmaids’ dresses are sleek and streamlined, many  of <a href="http://www.eastbridal.com/designer-wedding-dress/beach-wedding-dresses.html">beach wedding dresses</a> can be worn again. <a href="http://www.eastbridal.com/designer-wedding-dress/simple-wedding-dress.html">Simple wedding dress</a> have also evolved, saying goodbye to gaudy  shades in favor of a huge color spectrum ranging from elegant<a href="http://www.eastbridal.com/designer-wedding-dress/modest-wedding-dress.html"> Modest wedding dress</a> to  sophisticated fun pinks and fresh<a href="http://www.eastbridal.com/designer-wedding-dress/elegant-wedding-dress.html">Elegant wedding dress</a>.Generally the<a href="http://www.eastbridal.com/designer-wedding-dress/elegant-wedding-dress.html">Elegant wedding dress</a>chooses  the type of dress her bridesmaids will wear.<a href="http://www.eastbridal.com/designer-wedding-dress/elegant-wedding-dress.html">Elegant wedding dress</a> is often a bone of contention  for the bridesmaids as many times the <a href="http://www.eastbridal.com/designer-wedding-dress/chinese-wedding-dress.html">Chinese wedding dress </a> chooses a style or color that isn’t  flattering for all of the women in the <a href="http://www.eastbridal.com/designer-wedding-dress/western-wedding-dress.html">Western wedding dress</a> party. While it’s true, you  can’t please everyone, the <a href="http://www.eastbridal.com/designer-wedding-dress/formal-wedding-dress.html">Formal wedding dress</a> can spare a lot of bad feelings by allowing  the women in the<a href="http://www.eastbridal.com/designer-wedding-dress/informal-wedding-dress.html">Informal wedding dress</a> party to have some input into the selection process. Perhaps  all of the women involved can have<a href="http://www.eastbridal.com/wedding-dress-style.html">Wedding dress style</a> of shopping together to find  a style and <a href="http://www.eastbridal.com/wedding-dress-style/short-wedding-dress.html">Short wedding dress</a> flattering to every shape and skin tone. Try to find styles  without too many <a href="http://www.eastbridal.com/wedding-dress-style/tea-length-wedding-dress.html">Tea length wedding dress</a> or embellishments as these types of dresses can’t be  cut down or worn again for other <a href="http://www.eastbridal.com/wedding-dress-style/tea-length-wedding-dress.html">Tea length wedding dress </a> occasions.If you want to find a <a href="http://www.eastbridal.com/wedding-dress-style/strapless-wedding-dress.html">Strapless wedding dress</a> flattering to  everyone, avoid the <a href="http://www.eastbridal.com/wedding-dress-style/straps-wedding-dress.html">Straps wedding dress</a>: Puffy shoulder pads: Big <a href="http://www.eastbridal.com/wedding-dress-style/short-sleeves-wedding-dress.html">Short wedding dress sleeves</a> flatter very  few women. Petite women seem lost in the <a href="http://www.eastbridal.com/wedding-dress-style/mermaid-wedding-dress.html">Mermaid wedding dress </a> and larger framed women  look like <a href="http://www.eastbridal.com/wedding-dress-style/column-wedding-dress.html">Column wedding dress </a>. If you’d like all your <a href="http://www.eastbridal.com/wedding-dress-style/plus-size-wedding-dresses.html">Plus Size wedding dresses </a> to look lovely, avoid  the use of heavily padded <a href="http://www.eastbridal.com/wedding-dress-colors.html">Wedding dress colors</a>. Large “butt” bows: You have to have a  small <a href="http://www.eastbridal.com/wedding-dress-colors/white-wedding-dress.html">White wedding dress</a> to rock the butt bow. Since <a href="http://www.eastdress.com/">Prom Dresses</a> is an area most women don’t  wish to call <a href="http://www.eastdress.com/">Cheap Prom Dress</a> to, try not to choose <a href="http://www.eastdress.com/">Prom Dresses 2010</a> with large butt bows. Pale  Colors: Pale <a href="http://www.eastdress.com/">Prom Dress</a> and <a href="http://www.eastdress.com/prom-dresses-2010_c360">Prom Dresses 2010</a> might look good on the <a href="http://www.eastdress.com/cheap-prom-dresses_c358">Cheap Prom Dresses</a>, but <a href="http://www.eastdress.com/plus-size-prom-dresses_c351">Plus Size Prom Dresses</a> don’t  work for all skin types. Women with very light <a href="http://www.eastdress.com/short-prom-dresses_c352">Short Prom Dresses</a> will look washed out,  especially in <a href="http://www.eastdress.com/short-prom-dresses_c352">Short Prom Dresses</a>.What will you do with  your <a href="http://www.eastdress.com/vintage-prom-dresses_c353">Vintage Prom Dresses</a> after the wedding? If it’s a formal <a href="http://www.eastdress.com/sexy-prom-dresses_c354">Sexy Prom Dresses</a> and you would like  to keep in its pristine <a href="http://www.eastdress.com/simple-prom-dresses_c356">Simple Prom Dresses</a> to wear to another formal <a href="http://www.eastdress.com/designer-prom-dresses_c357">Designer Prom Dresses</a> in the future,  consider bringing it to a <a href="http://www.eastdress.com/quinceanera-dresses_c359">Quinceanera Dresses</a> preservation specialist.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List