How to mount the js file in the browser console?

I open a website. What if I want to change the layout or interaction of the site? Open the console can be modified, but open the console modified page refresh will be invalid!

so I thought that if I saved the modified code to a file, and then set it in the console to load the saved file automatically (maybe html, css, js, etc.) when I opened a website, wouldn"t it be tantamount to attaching my own code to the website?

especially want to achieve this effect, I do not know whether it can be achieved? (does the browser console have this function? is there a plug-in like or? )

Note , I don"t have the source code of the website, so I can"t add these directly to the code of the website! My goal is to diy any website!

if you use curl to grab content and change it, if it is js dynamically loading content will involve cross-domain problems! It won"t work.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34834-2bf4a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34834-2bf4a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?