Skip to content

Tampermonkey script to identify job posts from certain country in upwork – 1

I am a part-time freelancer for a while now. In the meantime I have grown experience that the behavior/need/payment most of the clients from certain countries are not good. Of course there are exceptions, but we know that exceptions are not common examples.

To keep a clear and analytical eye always in the job posting board is a very hard task. Also if you have a tendency to be a first bidder, then you will fall into problems like me and mistakenly will place bid on job posting from these countries.

I have gone into this type of problems, wasted my bid, time, and missed a reasonable payment.

So I have com with a solution, to mark red on the job postings from these country in my browser. I did’t delete these job posts to find the “exceptional case”, So, here is the tampermonkey script. Any updates from you are always welcome

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.upwork.com/ab/find-work/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function(){
        document.querySelectorAll('.client-location').forEach(function(obj){
            if(obj.innerHTML == 'India' || obj.innerHTML == 'Bangladesh' || obj.innerHTML == 'Pakistan'){
                obj.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.style.color = "red";
            }
        })
    }, 1000);
})();

This script just checks for the matched country names in the job post page and mark matched jobs red every second.

This image says it all(picture says a thousand words).

Leave a Reply

Your email address will not be published. Required fields are marked *