AV01.tv Redirect Removal

Remove the redirect when click on video tile

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         AV01.tv Redirect Removal
// @name:zh-TW   AV01.tv 跳轉移除
// @namespace    Cache
// @version      0.2
// @description  Remove the redirect when click on video tile
// @description:zh-TW 移除當按影片時跳轉到另一頁
// @author       Cache
// @match        https://www.av01.tv/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=av01.tv
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    //Get all video tiles
    var tiles = document.getElementsByClassName("well-sm");

    //Remove onclick event to the video tile
    for (var i = 0; i < tiles.length; i++) {
        var tile_a = tiles[i].firstElementChild;
        tile_a.removeAttribute('onclick');
    }
})();