Skip to content

Instantly share code, notes, and snippets.

@KustoSan
KustoSan / ad bypass
Created June 6, 2016 19:28
ouo bypass workaround
$('a').click(function() {
$('a[href*="ouo.io"]').each(function(){
$(this).attr('href',$(this).attr('href')
.replace(/^http.*\/?s=/gm,'')
.replace(/%3A/gm, ':')
.replace(/%2F/gm, '/'));
});
});
// Originally made by Epictek
var username = "username";
var followerspage = 1;
var followers = [];
var a = false;
var getFollowers = setInterval(function() {
$.get("https://hummingbird.me/users?followers_of=" + username + "&page=" + followerspage, function(data) {
$(window).scroll(function() {
var nav = $(".navbar-collapse");
var position = nav.position();
if (position.top >= 0) {
$('#carousel-402664').css("display", 'inherit')
$('#carousel-402664').css("margin-top", -$(window).scrollTop())
} else if (position.top < 0) {
$('#carousel-402664').css("display", 'none')
function TwitchHtml5VideoPlayer() {
// Remove old stuff
SiteOptions.video_experiments = '';
// Does injection stuff
var inject = function() {
setTimeout(function() {
// Window the stuff
if (!window.Ember || !window.App || App.__container__.lookup("controller:application").get("currentRouteName") !== "channel.index") {
return;
@KustoSan
KustoSan / josep.js
Last active September 8, 2015 15:40
$(document).ready(function() {
var tapeteColor = 'az';
var maderaColor = 'cl';
$('a[tapeteColor]').click(function() {
tapeteColor = $(this).attr('tapeteColor');
$('.videoini').attr('src', 'img/' + tapeteColor + '-' + maderaColor + '.jpg');
});
$('a[maderaColor]').click(function() {
@KustoSan
KustoSan / ugoira.js
Last active September 6, 2015 02:50
var b = "https://rawgit.com/antimatter15/jsgif/master/";
var u = [
"LZWEncoder.js", "NeuQuant.js", "GIFEncoder.js", "Demos/b64.js"
];
$("canvas").remove();
var $c = $("<canvas>").appendTo("body");
var ctx = $c[0].getContext("2d");
var d = document;
var i = 0;
@KustoSan
KustoSan / animeflv.js
Created June 11, 2015 14:02
animeflv video resizing + centering
$('#video_player embed').attr('height', '720px').attr('width', '1280').css('position', 'fixed').css('margin', 'auto').css('left', '0').css('right', '0').css('top', '0').css('bottom', '0').css('display', 'block');
$('#navbar').remove();
$('#footer').remove();
$('.sub_bloque').remove();
@KustoSan
KustoSan / imgur.js
Last active September 7, 2015 22:12
Chrome Imgur album download script
i = 0;
while (i != $('.image').length) {
if ($('.image:eq(' + i + ')').attr('id') != undefined) {
link = $('.image:eq(' + i + ')').attr('id');
pic = 'http://i.imgur.com/' + link + '.jpg';
console.log('Downloading ' + pic)
// Get URL vars
function getUrlVars() {
var vars = {};
var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function (m, key, value) {
vars[key] = value;
});
return vars;
}