Skip to content

Instantly share code, notes, and snippets.

@zixaphir
zixaphir / InfiniScroll.coffee
Created October 20, 2013 00:49
4chan X Infinite Scrolling
InfiniScroll =
init: ->
return unless Conf['Infinite Scrolling'] and g.VIEW is 'index' and g.BOARD isnt 'f'
@threads = g.threads
$.on d, '4chanXInitFinished', @ready
ready: ->
$.off d, '4chanXInitFinished', InfiniScroll.ready
@zixaphir
zixaphir / gist:7049997
Created October 18, 2013 23:55
Starting on Infinite Scrolling (shh, don't tell)
InfiniScroll =
init: ->
return unless g.VIEW is 'index' and Conf['Infinite Scroll']
@threads = g.threads
$.on d, '4chanXInitFinished', @ready
ready: ->
$.off d, '4chanXInitFinished', InfiniScroll.ready
@zixaphir
zixaphir / nightlycaek.css
Created August 18, 2013 16:33
Nightly Caek 4(?)
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/*
_____________________________________________________________________________
| | |
| Title: | Nightly Caek Mk.V by Zix |
|__________________|__________________________________________________________|
*/
/*
scrollbar, scrollbar thumb {
-moz-appearance: none !important;
// ==UserScript==
// @name appchan x
// @namespace zixaphir
// @version 1.2.0
// @description Cross-browser userscript for maximum lurking on 4chan.
// @copyright 2013 Zixaphir <zixaphirmoxphar@gmail.com>
// @copyright 2009-2011 James Campos <james.r.campos@gmail.com>
// @copyright 2013 Nicolas Stepien <stepien.nicolas@gmail.com>
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @match *://*.4chan.org/*
for i in [0..@value.length - 1]
switch @value[i]
when '(' then depth++
when ')' then depth--
when '"'
if toggle1 then toggle1 = false
else then toggle1 = true
when '\''
if toggle2 then toggle2 = false
else then toggle2 = true
Config =
main:
Enhancing:
'Disable inline 4chan addon': [true, 'Avoid conflicts between 4chan X and 4chan\'s inline extension. <span class=disabledwarning><code>Style</code> is enabled. This option will be enabled regardless of this setting\'s value.</span>']
'404 Redirect': [true, 'Redirect dead threads and images']
'Keybinds': [true, 'Binds actions to keys']
'Time Formatting': [true, 'Arbitrarily formatted timestamps, using your local time']
'File Info Formatting': [true, 'Reformats the file information']
'Comment Expansion': [true, 'Expand too long comments']
'Thread Expansion': [true, 'View all replies']
ThemeTools =
init: (key) ->
editMode = true
unless newTheme
Style.addStyle userThemes[key]
if newTheme
editTheme = {}
editTheme["Theme"] = "Untitled"
editTheme["Author"] = "Author"
editTheme["Author Tripcode"] = "Unknown"
$.on $('a.delete', div), 'click', ->
container = @.parentElement.parentElement
unless container.previousSibling or container.nextSibling
alert "Cannot delete theme (No other themes available)."
return
if container.id == Conf['theme']
if settheme = container.previousSibling
$.addClass settheme, 'selectedtheme'
$.set 'theme', settheme.id
Conf['theme'] = settheme.id
// ==UserScript==
// @name AppChan x
// @version 0.8beta
// @namespace zixaphir
// @description Adds various features and stylings.
// @copyright 4chan x - 2009-2011 James Campos <james.r.campos@gmail.com>
// @copyright 4chan x - 2012 Nicolas Stepien <stepien.nicolas@gmail.com>
// @copyright Appchan x - 2012 Zixaphir <zixaphirmoxphar@gmail.com>
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @include http://boards.4chan.org/*
@zixaphir
zixaphir / gist:3714089
Created September 13, 2012 12:45
appchan x with theme dialog
// ==UserScript==
// @name AppChan x
// @version 0.8beta
// @namespace zixaphir
// @description Adds various features and stylings.
// @copyright 4chan x - 2009-2011 James Campos <james.r.campos@gmail.com>
// @copyright 4chan x - 2012 Nicolas Stepien <stepien.nicolas@gmail.com>
// @copyright Appchan x - 2012 Zixaphir <zixaphirmoxphar@gmail.com>
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @include http://boards.4chan.org/*