watsdesign

Workday fake button

Nov 22nd, 2020
554
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setTimeout(function(){
  2.     var par = document.querySelector('.workdayHome-x');
  3.     var link = document.querySelector('.workdayHome-x > li:first-child');
  4.     var newLink = document.createElement('a');
  5.     var img = document.createElement('img');
  6.  
  7.      console.log('link---', link);
  8.      
  9.      newLink.setAttribute('href', 'https://testru-abinbev.talentsys.ru/contingencycheck?3');    
  10.      img.setAttribute('src', 'https://watsdesign.ru/projects/workday/im/PersData.png');    
  11.  
  12.      par.insertBefore(newLink, link);
  13.      newLink.appendChild(img);
  14.      img.style.margin = "15px 10px";
  15.      link.style.display = 'none';
  16.    
  17. }, 10600);
  18.  
  19.    
  20.  
  21.  
  22.  
RAW Paste Data