PageSourceSearch

https://www.tubefeedback.com/assets/scripts/init.js?v=f15e26da65bcb4b6bf86bd46878bef04b9d975ec

js tubefeedback.com collected 2026-09-24 14:55:11 UTC 2,020 bytes, 52 lines download raw bytes

1var refreshLangLabels = () => {
2    let lang = window.EJS.CURRENT_LANGUAGE_CODE || window.COMMON.getCookie('lang') || 'en';
3    fetch(`/intl/${lang}.json`)
4    .then(res => res.json())
5    .then(data => {
6        window.EJS.CURRENT_LANGUAGE = data;
7    })
8}
9
10// Hamburger menu
11try {
12    document.getElementById('hamburger').addEventListener('click', function() {
13        const navItems = document.getElementById('navItems');
14        if (navItems.classList.contains('hidden')) {
15            navItems.classList.remove('hidden');
16        } else {
17            navItems.classList.add('hidden');
18        }
19    });
20
21    // default hamburger menu is hidden
22    document.getElementById('navItems').classList.add('hidden');
23}catch (ex) { console.error(ex); }
24  
25// refresh lang labels
26try { refreshLangLabels(); }catch (ex) { console.error(ex); }
27
28// Language selector
29try {
30    document.getElementById('langSelect').addEventListener('change', (e) => {
31        let targetLang = e.target.value;
32        // let oldLang = window.COMMON.getCookie('lang') || 'en';
33        window.COMMON.setCookie('lang', targetLang, 365);
34        window.location.href = window.CANONICAL_URL.langs[targetLang];
35
36        // reload page
37        // let currentUrl = window.location.href;
38        // if(targetLang !== 'en' && oldLang !== 'en') currentUrl = currentUrl.replace(`${window.EJS.BASEURL_SITE}/${oldLang}`, `${window.EJS.BASEURL_SITE}/${targetLang}`);
39        // else if(targetLang === 'en' && oldLang !== 'en') currentUrl = currentUrl.replace(`${window.EJS.BASEURL_SITE}/${oldLang}`, `${window.EJS.BASEURL_SITE}`);
40        // else if(targetLang !== 'en' && oldLang === 'en') currentUrl = currentUrl.replace(`${window.EJS.BASEURL_SITE}/`, `${window.EJS.BASEURL_SITE}/${targetLang}/`);
41        // window.location.href = currentUrl;
42    });
43}catch (ex) { console.error(ex); }
44
45// set value language switcher 
46try {
47    document.getElementById('langSelect').value = window.COMMON.getCookie('lang') || 'en';
48}catch (ex) { 
49    console.error(ex);
50}
51
52

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.