Handshake UX+

Ban keywords found in job listings

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Handshake UX+
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  Ban keywords found in job listings
// @author       TigerYT
// @include      *://*.joinhandshake.co.uk/job-search/*
// @icon         https://cdn.joinhandshake.co.uk/favicon.png
// @grant        GM_registerMenuCommand
// @license      The Unlicense
// ==/UserScript==

unsafeWindow.bannedList = ["Chef", "Sport", "Finance", "Market", "Chemist", "Communications", "Talent", "Analyst", "Founder", "CEO", "Business", "Growth", "Sale", "Material", "Administrator"];
// Update this in Chrome DevTools with `window.bannedList`, e.g;
// window.bannedList = ["Developer", "Engineer", "AI"]

function executeUsercript() {
    'use strict';

    const jobList = Array.from(document.querySelector('div:has(> :nth-child(20))').children);

    jobList.forEach((job) => {
        if (job.children.length != 4) return;

        const hideButton = job.querySelector('[overlay="Hide"] > button');
        const jobTitle = job.querySelector('[id]').textContent;

        if (bannedList.some((bans) => jobTitle.toLowerCase().includes(bans.toLowerCase()))) {
            hideButton.click();
        };
    });
};

// Register context menu option
GM_registerMenuCommand("Remove Banned Jobs", executeUsercript);