skip to Main Content

I want only show only this red mark line.

I think you have any other think like add in code only show
"6 OVR CSK", "6 OVR PBKS", 20 OVR CSK, 20 OVR PBKS.

I mean if this possible you add in you code to if this show only ?

setInterval(() => {
      const els = document.querySelectorAll(".fancy-tripple");
      if (els) {
        [].forEach.call(els, (div) => {
          const el = div.querySelector('.country-name a');
          if (!(/d+sove?r/ig.test(el.textContent))) {
            div.setAttribute('style', 'opacity: 0.5') // opacity el
            div.style.display = 'none' // hide el
          }
        });
      }
      1000)

this code working but not all, I want to hide red mark data too.

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    now i need to help with hide 1.3 OVR LSG, i want to show only 6 OVR, 20 OVR, want to hide 1.3 ovr, this possible ? i mean i want only full numbers

    enter image description here


  2. Add a trim and a start ^ like this :

     if (!(/^d+sove?r/ig.test(el.textContent.trim()))) {`
    

    assuming your string is 6 OVR LSG

    Simpler example:

    setInterval(() => {
        const els = document.querySelectorAll(".fancy-tripple");
        if (els) {
          els.forEach(div => {
            const el = div.querySelector('.country-name a');
            div.hidden = !(/^d+sove?r/ig.test(el.textContent.trim()))
          });
        }
      }
      1000)
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search