Maxhu787 / ptccjh.teamslite.com.tw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

16

A script for ptccjh.teamslite.com.tw

How it works

It basically just appends a button element to the document object model (DOM) and when you click the button it sets video playbackrate to 16

Usage

  1. Go to ptccjh.teamslite.com.tw
  2. Open up console Ctrl + Shift + i
  3. Paste in the script
let a = document.getElementsByClassName("playbackRateButtons")[0]
let btn = document.createElement("btn");
btn.classList.add("btn");
btn.classList.add("blue");
btn.innerHTML = "16.0X";
btn.style.padding = "7px 32px";
btn.onclick = () => {
    document.querySelector("video").playbackRate = 16.0;
    document.getElementsByClassName('active')[0].classList.remove('active');
    btn.style.backgroundColor = "#f00"
}
a.appendChild(btn)
  1. You will now see a button with the value 16.0X

  2. Click on it and the playback rate should change



About

License:Apache License 2.0


Languages

Language:JavaScript 100.0%