Skip to content

Instantly share code, notes, and snippets.

@guider
guider / 彩云小译.js
Created November 18, 2021 03:23 — forked from ravenxrz/彩云小译.js
彩云小译油猴脚本
// ==UserScript==
// @name 彩云小译
// @namespace https://github.com/yandd
// @version 1.1.0
// @icon https://www.caiyunapp.com/favicon.ico
// @description 彩云小译 提供中英对照翻译
// @author yandd <https://github.com/yandd>
// @supportURL https://github.com/yandd
// @match *://*/*
// @run-at document-end
var CryptoJS = require('crypto-js')
var request = require('request-promise')
/*
* npm install crypto-js request-promise
* node wx_t1t_hack.js
*/
// export function testEncription(msg, fullKey) {
// var fullKey = fullKey.slice(0, 16)
@guider
guider / unwxapkg.py
Created January 1, 2018 16:33 — forked from feix/unwxapkg.py
#!/usr/bin/env python2
# lrdcq
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0
@guider
guider / unwxapkg.py
Created January 1, 2018 16:32 — forked from thedreamwork/unwxapkg.py
unpack wxapkg
#!/usr/bin/python
# usage python unwxapkg.py filename
import sys,os
import struct
class WxapkgFile:
nameLen = 0
name = ""
@guider
guider / autoplay-audio-ios.html
Created November 17, 2017 03:46 — forked from ufologist/autoplay-audio-ios.html
在 iOS 微信浏览器中自动播放 HTML5 audio(音乐) 的正确方式
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>Auto play html audio in iOS WeChat InAppBrowser the right way</title>
</head>
<body>
<h1>在 iOS 微信浏览器中自动播放 HTML5 audio(音乐) 的正确方式</h1>
<p>核心原理: 在微信的JS-API 中 play 一下 audio 即可达到自动播放的目的(应该是微信自己做了处理)</p>