Any way to execute javascript to modify the dom of website using python

Any way to execute javascript to modify the dom of website(that you do manually by using inspect element) and fill in forms etc using python. Only one I saw was selenium webdriver execute script but I don’t want to use it because it is very slow. Any alternatives I would prefer directly in browser opposed to using apps like chromedriver as a medium.

 Windows 7 Python 3.8.8