How can I add a javascript file to the bookmark bar so that when I click on that file that is set in the bookmark bar then the javascript gets executed on the current webpage. Like if I had written a javascript file to run on a webpage and I want to set it to the bookmark bar of chrome and when I click on it then the javascript gets executed on the current webpage
if this is the code so how can i add it
let added = document.getElementById('name');
let text = 'Example Singh';
added.value = text;
now I want to add this code to a website in the bookmark bar of google chrome