Adds an id of selectDP to the select element in meroshare
目前為
// ==UserScript==
// @name Add Meroshare Id
// @description Adds an id of selectDP to the select element in meroshare
// @match https://meroshare.cdsc.com.np/#/login
// @version 0.0.1.20230727115409
// @namespace https://greasyfork.org/users/1137107
// ==/UserScript==
function addIdtoSelect() {
let element = document.getElementsByClassName("select2-hidden-accessible")[0];
console.log(element);
element.id = 'selectDP';
}
window.addEventListener('load', setTimeout(addIdtoSelect(), 600), false);