// ==UserScript== // @name 【智慧职教】挂课插件,支持看视频,看图文,看文档,主题讨论 // @namespace https://bbs.tampermonkey.net.cn/ // @description 用户智慧职教挂机 // @version 1.0.0 // @author 小了白了兔 // @storageName yike // @compatible chrome firefox edge // @grant unsafeWindow // @grant GM_xmlhttpRequest // @grant GM_xmlhttpRequest // @grant GM_notification // @grant GM_addStyle // @grant GM_setValue // @grant GM_getValue // @grant GM_deleteValue // @grant GM_openInTab // @grant GM_addValueChangeListener // @grant GM_removeValueChangeListener // @match *://* // @connect 85530a3e-fc46-4ea4-a542-160dad54a088.bspapp.com // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js // @require https://cdn.bootcdn.net/ajax/libs/interact.js/1.10.17/interact.min.js // @require-css https://vkceyugu.cdn.bspapp.com/VKCEYUGU-85530a3e-fc46-4ea4-a542-160dad54a088/5895b760-6bac-4f7f-9602-82b3465bbbae.css // ==/UserScript== const back_url = "https://85530a3e-fc46-4ea4-a542-160dad54a088.bspapp.com/user"; const style = ".yike {position: absolute;right:50px;bottom:30px;z-index:99999}.yike .yike_tab_status {height: 100%;width: 100%;}.yike .yike_not_login {width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;flex-direction: column;}.yike .yike_not_login .yike_btn {align-self: flex-end;margin-top: 6px;margin-right: 20px;width: 20%;height: 40px;background-color: #093;color: #fff;border: none;border-radius: 5px;}.yike .yike_not_login .yike_btn:active {border: 1px solid #ddd;}.yike .yike_op {display: flex;justify-content: space-between;align-items: center;width: 100%;}.yike .yike_op .yike_login_info {color: #093;margin-left: 20px;}.yike .yike_not_login .yike_text {text-align: right;position: absolute;bottom: 10px;right: 10px;}.yike .yike_not_login .yike_input {border: 1px solid #333;background-color: #f9f9f9;border-radius: 5px;padding: 13px;outline: 0;width: 80%;}.yike .yike_intro {width: 100%;height: 100%;padding: 15px;text-align: left;}.yike .yike_log {width: 100%;height: 100%;display: flex;align-items: flex-start;flex-direction: column;padding: 5px;overflow: auto;}.yike .yike_log .yike_item {margin: 3px 0px;}.yike .yike_log .yike_item p {line-height: normal;}.yike .yike_log .yike_item .yike_time {margin-right: 5px;}.yike .yike_log .yike_error {color: brown;}.yike .yike_has_login {position: relative;display: flex;justify-content: center;align-items: center;flex-direction: column;width: 100%;height: 100%;}.yike .yike_has_login .yike_left_time, .yike .yike_has_login .yike_client {margin: 5px;}.yike .yike_has_login .yike_vali_code {position: absolute;left: 8px;bottom: 5px;display: flex;justify-content: flex-start;align-items: center;}.yike .yike_has_login .yike_vali_code .yike_copy {margin-left: 5px;background-color: #093;color: #fff;border-radius: 3px;border: 2px solid #095;}.yike .yike_box {width: 360px;height: 240px;background: #fff;border: 1px solid #d3d3d3;font-size: 12px;}.yike .yike_tab_menu {overflow: hidden;padding: 0px;margin: 0px;}.yike .yike_tab_menu li {width: 33.3%;float: left;height: 30px;line-height: 30px;color: #fff;background: #093;text-align: center;cursor: pointer;list-style-type: none;}.yike .yike_tab_menu li.yike_current {color: #333;background: #fff;}.yike .yike_tab_box {height: 210px;position: relative;}.yike .yike_tab_box li {height: 24px;line-height: 24px;overflow: hidden;}.yike .yike_tab_box li span {margin: 0 5px 0 0;font-weight: 600;color: #ddd;}.yike .yike_tab_box .yike_hide {display: none;}"; let lost_time = 0; let html = ""; html += "
"; html += "
"; html += "