一言:随机返回一句话
GET https://v1.hitokoto.cn/
(function () { | |
function clickElement(element) { | |
return new Promise((resolve, reject) => { | |
const event = new MouseEvent("click", { bubbles: true, cancelable: true }); | |
element.dispatchEvent(event); | |
setTimeout(() => resolve(element), 500); | |
}); | |
} | |
async function start() { |
chrome.browserAction.onClicked.addListener(function(tab) { | |
chrome.windows.create({ | |
url: "panel.html", | |
width: 320, | |
height: 480, | |
type: 'panel' | |
}); | |
}); |
{ | |
"name": "Detect if an extension installed", | |
"description": "Detect if an extension installed", | |
"version": "0.1", | |
"manifest_version": 2, | |
"permissions": [ | |
"management" | |
], | |
"browser_action": { | |
"default_popup": "popup.html" |
alert('hello ' + document.location.href); |
chrome.runtime.onMessage.addListener( | |
function(message, sender, sendResponse) { | |
console.log(`${message} in content1`) | |
sendResponse(`${message} from content1`) | |
// setTimeout(() => { | |
// sendResponse(`${message} from content1`) | |
// }, 2000) | |
// | |
// return true | |
} |
// ==UserScript== | |
// @name 九酷音乐网mp3下载 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.9ku.com/play/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
#-*- coding: utf-8 | |
""" | |
requirements: | |
PyExecJS | |
requests | |
""" | |
import sys, os, re, requests, execjs | |
def get_page_list(content): | |
print ' Fetching page list ...' |
// ==UserScript== | |
// @name HabitRPG - Hide System Messages in Party | |
// @namespace https://anl.gg/ | |
// @version 0.1.1 | |
// @description Don't show system messages in party by default. | |
// @author greatghoul | |
// @match https://habitica.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=habitica.com | |
// @grant none | |
// ==/UserScript== |