// ==UserScript== // @name 屏蔽前程无忧、智联招聘的虚假招聘广告 // @version 0.2 // @namespace top.wwjay.js // @description 内置武汉地区的培训机构公司名称,可以根据需要点击X来屏蔽,如需解除自定义屏蔽的公司请清除浏览器缓存 // @author wwjay // @require https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js // @match http://search.51job.com/* // @downloadURL none // ==/UserScript== let blacklist = ['东软软件']; blacklist = blacklist.concat(localStorage.localBl ? JSON.parse(localStorage.localBl) : []); function rmBl() { $('#resultList').find('.el').not('.title').each(function () { let $this = $(this); let coName = $this.find('.t2 a').attr('title'); blacklist.forEach(function (v) { if (coName.indexOf(v) > -1) { $this.remove(); } }); }); } $(function () { rmBl(); $('.t2 a').after('  X'); $('.remove-co').click(function () { let coName = $(this).siblings().attr('title'); blacklist.push(coName); localStorage.localBl = JSON.stringify(blacklist); rmBl(); }); });