8chan Beta Infinity

Filling up missing functions from 8chan beta

// ==UserScript==
// @name         8chan Beta Infinity
// @version      0.0.0.3
// @description  Filling up missing functions from 8chan beta
// @include        https://beta.8ch.net/*
// @namespace https://greasyfork.org/users/2657
// ==/UserScript==

setInterval(function () { 
if (! $('#author').val()) {wholething()};
}, 3000);

function wholething(){
//backlink generator
/*function backlink(){
    $('.cite').not('.done').each(function() {
        $(this).addClass('done');
        var from = $(this).parent().parent().parent().parent().find('.post-reply').attr('data-board_id');
        var to = $(this).attr('data-board_id');
        $('#reply-'+to+'').after('<span style="color:red;text-decoration:underline;cursor:pointer;cursor:hand;" class="" data-board_id="'+from+'">  >>'+from+'</span>');
    });
};
backlink();*/

//hover generator
/*$(document).on('mouseenter', ".cite-post", function() {
    var htop = $(this).offset().top;
    var hleft = $(this).offset().left;
    var to = $(this).attr('data-board_id');
    var d = $("<div></div>").addClass('floater').attr({
        style : "z-index:9999;background:#484848;position:absolute;width:800px;"
    });
    d.html($('#reply-'+to+'').parent().parent().html());
    $('.floater').css("top", htop+50).css("left",(hleft-200));
    $(this).append(d);
    $('.post-actions').hide();
});

$(document).on('mouseleave', '.cite-post', function() {
    $('.floater').remove();
});
*/


//new post detector
var count = $('.reply-container')
    $( document ).ajaxComplete(function() {
        var recount = $('.reply-container')
        if (recount.length > count.length) {
            count = recount;
            //backlink();
            autoplay();
        }
    });


/*$(window).on('au-updated.ib-post', function (e, posts) {
    autoplay();
});*/

//tripcode saver

    if (localStorage.getItem("trip")){$('#author').val(localStorage.getItem("trip"))};
    $('#author').change(function () {
        localStorage.setItem("trip", $('#author').val()) 
    });


//arrows

//NewArrows
darkarrow = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8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ur2e6e5G2R77xNA4u/7iscBYC8wEkBfy3AVXipxmkr+BUCsVcOCy7VoMOfAP9g99i/yWtOLcCLAn5njdecuoGXgCu/8WtO9wC1HtgHbAP2A0/ZpiSB80BCXjrrBUZao1GNz+H5vwEAulUj3hhwhlcAAAAASUVORK5CYII=';

function newarrows(){
    $('body').append("<div class='circle' style='position:fixed;right:15%;bottom:10%;'><font size='30'><a class='upa' alt='Scroll Up' style='text-decoration: none;display:block;color:black;' href='javascript:window.scrollTo(0,0);'><img class='uparrow arr' src='"+darkarrow+"'></a><a class='downa' style='text-decoration: none;color:black !important;' href='javascript:window.scrollTo(0,900000000);'><img class='downarrow arr' style='-moz-transform: scaleY(-1);-o-transform: scaleY(-1);-webkit-transform: scaleY(-1);transform: scaleY(-1);filter: FlipV;-ms-filter: \"FlipV\";' src='"+darkarrow+"'></a></div>");
};

$(document).on('mouseenter', ".arr", function() {
    $(this).attr('src', lightarrow);
});

$(document).on('mouseleave', ".arr", function() {
    $(this).attr('src', darkarrow);
});

$(window).scroll(function() {
    if($(window).scrollTop() + $(window).height() > $(document).height() - 100) {
        $('.downa').hide();
    } else {$('.downa').show();};

    if ($(window).scrollTop() - 100 <= 0) {
        $('.upa').hide();
    } else {$('.upa').show();};
});
newarrows();


//autoplay webm gif
function autoplay(){
    $('.attachment-link[href*="webm"], .attachment-link[href*="gif"]').not('.done').each(function() {
        $(this).addClass('done');    
        var url= $(this).attr('href');

        var size = $(this).parent().find('.detail-filesize').html();
        if (size.indexOf('MiB') >= 0) {
            size = $(this).parent().find('.detail-filesize').html().slice(1,5);
            size = parseInt(size);
            if (size <= 2){
                if (url.indexOf('webm') >= 0) {$(this).html('<video src="'+url+'" autoplay loop muted style="width:200px;height:auto;z-index:1500;">');} else {$(this).html('<img src="'+url+'" style="width:200px;height:auto;">');}
            }
        } else {        
            if (url.indexOf('webm') >= 0) {$(this).html('<video src="'+url+'" autoplay loop muted style="width:200px;height:auto;z-index:1500;">');} else {$(this).html('<img src="'+url+'" style="width:200px;height:auto;">');}
        }
    });

};

autoplay();
};
wholething();