This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Помощник hh.ru | |
// @namespace http://tampermonkey.net/ | |
// @version 2025-05-04 | |
// @description Показывать зарплату после вычета налога. | |
// @author https://github.com/VladiStep | |
// @match https://*.hh.ru/vacancy/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=hh.ru | |
// @grant none | |
// @run-at document-idle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkIfTextLayerIsSelected() { | |
var selectedLayers = app.project.activeItem.selectedLayers; | |
if (selectedLayers.length < 1) { | |
alert("Please select a text layer", "Error", true); | |
return false; | |
} else if (selectedLayers.length > 1) { | |
alert("Multiple layers selected. Select a single text layer.", "Error", true); | |
return false; | |
} | |
if (selectedLayers[0] instanceof TextLayer) { |