hide_recruiters

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

  1. // ==UserScript==
  2. // @name hide_recruiters
  3. // @namespace cnorton-webdev
  4. // @version 0.4.0
  5. // @homepage https://github.com/cnorton-webdev
  6. // @description Used to hide recruiting companies known to show "false" jobs, "hit and run" recruiting etc. on job board sites.
  7. // @author Christopher Norton
  8. // @match *://www.indeed.com/*
  9. // @match *://www.dice.com/*
  10. // @match *://www.linkedin.com/*
  11. // @grant none
  12. // @require https://code.jquery.com/jquery-3.2.1.min.js
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17.  
  18. // Run our hide routine on Indeed job lisiting and hide the nasty.
  19. function hideIndeed() {
  20.  
  21. // Why the If / Else if block? To make everything cleaner and easier to maintain.
  22.  
  23. $('.clickcard').each(function(){
  24. if ($('.company > a', this).attr('href') == '/cmp/Remx-Specialty-Staffing') {
  25. $(this).hide();
  26. } else if ($('.company > a', this).attr('href') == '/cmp/TEKsystems') {
  27. $(this).hide();
  28. } else if ($('.company > a', this).attr('href') == '/cmp/Robert-Half-Technology') {
  29. // Begin the Robert Half International name game, they are in almost every job category and have a "company" for each one, seriously.
  30. $(this).hide();
  31. } else if($('.company > a', this).attr('href') == '/cmp/Robert-Half') {
  32. $(this).hide();
  33. } else if ($('.company > a', this).attr('href') == '/cmp/Accountemps') {
  34. $(this).hide();
  35. } else if ($('.company > a', this).attr('href') == '/cmp/The-Creative-Group') {
  36. $(this).hide();
  37. } else if($('.company > a', this).attr('href') == '/cmp/Officeteam') {
  38. $(this).hide();
  39. // End the Robert Half International name game, for now.
  40. } else if($('.conpany > a', this).attr('href') == '/cmp/Cybercoders') {
  41. // Welcome CyberCoders to the list of horrible recruiting companies!
  42. $(this).hide();
  43. }
  44. });
  45. }
  46.  
  47. // Run our hide routine on Dice job lisiting and hide the nasty.
  48. function hideDice() {
  49. $('.complete-serp-result-div').each(function(){
  50. if ($('span.hidden-xs > a', this).attr('href') == '/company/rhalfint') {
  51. // Yes, Robert Half International again
  52. $(this).hide();
  53. } else if ($('span.hidden-xs > a', this).attr('href') == '/company/10466845') {
  54. // The Creative Group, yes a RHI company....
  55. $(this).hide();
  56. } else if($('span.hidden-xs > a', this).attr('href') == '/company/remca001') {
  57. // RemX, actually not a RHI company!
  58. $(this).hide();
  59. } else if($('span.hidden-xs > a', this).attr('href') == '/company/10105424') {
  60. // Teksystems, Inc.
  61. $(this).hide();
  62. } else if($('span.hidden-xs > a', this).attr('href') == '/company/cybercod') {
  63. // Welcome CyberCoders to the list of horrible recruiting companies!
  64. $(this).hide();
  65. }
  66. });
  67. }
  68.  
  69. function hideLinkedin() {
  70. $('.job-card').each(function(){
  71. if ($('.job-card__company-name',this).text() == 'Robert Half Technology' && $(this).is(":visible")) {
  72. $(this).hide();
  73. } else if ($('.job-card__company-name',this).text() == 'The Creative Group' && $(this).is(":visible")) {
  74. $(this).hide();
  75. } else if ($('.job-card__company-name',this).text() == 'RemX - Accounting & Finance Staffing' && $(this).is(":visible")) {
  76. $(this).hide();
  77. } else if ($('.job-card__company-name',this).text() == 'TEKsystems' && $(this).is(":visible")) {
  78. $(this).hide();
  79. } else if ($('.job-card__company-name',this).text() == 'CyberCoders' && $(this).is(":visible")) {
  80. $(this).hide();
  81. } else if ($('.job-card__company-name',this).text() == 'Accountemps' && $(this).is(":visible")) {
  82. $(this).hide();
  83. } else if ($('.job-card__company-name',this).text() == 'OfficeTeam' && $(this).is(":visible")) {
  84. $(this).hide();
  85. } else if ($('.job-card__company-name',this).text() == 'Robert Half Legal' && $(this).is(":visible")) {
  86. $(this).hide();
  87. } else if ($('.job-card__company-name',this).text() == 'Robert Half Finance & Accounting' && $(this).is(":visible")) {
  88. $(this).hide();
  89. } else if ($('.job-card__company-name',this).text() == 'Robert Half Management Resources' && $(this).is(":visible")) {
  90. $(this).hide();
  91. }
  92. });
  93. }
  94.  
  95. $(document).ready(function() {
  96. // Check what site we are running on and run the correct function.
  97. if (window.location.hostname == 'www.indeed.com' && window.location.pathname == '/jobs') {
  98. if ($('.clickcard').length) {
  99. hideIndeed();
  100. }
  101. } else if (window.location.hostname == 'www.dice.com' && window.location.pathname.includes('/jobs')) {
  102. if ($('.complete-serp-result-div').length) {
  103. hideDice();
  104. }
  105. } else if (window.location.hostname == 'www.linkedin.com' && window.location.pathname.includes('/jobs')) {
  106. if ($('.job-card').length) {
  107. setInterval(hideLinkedin,2000);
  108. }
  109. }
  110. });
  111. })();