Skip to content

Commit

Permalink
Update show_answers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ilytobias authored Oct 6, 2024
1 parent 6dd27bc commit 7c9f510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheats/show_answers.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Drag and drop this into your bookmarks bar

```js
javascript:alert("Thanks for using my hack, answer revealer loading..."),void 0===window.originalJSON&&(window.originalJSON=JSON.parse),location.softReload=()=>{const t=document.getElementsByTagName("html")[0].outerHTML;document.open(),document.write(t),document.close()},window.hook={},JSON.parse=function(t,e){let o=window.originalJSON(t,e);try{o&&o.data&&"object"==typeof o.data&&Object.keys(o.data).forEach((t=>{let e=o.data[t];if("assessmentItem"===t&&e&&"object"==typeof e.item&&e.item.itemData){let n=JSON.parse(e.item.itemData);window.hook=n,n.question&&"object"==typeof n.question&&(n.question.content+="[[☃ explanation 2]]",n.question.widgets["explanation 2"]={alignment:"default",graded:!0,options:{explanation:n.hints[n.hints.length-1].content,hidePrompt:"Hide",showPrompt:"Answer",static:!1,widgets:n.hints[n.hints.length-1].widgets},static:!1,type:"explanation",version:{major:0,minor:0}}),o.data[t].item.itemData=JSON.stringify(n)}}))}catch(t){console.error("Error parsing JSON:",t)}return o},location.softReload();
javascript:"undefined"==typeof originalParse&&(window.originalParse=JSON.parse),JSON.parse=function(t,e){let n=originalParse(t,e);try{const t=JSON.parse(n.data.assessmentItem.item.itemData),e="pt"===location.hostname.split(".")[0];t.question&&t.question.content&&t.question.content[1]===t.question.content[1].toUpperCase()&&(console.log(t),t.question.content+="\n [[☃ explanation 3]] [[☃ explanation 4]]",t.question.widgets["explanation 3"]={alignment:"default",graded:!0,options:{explanation:t.hints[t.hints.length-1].content,hidePrompt:e?"Ocultar":"Hide",showPrompt:e?"Resposta":"Answer",static:!1,widgets:t.hints[t.hints.length-1]}},t.question.widgets["explanation 4"]={options:{explanation:"discord.gg/khanacademy",hidePrompt:"",showPrompt:"Discord"}},n.data.assessmentItem.item.itemData=JSON.stringify(t))}catch(t){console.error("Error parsing lesson data:",t)}return n},location.softReload=()=>{const t=document.getElementsByTagName("html")[0].outerHTML;document.open(),document.write(t),document.close()},location.softReload(),console.error=function(){};
```
* Go on Khan.
* Press bookmark.
Expand Down

4 comments on commit 7c9f510

@GordinTv
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey man, I tested it here and it always gives an error when the site reloads after I activate the script, I think Khan Academy updated and is not allowing the script to work

@WylxTheLynx
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey man, I tested it here and it always gives an error when the site reloads after I activate the script, I think Khan Academy updated and is not allowing the script to work

This is hapenning with me too!

@Hattzinha
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello! I tested this khan hack and it always gives an error when the site after i activate the script. Ajust this is, pls.

@albertzzx7
Copy link

@albertzzx7 albertzzx7 commented on 7c9f510 Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ei cara, eu testei aqui e sempre dá erro quando o site recarrega depois que eu ativo o script, acho que a Khan Academy atualizou e não está permitindo que o script funcione

sim, sim comigo também. Eu preciso muito que o parceiro q criou o script, atualize o código urgentemente

Please sign in to comment.