Efficient learning is inseparable from clear and double-speed online courses||【Computer Master】Postgraduate study resource sharing

I have been taking the postgraduate entrance examination for 23 years, and I will share some resources I used when preparing for the exam. I wish everyone a successful landing!


Public number: Kaka PubMed

I found the electronic versions of various books, such as Xiao Ba Xiao Si and Zhang Yu's 36 Lectures, here.

Website: Title of Gold List

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

All kinds of online course resources, political high mathematics English 408 are available, and they are all the latest versions.


At that time, it took a lot of effort to find resources, and I sincerely thank them. When I used them, they were all free of charge, without any routines. It was my luck to find them, and now I share them with you.

Original text: 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);
})();

Guess you like

Origin blog.csdn.net/tfnmdmx/article/details/126815672