Skip to content

Instantly share code, notes, and snippets.

@otizis
otizis / panvideoRate.user.js
Created April 1, 2019 10:09
百度网盘播放调速
// ==UserScript==
// @name 百度网盘播放调速
// @namespace http://jaxer.cc/
// @version 1.0
// @description 百度网盘播放调速,1.5倍
// @author jaxer
// @match https://pan.baidu.com/play/video
// @require https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js
// @grant none
// ==/UserScript==
@otizis
otizis / jsbox lite
Last active March 4, 2018 10:04
jsbox 设置一个音乐的播放速度
$ui.render({
views: [
{
type: "web",
props: {
html: "<audio id='audio' controls='controls'"
+ " src='https://m7.music.126.net/20180304180749/3bcce8d6922c2a9539bd406eda21e0af/ymusic/87b2/b6b6/2862/25c7104cecb596141c14328f7f949e05.mp3'></audio>"
},
events: {
setPlayRate: function (object) {
@otizis
otizis / mouseMove.html
Created March 21, 2017 03:32
监听鼠标移动,分层移动图层
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>测试分层移动</title>
<style>
.box{
position: absolute;
opacity: 0.5;
@otizis
otizis / canvas.html
Created March 17, 2017 09:06
学习canvas的操作
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<canvas id="myCanvas" width="600" height="400" style="border: 1px black solid"></canvas>
<script>
function Dot(centerX, centerY, color,startx,starty) {