I am only able to view the JavaScript files of the website via the Script panel. How can I edit it? I tried everything like double clicking the line that i want to
You can't do it. You should use javascript console to redefine functions.