Bureaucrats, Check users, Interface administrators, Push subscription managers, Suppressors, Administrators, upwizcampeditors
1,732
edits
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
// Add extra info to infobox's cost header to notify users to take it with a grain of salt | // Add extra info to infobox's cost header to notify users to take it with a grain of salt | ||
var headers = document.querySelectorAll('.pi-header'); | |||
if (headers) { | if (headers) { | ||
headers.forEach(function(header) { | headers.forEach(function(header) { | ||
var paragraph = header.querySelector('p'); | |||
if (paragraph.textContent.includes('Cost')) { | if (paragraph.textContent.includes('Cost')) { |
edits