Advertisement
albita123

check middle east universities

May 15th, 2024
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let nodes=document.querySelectorAll(".item-list__ListItemStyled-sc-18yjqdy-1");
  2. let allowedCountries = ['kuwait', 'qatar', 'saudi arabia', 'united arab emirates']
  3. for (const elem of nodes) {
  4.     try {
  5.         if (!allowedCountries.includes(elem.children[0]
  6.             .children[1]
  7.             .children[0]
  8.             .children[0]
  9.             .children[1]
  10.             .children[1]
  11.             .textContent.toLowerCase())){
  12.             elem.style.display = 'none';
  13.         }
  14.     } catch {}
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement