Greasy Fork is available in English.

Hide certain recruiting companies on Indeed and Dice

Used to hide recruiting companies known to show "false" jobs, "hit and run" recruiting etc. on job board sites.

Από την 31/10/2017. Δείτε την τελευταία έκδοση.

// ==UserScript==
// @name         Hide certain recruiting companies on Indeed and Dice
// @namespace    cnorton-webdev
// @version      0.2.0
// @homepage     https://github.com/cnorton-webdev
// @description  Used to hide recruiting companies known to show "false" jobs, "hit and run" recruiting etc. on job board sites.
// @author       Christopher Norton
// @match        *://www.indeed.com/*
// @match        *://www.dice.com/*
// @grant        none
// @require      https://code.jquery.com/jquery-3.2.1.min.js
// ==/UserScript==

(function() {
    'use strict';

    // Run our hide routine on Indeed job lisiting and hide the nasty.
    function hideIndeed() {

        // Why the If / Else if block? To make everything cleaner and easier to maintain.

        $('.clickcard').each(function(){
            if ($('.company > a', this).attr('href') == '/cmp/Remx-Specialty-Staffing') {
                $(this).hide();
            } else if ($('.company > a', this).attr('href') == '/cmp/TEKsystems') {
                $(this).hide();
            } else if ($('.company > a', this).attr('href') == '/cmp/Robert-Half-Technology') {
                // Begin the Robert Half International name game, they are in almost every job category and have a "company" for each one, seriously.
                $(this).hide();
            } else if($('.company > a', this).attr('href') == '/cmp/Robert-Half') {
                $(this).hide();
            } else if ($('.company > a', this).attr('href') == '/cmp/Accountemps') {
                $(this).hide();
            } else if ($('.company > a', this).attr('href') == '/cmp/The-Creative-Group') {
                $(this).hide();
            } else if($('.company > a', this).attr('href') == '/cmp/Officeteam') {
                $(this).hide();
            }
            // End the Robert Half International name game, for now.
        });
    }

    // Run our hide routine on Dice job lisiting and hide the nasty.
    function hideDice() {
        $('.complete-serp-result-div').each(function(){
          if ($('span.hidden-xs > a', this).attr('href') == '/company/rhalfint') {
              // Yes, Robert Half International again
              $(this).hide();
          } else if ($('span.hidden-xs > a', this).attr('href') == '/company/10466845') {
              // The Creative Group, yes a RHI company....
              $(this).hide();
          } else if($('span.hidden-xs > a', this).attr('href') == '/company/remca001') {
              // RemX, actually not a RHI company!
              $(this).hide();
          } else if($('span.hidden-xs > a', this).attr('href') == '/company/10105424') {
              // Teksystems, Inc.
              $(this).hide();
          }
       });
    }

    $(document).ready(function() {
        // Check what site we are running on and run the correct function.
        if (window.location.hostname == 'www.indeed.com' && window.location.pathname == '/jobs') {
            hideIndeed();
        } else if (window.location.hostname == 'www.dice.com' && window.location.pathname.includes('/jobs')) {
            hideDice();
        }
    });
})();