| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 59fdcad commit 9e02ee3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,16 +25,9 @@ const hideIfPaidForAndAdFree = (el: Element): Promise<void> => { | |||
| 25 | 25 | return Promise.resolve(); | |
| 26 | 26 | } | |
| 27 | 27 | return fastdom.write(() => { | |
| 28 | - for (let child = 0; child < el.children.length; child += 1) { | ||
| 29 | - if ( | ||
| 30 | - el.children[child].classList | ||
| 31 | - .toString() | ||
| 32 | - .includes('rich-link--paidfor') | ||
| 33 | - ) { | ||
| 34 | - el.classList.add('u-h'); | ||
| 35 | - break; | ||
| 36 | - } | ||
| 37 | - } | ||
| 28 | + [...el.children] | ||
| 29 | + .filter(child => child.classList.toString().includes('rich-link--paidfor')) | ||
| 30 | + .forEach(child => child.classList.add('u-h')); | ||
| 38 | 31 | }); | |
| 39 | 32 | }; | |
| 40 | 33 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments