Skip to content

Instantly share code, notes, and snippets.

@zixaphir
zixaphir / lower right hand corner quotes.css
Created October 23, 2011 08:29
lower right hand corner quotes
form[name='delform'] td.reply,
form[name='delform'] td.replyhl {
display: inline-block;
position: relative !important;
}
td .container,
#qp .container {
position: absolute;
bottom: 5px;
@zixaphir
zixaphir / boardhighlighting.css
Created October 31, 2011 03:57
board highlighting
/* Current Board Navigation Highlight, mostly based off of CSS from 4chan ~ Momiji by !K.WeEabo0o. */
@-moz-document url-prefix(http://boards.4chan.org/a/) {
#navtop > a[href*='/a/'] { background: rgba(0,0,0,0.3) !important; color: #ccc !important; font-weight: 700 !important; }
#navtop > a[href*='/a/']:hover { background: rgba(255,255,255,.15) !important; }
}
@-moz-document url-prefix(http://boards.4chan.org/b/) {
#navtop > a[href*='/b/'] { background: rgba(0,0,0,0.3) !important; color: #ccc !important; font-weight: 700 !important; }
#navtop > a[href*='/b/']:hover { background: rgba(255,255,255,.15) !important; }
}
@zixaphir
zixaphir / AppChan X Alert
Created September 6, 2012 00:36
AppChan X Alert
// ==UserScript==
// @name AppChan x
// @version 0.6.5beta
// @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/*
// ==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/*
$.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
ThemeTools =
init: (key) ->
editMode = true
unless newTheme
Style.addStyle userThemes[key]
if newTheme
editTheme = {}
editTheme["Theme"] = "Untitled"
editTheme["Author"] = "Author"
editTheme["Author Tripcode"] = "Unknown"
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']
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
// ==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/*