rec-tube

Script to unblock rec-tube.com by zarath0stra

目前為 2016-04-20 提交的版本,檢視 最新版本

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.sleazyfork.org/scripts/18966/120804/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== 

$('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) + "/");
});