Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name test code
// @version 1.0
// @match *://*/*
// @run-at document-start
// ==/UserScript==
const selector = '*';
function yourFunction(target)
// ==UserScript==
// @name preLoadNextPage
// @author autoxbc
// @version 1.0
// @match *://movie.douban.com/*
// @run-at document-start
// @require https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.19.1/URI.js
// @grant GM_addStyle
// ==/UserScript==
class Scheduler {
add(promiseCreator) {
// 需要实现
const [ runnings , pendings , tick ] = [
['runnings', { size: 0 } ],
['pendings', [] ],
['tick', () => {
if( pendings.length === 0 )
return;
@autoxbc
autoxbc / keepFocused.js
Created May 18, 2018 07:46
keepFocused
// ==UserScript==
// @name keepFocused
// @version 0.1
// @match *://*/*
// @run-at document-start
// ==/UserScript==
const blackList = /v2ex|jandan/ig ;
const keepFocused = target => {