Skip to content

Instantly share code, notes, and snippets.

@ZhangDaJing
ZhangDaJing / xuexicn-study-automatically.user.js
Created February 18, 2019 14:56 — forked from zklhp/xuexicn-study-automatically.user.js
xuexi.cn study automatically UserScript
// ==UserScript==
// @name xuexi.cn study automatically
// @namespace https://github.com/zklhp
// @icon https://www.xuexi.cn/favicon.ico
// @version 1.0.4
// @description With this, you can view articles and videos automatically on xuexi.cn
// @author Chris Zheng <https://chriszheng.science/>
// @grant unsafeWindow
// @match *://*.xuexi.cn/*
// ==/UserScript==
<?php
error_reporting(1);
$target = __DIR__ . '/../website.com'; // 生产环境web目录
$token = '您在coding填写的hook令牌';
$wwwUser = 'apache';
$wwwGroup = 'apache';
$json = json_decode(file_get_contents('php://input'), true);