This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
wappalyzer/drivers/chrome/js/i18n.js

14 lines
284 B

document.addEventListener('DOMContentLoaded', function() {
var
i, value,
d = document
nodes = d.getElementsByTagName('*')
;
for ( i = 0; i < nodes.length; i ++ ) {
if ( attr = nodes[i].dataset.i18n ) {
nodes[i].innerHTML = chrome.i18n.getMessage(attr);
}
}
});