【脚本】B站视频AB复读

打印 上一主题 下一主题

主题 867|帖子 867|积分 2601


控制台输入如下代码,回车
[code]        const video = document.getElementsByTagName("video")[0];

    //获取bpx-player-control-bottom-center容器,更改其布局方式
    const div = document.getElementsByClassName("bpx-player-control-bottom-center")[0];
    div.style.display = "flex";
    div.style.gap = "10px";

    // 创建的A按钮
    const divA = document.createElement("div");
    divA.textContent = "A点";
    divA.style.fontSize = "14px";
    divA.style.cursor = "pointer";
    divA.style.fontWeight = "600";
    divA.style.width = "30px";
    divA.classList.add("bpx-player-ctrl-btn");

    // 创建的B按钮
    const divB = document.createElement("div");
    divB.textContent = "B点";
    divB.style.fontSize = "14px";
    divB.style.cursor = "pointer";
    divB.style.fontWeight = "600";
    divB.style.width = "30px";
    divB.classList.add("bpx-player-ctrl-btn");

    // 创建的清除循环按钮
    const divClear = document.createElement("div");
    divClear.textContent = "清除循环";
    divClear.style.fontSize = "14px";
    divClear.style.cursor = "pointer";
    divClear.style.fontWeight = "600";
    divClear.style.width = "60px";
    divClear.classList.add("bpx-player-ctrl-btn");

    //创建标记A
    const markA = document.createElement("div");
    markA.style.position = "absolute";
    markA.style.left = "0px"; //此处设置位置
    markA.style.top = "0px";
    markA.style.display = "none";
    markA.textContent = "

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

罪恶克星

金牌会员
这个人很懒什么都没写!
快速回复 返回顶部 返回列表