高效学习离不开清晰可倍速的网课||【计算机专硕】考研学习资源分享

本人23年考研,分享一些我备考时用的资源,祝大家成功上岸!


公众号:卡卡考研

各种书籍电子版,我当时肖八肖四、张宇36讲之类的都在这里找到的。

网站:金榜题名

http://qzbltushu.ysepan.com/?xzpd=1

各种网课资源,政治高数英语408都有,也都是最新版。


当时找资源真的花了很大的力气,真诚的感谢他们,我使用的时候都是免费的,无任何套路,能找到他们是我的幸运,现在分享给大家。

原文:https://www.bilibili.com/read/cv18553741?spm_id_from=333.999.0.0

var videos=document.querySelectorAll("video");
for (var video of videos ){ video.playbackRate=2; }
// ==UserScript==
// @name         浮动按钮
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  点击倍速
// @author       tfnmdmx
// @match        https://www.aliyundrive.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=csdn.net
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var button = document.createElement("button"); 
	button.id = "my_control_button";
	button.style.align = "center";
    button.style.position="fixed"
    button.style.right="220px"
    button.style.bottom="20px"
    button.style['z-index']="999999"

    var speed = 1;
    var videos=document.querySelectorAll("video");
    for (var video of videos ){console.log('当前速度:',video.playbackRate); speed = video.playbackRate; }

    button.textContent = speed == 2 ? '恢复原速':'点击倍速';

	//绑定按键点击功能
	button.onclick = function (){
        var videos=document.querySelectorAll("video");
        for (var video of videos ){
            speed = video.playbackRate;
            video.playbackRate = speed==1 ? 2 : 1;
            speed = video.playbackRate;
            console.log('改变速度:',speed);
            button.textContent = speed==2 ? '恢复原速':'点击倍速';
        }
        //点击按钮后,会聚焦在按钮上,此时按空格(暂停键),不能实现暂停
        //以下代码实现强制按钮失焦,并重新聚焦到视频,此时就可以使用空格暂停
        document.getElementById("my_control_button").blur();
        var containers = document.getElementsByClassName("video-previewer-container--3N0eI");
        for (var container of containers ){
            container.focus();
            console.log('重新聚焦');
        }
		return;
	};
    document.body.appendChild(button);
})();
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

tfnmdmx

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值