// ==UserScript== // @name BOSS海投助手 // @namespace https://github.com/yangshengzhou03 // @version 1.2.3.3 // @description 🚀 求职神器!🧑‍💻Yangshengzhou开发 提高BOSS直聘投递效率,批量沟通,高效求职 💼 // @author Yangshengzhou // @match https://www.zhipin.com/web/* // @grant GM_xmlhttpRequest // @run-at document-idle // @supportURL https://github.com/yangshengzhou03 // @homepageURL https://gitee.com/yangshengzhou // @license AGPL-3.0-or-later // @icon https://static.zhipin.com/favicon.ico // @connect zhipin.com // @connect spark-api-open.xf-yun.com // @noframes // @require https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js // @require https://gitee.com/Yangshengzhou/boss_helper/raw/Boss/config.js // @require https://gitee.com/Yangshengzhou/boss_helper/raw/Boss/state.js // @require https://gitee.com/Yangshengzhou/boss_helper/raw/Boss/utils.js // @require https://gitee.com/Yangshengzhou/boss_helper/raw/Boss/ui.js // @require https://gitee.com/Yangshengzhou/boss_helper/raw/Boss/core.js // @require https://gitee.com/Yangshengzhou/boss_helper/raw/Boss/letter.js // @require https://gitee.com/Yangshengzhou/boss_helper/raw/Boss/guide.js // @require https://gitee.com/Yangshengzhou/boss_helper/raw/Boss/settings.js // ==/UserScript== (function() { 'use strict'; const STORAGE = { LETTER: 'letterLastShown', GUIDE: 'shouldShowGuide', AI_COUNT: 'aiReplyCount', AI_DATE: 'lastAiDate' }; function getToday() { return new Date().toISOString().split('T')[0]; } function init() { try { const midnight = new Date(); midnight.setDate(midnight.getDate() + 1); midnight.setHours(0, 0, 0, 0); setTimeout(() => { localStorage.removeItem(STORAGE.AI_COUNT); localStorage.removeItem(STORAGE.AI_DATE); localStorage.removeItem(STORAGE.LETTER); }, midnight - Date.now()); UI.init(); document.body.style.position = 'relative'; const today = getToday(); if (location.pathname.includes('/jobs')) { if (localStorage.getItem(STORAGE.LETTER) !== today) { letter.showLetterToUser(); localStorage.setItem(STORAGE.LETTER, today); } else if (localStorage.getItem(STORAGE.GUIDE) !== 'true') { guide.showGuideToUser(); localStorage.setItem(STORAGE.GUIDE, 'true'); } Core.log('自动沟通当前列表职位'); } else if (location.pathname.includes('/chat')) { Core.log('自动发送自我介绍和简历'); } } catch (error) { console.error('初始化失败:', error); if (UI.notify) UI.notify('初始化失败', 'error'); } } window.addEventListener('load', init); })();