[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/b32/ - Cancer moderated /b/

It's not that time again.

Catalog

8chan Bitcoin address: 1NpQaXqmCBji6gfX8UgaQEmEstvVY7U32C
The next generation of Infinity is here (discussion) (contribute)
Email
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Oekaki
Show oekaki applet
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, swf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 5 per post.


UPDATED(5/31/15): Rules: http://www.8ch.net/b32/rules.html || Feel free to report posts violating this boards rules
View /b32/s actions: https://8ch.net/log.php?board=b32

File: 1432864465869.webm (7.53 MB, 1280x720, 16:9, i_need_a_cig_now.webm)

 No.96

Here's the only one you really need for javascript, it animates all gif thumbnails:

$('document').ready(function () {
var animateGif = function () {
if ($(this).children('img.post-image').attr('src') != '/static/spoiler.png')
$(this).children('img.post-image').attr('src', $(this).attr('href'));
}

$('div.file').children('a[href*=".gif"]').each(animateGif);
$(document).on('new_post', function (e, post) {
$(post).find('div.file').children('a[href*=".gif"]').each(animateGif);
});
});

 No.100


 No.109

>>100

Meh I like the newest tool design


 No.173

>>>/g/

has some good ones, I don't really go there. Probably could find some good ones there.


 No.951

// put 8archive.moe links after every post

//TODO: in the future make it so archive links work everywhere
if (window.location.pathname != "/"+board_name+"/index.html"
&& window.location.pathname != "/"+board_name+"/") {

var intros = document.getElementsByClassName("intro");

var threadNo = window.location.pathname.slice(window.location.pathname.lastIndexOf('/')+1, -5);

var archivelink_url = "http://8archive.moe/"+board_name+"/thread/"+threadNo;

var archivelink_anchor = document.createElement("a");
archivelink_anchor.appendChild(document.createTextNode("Archive"));
archivelink_anchor.setAttribute("target", "8archive_"+board_name+"_"+threadNo); //comment out if you don't want one tab per thread
archivelink_anchor.setAttribute("style", "text-decoration: none;");

archivelink_anchor.setAttribute("href", archivelink_url);
intros[0].appendChild(archivelink_anchor);

for (var i = 1; i < intros.length; i++) {

var postNo = intros[i].firstElementChild.id;

var archivelink_anchor_copy = archivelink_anchor.cloneNode(true);
archivelink_anchor_copy.setAttribute("href", archivelink_url+"/#"+postNo);
intros[i].appendChild(archivelink_anchor_copy);
}
}


 No.955


function hide() {
this.style.display = 'none';
}
//hide reply list
$('.mentioned').each(hide);




[Return][Go to top][Catalog][Post a Reply]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]