// ==UserScript== // @name 广西普法云平台复制题目 // @namespace https://wqzai.cn/ // @version 1.0.0 // @description 用于广西普法云平台快捷复制题目然后前往“气测通”小程序搜索答案 // @author wqzai // @match https://exam.gxpf.cn/exam-ing-new.html* // @require https://update.greasyfork.org/scripts/515426/1476406/autologjs.js // @grant GM_xmlhttpRequest // @connect exam.gxpf.cn // ==/UserScript== function _0x41db() { const _0x2679b6 = ['onload', 'getElementById', 'color', 'response', 'appendChild', 'd-flex-item\x20pl-md', '复制成功,前往“气测通”小程序搜索吧!', 'marginLeft', '5px\x2010px', 'getElementsByClassName', '642173EOBSgq', '4730312PiOplN', 'padding', '21636yvaOKe', '1390JksJJj', '2670aMYeEg', 'span', '33SQfBwH', 'writeText', '复制失败', 'createElement', 'parse', 'click', 'subjectName', 'value', '复制题目', 'addEventListener', 'success', '7865MqEtjs', '#1a64f0', '15432pyojBy', 'cursor', 'style', 'backgroundColor', 'textContent', 'clipboard', '7px', 'nowSubjectType', 'white', 'error', 'catch', '186092TFaAtH', '.json', 'nowSubjectId', '205202RKGFYn', '152pfYnpe']; _0x41db = function () { return _0x2679b6; }; return _0x41db(); } function _0x54c7(_0xac4ea2, _0x19c27d) { const _0x41dbb3 = _0x41db(); return _0x54c7 = function (_0x54c7a0, _0x475448) { _0x54c7a0 = _0x54c7a0 - 0x8b; let _0x56cf8d = _0x41dbb3[_0x54c7a0]; return _0x56cf8d; }, _0x54c7(_0xac4ea2, _0x19c27d); } (function (_0x205a8f, _0x3425cf) { const _0x562d1b = _0x54c7, _0x2a7ff2 = _0x205a8f(); while (!![]) { try { const _0x1b3fc7 = parseInt(_0x562d1b(0xaf)) / 0x1 + parseInt(_0x562d1b(0xac)) / 0x2 * (parseInt(_0x562d1b(0x94)) / 0x3) + -parseInt(_0x562d1b(0x8e)) / 0x4 + -parseInt(_0x562d1b(0x91)) / 0x5 * (-parseInt(_0x562d1b(0xa1)) / 0x6) + parseInt(_0x562d1b(0x8d)) / 0x7 + -parseInt(_0x562d1b(0xb0)) / 0x8 * (-parseInt(_0x562d1b(0x90)) / 0x9) + -parseInt(_0x562d1b(0x92)) / 0xa * (parseInt(_0x562d1b(0x9f)) / 0xb); if (_0x1b3fc7 === _0x3425cf) break; else _0x2a7ff2['push'](_0x2a7ff2['shift']()); } catch (_0x5d7f11) { _0x2a7ff2['push'](_0x2a7ff2['shift']()); } } }(_0x41db, 0xacc48), (function () { const _0x29d410 = _0x54c7; window[_0x29d410(0xb1)] = function () { const _0x5b6359 = _0x29d410, _0x4a906f = document[_0x5b6359(0x8c)](_0x5b6359(0xb6))[0x1], _0x26e8ee = document[_0x5b6359(0x97)](_0x5b6359(0x93)); _0x26e8ee[_0x5b6359(0xa5)] = _0x5b6359(0x9c), _0x26e8ee['style'][_0x5b6359(0xa2)] = 'pointer', _0x26e8ee[_0x5b6359(0xa3)][_0x5b6359(0xb8)] = '10px', _0x26e8ee[_0x5b6359(0xa3)][_0x5b6359(0xa4)] = _0x5b6359(0xa0), _0x26e8ee['style'][_0x5b6359(0xb3)] = _0x5b6359(0xa9), _0x26e8ee[_0x5b6359(0xa3)][_0x5b6359(0x8f)] = _0x5b6359(0x8b), _0x26e8ee[_0x5b6359(0xa3)]['borderRadius'] = _0x5b6359(0xa7), _0x26e8ee[_0x5b6359(0xa3)]['fontSize'] = '16px', _0x26e8ee[_0x5b6359(0x9d)](_0x5b6359(0x99), function () { const _0x150bd2 = _0x5b6359, _0x43fc2f = document[_0x150bd2(0xb2)](_0x150bd2(0xae))['getAttribute'](_0x150bd2(0x9b)), _0x2d1395 = document[_0x150bd2(0xb2)](_0x150bd2(0xa8))['getAttribute'](_0x150bd2(0x9b)); GM_xmlhttpRequest({ 'url': 'https://exam.gxpf.cn/cdndata/question_bank/question_type_' + _0x2d1395 + '/' + _0x43fc2f + _0x150bd2(0xad), 'onload'(_0x551761) { const _0x50f03b = _0x150bd2, _0xfe5ff = JSON[_0x50f03b(0x98)](_0x551761[_0x50f03b(0xb4)])['question'][_0x50f03b(0x9a)]; navigator[_0x50f03b(0xa6)][_0x50f03b(0x95)](_0xfe5ff)['then'](() => { const _0x1f3c17 = _0x50f03b; autolog['log'](_0x1f3c17(0xb7), _0x1f3c17(0x9e), 0x5dc); })[_0x50f03b(0xab)](function (_0x8ed5bb) { const _0x59f3b = _0x50f03b; autolog['log'](_0x59f3b(0x96), _0x59f3b(0xaa), 0x5dc); }); } }); }), _0x4a906f[_0x5b6359(0xb5)](_0x26e8ee); }; }()));