Get text (not URL) from the address bar in Google Chrome

I want to get the text that the user entered into the current visible address bar using Javascript. This is for Google Chrome only.

Is it possible? I know that you can get the document url through window.location.href, but I cannot find any javascript related to the current code inside the / omnibar address bar.

Thanks for the help!

EDIT: This is an extension.

+3
source share
3 answers

Even with extensions, this is not possible - at least in google chrome.

Chromium - , javascript- ; Greasemonkey, Firefox.

, , () .

, , , , .

+5

, . .

+1

, chrome.

, , , - , - , , .

DOM, StumbleUpon, ​​, Chrome. , script JS, , , , .

, ( ), , , URL-, url, .

0
source

Source: https://habr.com/ru/post/1741859/


All Articles