PageSourceSearch

https://toolbox.injoyonline.com/InJoyLibrary/injoy/js/accessibe.js?update=5

js injoyonline.com collected 2026-09-30 14:34:27 UTC 3,519 bytes, 58 lines download raw bytes

1var accessibeFix = {
2    adhd:function(){
3        setTimeout(function(){
4            if (document.querySelector(".acsb-reading-mask-element") && document.querySelector(".acsb-profile-adhd")){
5                console.log("adhd profile and mask are present")
6                if (document.querySelector(".acsb-profile-adhd").getAttribute("aria-pressed")=='true'){
7                    console.log("adhd profile is active");
8                    if (!document.querySelector("body.acsb-reading-mask") && !document.querySelector("body.acsb-stop-animations")){
9                        document.body.classList.add("acsb-reading-mask", "acsb-stop-animations");
10                        document.body.setAttribute("data-acsb-original-zoom-value","1");
11                    }
12                } else if (document.querySelector(".acsb-profile-adhd").getAttribute("aria-pressed")=='false' && document.querySelector("#adhdProfile")){
13                    console.log("adhd profile is NOT active")
14                    document.querySelector("#adhdProfile").parentElement.removeChild(document.querySelector("#adhdProfile"));
15                }
16            }
17        },500);
18    },cd:function(){
19        setTimeout(function(){
20            if (document.querySelector(".acsb-profile-cognitive")){
21                console.log("cognitive profile and mask are present")
22                if (document.querySelector(".acsb-profile-cognitive").getAttribute("aria-pressed")=='true'){
23                    console.log("cognitive profile is active");
24                    if (!document.querySelector("body.acsb-emphasize-titles") && !document.querySelector("body.acsb-emphasize-links") && !document.querySelector("body.acsb-stop-animations")){
25                        document.body.classList.add("acsb-emphasize-titles", "acsb-emphasize-links", "acsb-stop-animations");
26                        document.body.setAttribute("data-acsb-original-zoom-value","1");
27                    }
28                    let buttons = document.querySelectorAll("button");
29                    for (let x=0;x<buttons.length;x++){
30                        let button = buttons[x];
31                        if (button.disabled!="true"){
32                            console.log('setting button to clickable')
33                            button.setAttribute("data-acsb-clickable","true");
34                        }
35                    }
36                    let anchors = document.querySelectorAll("a");
37                    for (let x=0;x<anchors.length;x++){
38                        let anchor = anchors[x];
39                        if (anchor.disabled!="true"){
40                            console.log('setting anchor to clickable')
41                            anchor.setAttribute("data-acsb-clickable","true");
42                        }
43                    }
44                }
45            }
46        },500);
47    },
48    pieb:function(){
49        if (!document.querySelector("#ascb-pieb") && window.location.href.includes("practice-to-increase")){
50            let style = document.createElement("style");
51            style.id = "ascb-pieb";
52            style.innerHTML = ".acsb-trigger.acsb-trigger.acsb-ready{display:none !important;}";
53            document.head.appendChild(style);
54        } else if (document.querySelector("#ascb-pieb") && !window.location.href.includes("practice-to-increase")){
55            document.querySelector("#ascb-pieb").parentElement.removeChild(document.querySelector("#ascb-pieb"));
56        }
57    }
58}

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.