rec-tube

Script to unblock rec-tube.com by zarath0stra

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.sleazyfork.org/scripts/18966/120805/rec-tube.js

// ==UserScript==
// @name rec-tube
// @match rec-tube.com/*
// @run-at document-end
// @grant none
// @require https://code.jquery.com/jquery-2.2.3.min.js
// ==/UserScript== 
start();

function start() {
 $('a[href^="/watch"]').each(function(i, n) {
  var glory = $(".images-rotation", n).data("images");
  if(!glory) return;
  var hole = glory[0].substring(8, glory[0].length - 6);

  $(n).parent().trigger('imageRotationRemove');
  $(n).attr("href", "/file/" + btoa(hole) + "/");
 }); 
}