Handshake UX+

Ban keywords found in job listings

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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);