PageSourceSearch

https://arcelormittalsa.com/Portals/_default/Skins/arcelor-skin/custom-overrides-javascripts.js

js arcelormittalsa.com collected 2026-10-02 18:35:02 UTC 1,322 bytes, 39 lines download raw bytes

1if (document.readyState === "complete") {
2    doSomething();
3} else {
4    window.addEventListener('load', function () {
5        doSomething();
6    });
7}
8
9window.doSomething = function () {
10    //console.log("Custom-Override-Javascripts-Testing: External override executed.");
11    //replaceBorderWidth();
12	//replaceInlineStylesWithClass();
13};
14
15// Replace inline border-width:0px with border-width:999px
16function replaceBorderWidth() {
17    var elements = document.querySelectorAll('[style*="border-width:0px"]');
18    elements.forEach(function (el) {
19        var currentStyle = el.getAttribute("style");
20        if (currentStyle) {
21            var updatedStyle = currentStyle.replace(/border-width\s*:\s*0px\s*;?/gi, 'border-width:999px;');
22            el.setAttribute("style", updatedStyle);
23        }
24    });
25
26    console.log("Custom-Override-Javascripts-Testing: replaceBorderWidth.");
27}
28
29function replaceInlineStylesWithClass() {
30    var elements = document.querySelectorAll('[style]');
31    elements.forEach(function (el) {
32        el.removeAttribute("style");
33        el.classList.add("replace_inline_styles");
34        console.log("Replaced inline style with class:", el);
35    });
36
37    console.log("Custom-Override-Javascripts-Testing: replaceInlineStylesWithClass executed.");
38}
39

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.