This removes all elements on the page that have the little premium star inside them.
The only slight issue is with the Popular on Medium section where, by removing the premium articles, leaves the list with random elements (i.e. if there were 5 articles [1,2,3,4,5] after removing premium articles the list only has 2 elements [3,5]) and it might look bad. An alternative would be to remove the popular on medium entirely?
All inspiration for the code comes from here
This removes all elements on the page that have the little premium star inside them. The only slight issue is with the Popular on Medium section where, by removing the premium articles, leaves the list with random elements (i.e. if there were 5 articles [1,2,3,4,5] after removing premium articles the list only has 2 elements [3,5]) and it might look bad. An alternative would be to remove the popular on medium entirely? All inspiration for the code comes from here