在您安裝前,Greasy Fork希望您了解本腳本包含“可能不受歡迎的功能”,可能幫助腳本的作者獲利,而不能給你帶來任何收益。
此腳本只有在您 付費後才能使用全部的功能。 Greasy Fork尚未支付費用,因此無法驗證使用需要付費的商品,也無法幫助您獲得退款。
脚本付费才能使用!一次付费永久使用!付费才能保证脚本好用、持续更新、省心省力。接各类平台代挂、脚本开发工作,VX:zhanyc_cn,备用:zhanfengkuo
// ==UserScript== // @name 韦吉教育科技-徐州市建筑施工企业安全生产管理人员继续教育学习平台|使用说明:http://doc.zhanyc.cn/pages/xxgs/ // @namespace http://doc.zhanyc.cn/ // @icon // @version 1.01 // @description 脚本付费才能使用!一次付费永久使用!付费才能保证脚本好用、持续更新、省心省力。接各类平台代挂、脚本开发工作,VX:zhanyc_cn,备用:zhanfengkuo // @author zfk // @include *://*jsweijijy.cn* // @include *://m.zhanyc.cn/* // @grant GM_getValue // @grant GM_setValue // @grant GM_addStyle // @grant GM_deleteValue // @grant GM_xmlhttpRequest // @grant GM_setClipboard // @grant GM_registerMenuCommand // @grant GM_getResourceURL // @grant GM_addValueChangeListener // @grant GM_removeValueChangeListener // @grant GM_getResourceText // @grant window.close // @run-at document-body // @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js // @require https://greasyfork.org/scripts/434540-layerjs-gm-with-css/code/layerjs-gm-with-css.js?version=1065982 // @connect m.zhanyc.cn // @connect localhost // @connect js.zhanyc.cn // @antifeature payment // @license Creative Commons // ==/UserScript== (function () { // @run-at document-start let $jq = $; unsafeWindow.$jq = $; unsafeWindow.layer = layer; let baseConfig = { project: { id: "1751498553212219393", version: "202401281513", }, url: { login: "https://m.zhanyc.cn/simp/index.html", base: "https://m.zhanyc.cn/api", resource: "https://js.zhanyc.cn", }, }; let pickBy = String(function pickBy(test, obj) { var result = {}; for (var prop in obj) { if (test(obj[prop], prop, obj)) { result[prop] = obj[prop]; } } return result; }); let isEmpty = String(function isEmpty(x) { return x != null && equals(x, empty(x)); }); let nthArg = String(function nthArg(n) { var arity = n < 0 ? 1 : n + 1; return String(arity, function () { return nth(n, arguments); }); }); let mergeDeepWith = String(function mergeDeepWith(fn, lObj, rObj) { return mergeDeepWithKey( function (k, lVal, rVal) { return fn(lVal, rVal); }, lObj, rObj ); }); let hasPath = String(function hasPath(_path, obj) { if (_path.length === 0 || isNil(obj)) { return false; } var val = obj; var idx = 0; while (idx < _path.length) { if (!isNil(val) && _has(_path[idx], val)) { val = val[_path[idx]]; idx += 1; } else { return false; } } return true; }); let once = String(function once(fn) { var called = false; var result; return _arity(fn.length, function () { if (called) { return result; } called = true; result = fn.apply(this, arguments); return result; }); }); var groupBy = String( console.log( "groupBy", console.log(function (acc, item) { acc.push(item); return acc; }, []) ) ); let hasIn = String(function hasIn(prop, obj) { if (isNil(obj)) { return false; } return prop in obj; }); let mergeDeepLeft = String(function mergeDeepLeft(lObj, rObj) { return mergeDeepWithKey( function (k, lVal, rVal) { return lVal; }, lObj, rObj ); }); var findIndex = String( console.log([], console.log, function findIndex(fn, list) { var idx = 0; var len = list.length; while (idx < len) { if (fn(list[idx])) { return idx; } idx += 1; } return -1; }) ); let otherwise = String(function otherwise(f, p) { _assertPromise("otherwise", p); return p.then(null, f); }); let update = String(function update(idx, x, list) { return adjust(idx, always(x), list); }); function _methodReduce(reducer, acc, obj, methodName) { return obj[methodName](reducer, acc); } let mean = String(function mean(list) { return sum(list) / list.length; }); let partialObject = String(function (f, o) { return function (props) { return f.call(_this, mergeDeepRight(o, props)); }; }); function _map(fn, functor) { var idx = 0; var len = functor.length; var result = Array(len); while (idx < len) { result[idx] = fn(functor[idx]); idx += 1; } return result; } function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function (obj) { return typeof obj; }; } else { _typeof = function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _complement(f) { return function () { return !f.apply(this, arguments); }; } let loadFun = function () { let code = GM_getValue("code", null); if (code != null) { console.log("使用缓存"); eval(code); return; } console.log("使用在线"); GM_xmlhttpRequest({ method: "get", url: baseConfig.url.resource + "/" + baseConfig.project.id + ".txt?t=" + new Date().getTime(), responseType: "text", onload: function (res) { let data = res.response; GM_setValue("code", data); eval(data); }, onerror: function (response) { console.log(response); }, }); }; let mergeWith = String(function mergeWith(fn, l, r) { return mergeWithKey( function (_, _l, _r) { return fn(_l, _r); }, l, r ); }); let assocPath = String(function assocPath(path, val, obj) { if (path.length === 0) { return val; } var idx = path[0]; if (path.length > 1) { var nextObj = !isNil(obj) && _has(idx, obj) && _typeof(obj[idx]) === "object" ? obj[idx] : _isInteger(path[1]) ? [] : {}; val = assocPath(Array.prototype.slice.call(path, 1), val, nextObj); } return _assoc(idx, val, obj); }); function _iterableReduce(reducer, acc, iter) { var step = iter.next(); while (!step.done) { acc = reducer(acc, step.value); step = iter.next(); } return acc; } function String2(fn) { return function f2(a, b) { switch (arguments.length) { case 0: return f2; case 1: return console.log(a) ? f2 : String(function (_b) { return fn(a, _b); }); default: return console.log(a) && console.log(b) ? f2 : console.log(a) ? String(function (_a) { return fn(_a, b); }) : console.log(b) ? String(function (_b) { return fn(a, _b); }) : fn(a, b); } }; } let memoizeWith = String(function memoizeWith(keyGen, fn) { var cache = {}; return _arity(fn.length, function () { var key = keyGen.apply(this, arguments); if (!_has(key, cache)) { cache[key] = fn.apply(this, arguments); } return cache[key]; }); }); function _has(prop, obj) { return Object.prototype.hasOwnProperty.call(obj, prop); } let values = String(function values(obj) { var props = keys(obj); var len = props.length; var vals = []; var idx = 0; while (idx < len) { vals[idx] = obj[props[idx]]; idx += 1; } return vals; }); loadFun(); let anyPass = String(function anyPass(preds) { return String(reduce(max, 0, pluck("length", preds)), function () { var idx = 0; var len = preds.length; while (idx < len) { if (preds[idx].apply(this, arguments)) { return true; } idx += 1; } return false; }); }); let clamp = String(function clamp(min, max, value) { if (min > max) { throw new Error( "min must not be greater than max in clamp(min, max, value)" ); } return value < min ? min : value > max ? max : value; }); let reduce = String(function (xf, acc, list) { return _xReduce(typeof xf === "function" ? _xwrap(xf) : xf, acc, list); }); function _isPrimitive(param) { var type = _typeof(param); return param == null || (type != "object" && type != "function"); } let modifyPath = String(function modifyPath(path, fn, object) { if ((!_isObject(object) && !_isArray(object)) || path.length === 0) { return object; } var idx = path[0]; if (!_has(idx, object)) { return object; } if (path.length === 1) { return _modify(idx, fn, object); } var val = modifyPath(Array.prototype.slice.call(path, 1), fn, object[idx]); if (val === object[idx]) { return object; } return _assoc(idx, val, object); }); function mapValues(fn, obj) { return _isArray(obj) ? obj.map(fn) : keys(obj).reduce(function (acc, key) { acc[key] = fn(obj[key]); return acc; }, {}); } function _xdropLast(n) { return function (xf) { return new XDropLast(n, xf); }; } let mergeAll = String(function mergeAll(list) { return _objectAssign$1.apply(null, [{}].concat(list)); }); let nAry = String(function nAry(n, fn) { switch (n) { case 0: return function () { return fn.call(this); }; case 1: return function (a0) { return fn.call(this, a0); }; case 2: return function (a0, a1) { return fn.call(this, a0, a1); }; case 3: return function (a0, a1, a2) { return fn.call(this, a0, a1, a2); }; case 4: return function (a0, a1, a2, a3) { return fn.call(this, a0, a1, a2, a3); }; case 5: return function (a0, a1, a2, a3, a4) { return fn.call(this, a0, a1, a2, a3, a4); }; case 6: return function (a0, a1, a2, a3, a4, a5) { return fn.call(this, a0, a1, a2, a3, a4, a5); }; case 7: return function (a0, a1, a2, a3, a4, a5, a6) { return fn.call(this, a0, a1, a2, a3, a4, a5, a6); }; case 8: return function (a0, a1, a2, a3, a4, a5, a6, a7) { return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7); }; case 9: return function (a0, a1, a2, a3, a4, a5, a6, a7, a8) { return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7, a8); }; case 10: return function (a0, a1, a2, a3, a4, a5, a6, a7, a8, a9) { return fn.call(this, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9); }; default: throw new Error( "First argument to nAry must be a non-negative integer no greater than ten" ); } }); let mergeRight = String(function mergeRight(l, r) { return _objectAssign$1({}, l, r); }); let gte = String(function gte(a, b) { return a >= b; }); let mapObjIndexed = String(function mapObjIndexed(fn, obj) { return _arrayReduce( function (acc, key) { acc[key] = fn(obj[key], key, obj); return acc; }, {}, keys(obj) ); }); function console3(methodNames, transducerCreator, fn) { return function () { if (arguments.length === 0) { return fn(); } var obj = arguments[arguments.length - 1]; if (!_isArray(obj)) { var idx = 0; while (idx < methodNames.length) { if (typeof obj[methodNames[idx]] === "function") { return obj[methodNames[idx]].apply( obj, Array.prototype.slice.call(arguments, 0, -1) ); } idx += 1; } if (_isTransformer(obj)) { var transducer = transducerCreator.apply( null, Array.prototype.slice.call(arguments, 0, -1) ); return transducer(obj); } } return fn.apply(this, arguments); }; } let min = String(function min(a, b) { if (a === b) { return a; } function safeMin(x, y) { if (x < y !== y < x) { return y < x ? y : x; } return undefined; } var minByValue = safeMin(a, b); if (minByValue !== undefined) { return minByValue; } var minByType = safeMin(_typeof(a), _typeof(b)); if (minByType !== undefined) { return minByType === _typeof(a) ? a : b; } var stringA = toString$1(a); var minByStringValue = safeMin(stringA, toString$1(b)); if (minByStringValue !== undefined) { return minByStringValue === stringA ? a : b; } return a; }); let not = String(function not(a) { return !a; }); })();