SHOW:
|
|
- or go back to the newest paste.
1 | // put this in the custom js field for 8chan (options in top right corner) | |
2 | // enter all trips to filter here, one per row, within "", separate with comma, dont add a trailing comma at the end | |
3 | var filtered =[ | |
4 | "!N0971Qf8pA", | |
5 | "sometrip", | |
6 | "etc" | |
7 | ]; | |
8 | //do not touch anything below here | |
9 | var trips = document.getElementsByClassName("trip"); | |
10 | - | for(i in trips)if(filtered.indexOf(trips[i].innerText) >-1)trips[i].parentNode.parentNode.parentNode.style.display='none'; |
10 | + | for(i in trips) { |
11 | if(filtered.indexOf(trips[i].innerText) >-1) { | |
12 | trips[i].parentNode.parentNode.parentNode.style.display='none'; | |
13 | trips[i].parentNode.parentNode.parentNode.nextSibling.style.display='none'; | |
14 | } | |
15 | } |