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

Petition for mini 4chan X on world4ch

Name: Anonymous 2010-06-02 15:06

signed

Name: Anonymous 2010-06-03 8:29

What?

Name: Anonymous 2010-06-04 0:18

Name: aeosynth !zdxFBW2hCw 2010-06-04 0:28

Name: Anonymous 2010-06-04 0:30

>>4
Oh cool. Thanks aeosynth!

Name: Anonymous 2010-06-04 10:01


>>4
it doesnt hide threads

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

>>6
yeah, I was being facetious.

Name: Anonymous 2010-06-05 3:20

>>7
:(

Name: aeosynth !zdxFBW2hCw 2010-06-05 4:12

>>8
just write it yourself, it's not that hard. my shit's open-source, you can use that as a guide.

Name: Anonymous 2010-06-05 5:50

>>9
Ok I'll try

Name: Anonymous 2010-06-23 15:44

What I have so far :



//Add x's to threads
if(read){
    var temp = document.evaluate('//div[@class="thread"]/preceding-sibling::H2', document.body, null, 8, null).singleNodeValue//
    var threadX = document.createElement('a')
    threadX.style.cursor = 'pointer'
    var re = new RegExp(window.location.href, '')
    threadX.textContent = re.test(GM_getValue(board)) ? 'X' : 'x'
    temp.insertBefore(document.createTextNode(' '), temp.firstChild)
    temp.insertBefore(threadX, temp.firstChild)
    threadX.addEventListener('click', function(){toggleThread(this)}, true)
    }
else
    Array.forEach(document.getElementsByClassName('replies'), function(el){
        var threadX = document.createElement('a')
        threadX.style.cursor = 'pointer'
        re = new RegExp(el.nextSibling.nextSibling.href, '')
        threadX.textContent = re.test(GM_getValue(board)) ? 'X' : 'x'
        el.parentNode.insertBefore(threadX, el.nextSibling)
        el.parentNode.insertBefore(document.createTextNode(' '), el.nextSibling)
        threadX.addEventListener('click', function(){toggleThread(this)}, true)
        })

from http://userscripts.org/scripts/review/46168


onClick execute thread hiding function somewhere in this code form 4chan X: 

const board = window.location.pathname.match(/\w+/)[0]
var hidden = GM_getValue(board, '')
GM_addStyle(".navlinks { text-align: right }\
.navlinks > a { text-decoration: none; font-size: 16px;}\
.load { font-size: 16px; cursor: pointer; font-weight: bold }")

function x (xpath, type, el) {
    el = el ? el : document.body
    var result = document.evaluate(xpath, el, null, type, null)
    if (type == 8)
        return result.singleNodeValue
    else{//type = 6
        var a = []
        for(var i = 0, item; item = result.snapshotItem(i); i++)
            a[i] = item
        return a
    }

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