Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
game_rare_scripts [2021/10/08 22:16] admin |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | [code] | ||
| - | <script> | ||
| - | document.addEventListener("DOMContentLoaded", function() { | ||
| - | function common_task_script() { | ||
| - | console.log('test'); | ||
| - | } | ||
| - | let old_task_script = task_script; | ||
| - | task_script = function() { | ||
| - | old_task_script(); | ||
| - | common_task_script() | ||
| - | }; | ||
| - | common_task_script(); | ||
| - | }); | ||
| - | </script> | ||
| - | |||
| - | [/code] | ||