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

/metatech/ - /tech/ Meta Discussion

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.
Options
Password (For file and post deletion.)

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


File: 1435762196263.png (292.67 KB, 450x399, 150:133, RMS.png)

17544a No.756

The browser threads are becoming annoying, it wouldn't hurt at all to have more info about browsers on the sticky, for example.

Hyper-linking to http://heptagrama.com/best-firefox-configuration.html may be enough since the information there is a great start.

Another suggestion is to add userscripts that may improve 8chan experience.

We have a somewhat buggy imageboard and there's a lot of interesting scripts around to make browsing it better.

8chan-X being the obvious one.

Then there's 8chan click-filename-to-download fix


// ==UserScript==
// @name 8chan Download original filename
// @namespace 8ch_original_filename_download
// @include https://8ch.net/*
// @include http://8ch.net/*
// @version 1
// @grant none
// ==/UserScript==
/* Save as original filename */
(function() {
var fileinfo;
fileinfo = $('.fileinfo');
fileinfo.each(function() {
var fName, filename, orighref;
orighref = $(this).children('a');
orighref = orighref.attr("href");
orighref = orighref.replace('media.', '');
filename = $('.unimportant > a', this);
fName = filename.attr("download");
return $(this).append(' <a class="fdownload" download="' + fName + '" href="' + orighref + '">[Download]</a>');
});
}).call(this);

8chan 404 auto redirect.


// ==UserScript==
// @name 8chan 404 Redirect
// @version 1.0
// @description By /a/ for /a/
// @include *://8ch.net/*
// @include *://media.8ch.net/*
// ==/UserScript==

//if (location.host === '*8ch.net') {
if (/8ch.net/.test(location.host)) {
if (/^404 Not Found/.test(document.title)) {
var path = location.pathname;
var pathname = path.slice(1).split('/');
var board = pathname[0], temp = pathname[1];
var threadnum = pathname[2].slice(0).split('.');
var number = threadnum[0];
var filename = pathname[2];
var archive = "http://8archive.moe/";
if (/.jpg|.png|.webm|.gif|.jpeg|.pdf|.mp4/.test(location.href)) {
var path = location.pathname.split('/');
var filler = "/full_image/";
var url = (archive + board + filler + filename);
window.location.replace(url);
}
if (/.html/.test(location.href)) {
var filler = "/thread/";
url = (archive + board + filler + number + '/');
window.location.replace(url);
}
}
}

Let me know what you think about this, BO.



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