Add Meroshare Id

Adds an id of selectDP to the select element in meroshare

  1. // ==UserScript==
  2. // @name Add Meroshare Id
  3. // @description Adds an id of selectDP to the select element in meroshare
  4. // @match https://meroshare.cdsc.com.np/#/login
  5. // @version 0.0.1.20230727120801
  6. // @namespace https://greasyfork.org/users/1137107
  7. // ==/UserScript==
  8.  
  9.  
  10. var intv = setInterval(function addIdtoSelect() {
  11. let element = document.getElementsByClassName("select2-hidden-accessible")[0];
  12. if (element){
  13. clearInterval(intv);
  14. element.id = 'selectDP';
  15. }
  16. }, 100)