// ==UserScript== // @name BOSS海投助手 // @namespace https://github.com/yangshengzhou03 // @version 1.2.3.2 // @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 // 更多详情请参见: https://www.gnu.org/licenses/agpl-3.0.html // @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 // ==/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 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')) { // 聊天页:自动回复HR Core.log('自动发送自我介绍和简历'); } } catch (error) { console.error('初始化失败:', error); if (UI.notify) UI.notify('初始化失败', 'error'); } } // 页面加载完成后初始化 window.addEventListener('load', init); })();