This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
lvim is the global options object | |
Linters should be | |
filled in as strings with either | |
a global executable or a path to | |
an executable | |
]] | |
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"command": "vscode-neovim.compositeEscape1", | |
"key": "j", | |
"when": "neovim.mode == insert && editorTextFocus", | |
"args": "j" | |
}, | |
{ | |
"command": "vscode-neovim.compositeEscape2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
rate: 1, // playing rate | |
interval: 1 // the interval for check video ended | |
} | |
const play = () => { | |
const video = document.querySelector('video'); | |
if (video && video.ended) { | |
console.log('AutoXuetangx now change to play next video.'); | |
const list = document.querySelector('ul.active'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let lastModifiedAt = new Date(); | |
fetch(document.URL, { | |
mode: 'cors', | |
headers: { | |
'if-modified-since': lastUpdatedAt.toUTCString(), | |
} | |
}) | |
.then(resp => { | |
if(resp.status === 304) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.onvisibilitychange = a => a; | |
const play = a => { | |
const v = document.querySelector('video'); | |
v.play(); | |
v.playbackRate = 16; | |
document.hidden = false; | |
} | |
setInterval(a => play(),100); |