You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ==UserScript==// @name Assignment Unlocker// @namespace http://tampermonkey.net/// @version 2// @description Lets you start locked assignments// @author Tap// @match https://student.edgenuity.com/*// @grant none// ==/UserScript==// probobly dosnt work bc its not updated(function(){varvariables=['href','98EZTFoN','1078293EqEPrr','substr','1685964VXeNlO','location','length','1jIzMrt','charAt','508661iODNEB','586hAwzQN','2983nUIiZh','log','substring','enrollment','getElementsByClassName','.core.learn.edgenuity.com/lmsapi/sle/api/enrollments/','14371Rbtenu','classList','onclick','ActivityTile-status-gated','split','setAttribute','contains','document.location=','cookie','course-timeline','856299FQrWQR','indexOf','addedNodes','2996429VHlchH','is\x20timeline','//r','found\x20locked\x20button','/activity/','use\x20strict','Realm','https://student.edgenuity.com/enrollment/','parse','1XolTPP'];// Function to access array elementsvargetVariable=function(index){index=index-0x143;varvariable=variables[index];returnvariable;};vargetVariableName=getVariable;// Initialization function(function(arr,target){varcurrentIndex=getVariableName;while(true){try{varresult=parseInt(currentIndex(0x15a))*parseInt(currentIndex(0x159))+parseInt(currentIndex(0x156))*parseInt(currentIndex(0x151))-parseInt(currentIndex(0x153))-parseInt(currentIndex(0x158))*-parseInt(currentIndex(0x14e))-parseInt(currentIndex(0x150))*-parseInt(currentIndex(0x160))+parseInt(currentIndex(0x16a))-parseInt(currentIndex(0x145));if(result===target)break;}catch(error){arr.push(arr.shift());}}}(variables,0xdff08));varurl,observerTimeout;// Function to read a cookiefunctionreadCookie(cookieName){varseparator='=';varcookieArray=document.cookie.split(';');for(vari=0;i<cookieArray.length;i++){varcookie=cookieArray[i];while(cookie.charAt(0)===' ')cookie=cookie.substring(1,cookie.length);if(cookie.indexOf(cookieName)===0)returncookie.substring(cookieName.length+1,cookie.length);}returnnull;}// Function to check the URLfunctioncheckURL(){varcurrentURL=document.location.href;if(url!==currentURL){url=currentURL;clearTimeout(observerTimeout);console.log('URL changed');if(url.indexOf('/activity/')!==-1){console.log('Activity URL detected');tryToStartObserver();}}}// Function to start the observerfunctiontryToStartObserver(){if(document.getElementsByClassName('timeline').length===0){setTimeout(tryToStartObserver,100);console.log('Waiting for timeline');return;}vartokenData=JSON.parse(readCookie('TokenData'));varcurrentURL=document.location.href;varstartIndex=currentURL.indexOf('/activity/')+11;varendIndex=startIndex+36;vartargetURL='https://student.edgenuity.com/enrollment/'+(tokenData.length===1 ? '0' : '')+tokenData+currentURL.substring(startIndex,endIndex);varbuttonElement=null;for(varelementofdocument.getElementsByClassName('activity-button')){if(element.classList.contains('ActivityTile-status-locked')){console.log('Found locked button');buttonElement=element;element.setAttribute('onclick','document.location=\''+targetURL+element.id+'\'');}}}// Create a MutationObservervarmutationObserver=newMutationObserver(function(mutations,observer){for(varmutationofmutations){for(varnodeofmutation.addedNodes){if(node.classList.contains('timeline')||node.classList.contains('ActivityTile-status-locked')){console.log('Mutation observed');tryToStartObserver();}}}});mutationObserver.observe(document.getElementsByClassName('activity-container')[0],{attributes: false,childList: true,subtree: true});url=document.location.href;setInterval(checkURL,100);})();
The text was updated successfully, but these errors were encountered:
idk
The text was updated successfully, but these errors were encountered: