clickio

HB NODES HELPER

Jun 8th, 2021
539
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function(d, w){
  2.     var ids = [];
  3.     var hList = d.querySelectorAll('.content.cgen > h2');
  4.     Array.from(hList).forEach(function(h){
  5.         var id = h.querySelector('span.text').innerHTML.match(/^\d+|\d+\b|\d+(?=\w)/g)[0];
  6.         var dv = h.nextSibling.nextSibling.nextSibling.nextSibling;
  7.         if(dv.classList.contains('warning'))
  8.         {
  9.             ids.push(id);
  10.             h.style.outline = "1px solid red";
  11.         }
  12.     });
  13.     console.log(ids.join(","));
  14. })(document, window);
RAW Paste Data