PageSourceSearch

https://torok.ro/wp-content/plugins/custom-footer-main/js/remove-footer.js?ver=1763373916

js torok.ro collected 2026-09-26 10:07:07 UTC 3,219 bytes, 69 lines download raw bytes

1document.addEventListener('DOMContentLoaded', () => {
2    function removeFooters() {
3        const footerTags = document.querySelectorAll('footer:not(#custom-footer)');
4        footerTags.forEach(footer => {
5            console.log('Removed <footer>:', footer);
6            footer.remove();
7        });
8
9        const divFooters = document.querySelectorAll(
10            'div:not(#custom-footer):not(#pub-part-footer):not(.pub-part-footer):not(body):not(footer#custom-footer *):not(footer#custom-footer [class*="footer" i]):not(footer#custom-footer [id*="footer" i])[class*="footer" i], ' +
11            'div:not(#custom-footer):not(#pub-part-footer):not(.pub-part-footer):not(body):not(footer#custom-footer *):not(footer#custom-footer [class*="footer" i]):not(footer#custom-footer [id*="footer" i])[id*="footer" i]'
12        );
13        divFooters.forEach(div => {
14            console.log('Removed <div>:', div);
15            div.remove();
16        });
17
18        if (window.location.hostname === 'www.tirgumureseanul.ro') {
19            const customFooter = document.querySelector('#custom-footer');
20            if (customFooter) {
21                customFooter.classList.remove('footer');
22                console.log('Removed class "footer" from #custom-footer');
23            }
24        }
25
26        if (window.location.hostname === 'arthitecture.ro' || window.location.hostname === 'www.arthitecture.ro') {
27            const pageDiv = document.querySelector('#page');
28            if (pageDiv) {
29                const bottomDiv = pageDiv.querySelector('#bottom.cmsmasters_color_scheme_first');
30                if (bottomDiv) {
31                    bottomDiv.remove();
32                    console.log('Removed <div id="bottom" class="cmsmasters_color_scheme_first"> from #page');
33                }
34            }
35        }
36
37        if (window.location.hostname === 'bonapetit.ro' || window.location.hostname === 'www.bonapetit.ro') {
38            const footerSection = document.querySelector('section.footer_widget_section');
39            if (footerSection) {
40                footerSection.remove();
41                console.log('Removed <section class="footer_widget_section">');
42            }
43
44            const copyrightsSection = document.querySelector('section.copyrights');
45            if (copyrightsSection) {
46                copyrightsSection.remove();
47                console.log('Removed <section class="copyrights">');
48            }
49        }
50
51        if (window.location.hostname === 'charmy.ro' || window.location.hostname === 'www.charmy.ro') {
52            const footerWidth = document.getElementById('custom-footer');
53            if(footerWidth) {
54                footerWidth.style.width = '100%';
55                footerWidth.style.fontSize = 'unset';
56            }
57            
58            const copyFooter = footerWidth.querySelector('.wrapper .bottom').style.width = '100%';
59            const footerTexts = footerWidth.querySelectorAll(
60                '.wrapper .top .menu-footer .pages li a, .wrapper .top .categories-list-footer ul.categories-articles li a'
61            );
62            footerTexts.forEach(el => {
63                el.style.fontSize = '1rem';
64            });
65        }
66    }
67
68    removeFooters();
69});

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.