How do I redirect a user to another page based on what the user has entered in the taskbar using Chrome Extension? - google-chrome

I am looking for a solution for the problem in the Chrome Extension.
If I enter some value in the URL like Mail, Notes, Profile, etc. I want to access the keywords before the values are accessed by the browser and then taken for a search which then changes the URL based on the default search engine.
I want to access the words and then automatically redirect the user to another page. I don't really know if it is possible or not, but thought of asking it to the community.
Or, Is there any way we can make some words which will not be searchable using the Address bar, but it should be that we don't need to make changes in the settings directly, but by using the extension.
Any kind of response are appreciated.
I was trying to capture the value that user enters in the Address bar. I found that we can actually find the link that upon searching from the address bar can be captured using Javascript but could not find if it was possible to capture before the search takes place. (immediately after pressing the enter key or search button).

Related

Copy content from webpage and paste it in another website to search in Edge or Chrome browser

Need help please.
How can I achieve the following?
I use https://spur.us/context website to investigate IP addresses.
Currently I am having to copy IP address from a website and paste manually in the spur.us website which is time consuming. I want to make this process quicker.
How can I just select an IP address like shows in below image and open in separate website by attaching the copied content like https://spur.us/context/20.238.65.64
Is there any tool/extensions I can use or setting within browser?
TIA
quick way is, you can customize browser search engine check this https://support.google.com/programmable-search/answer/4513882?hl=en#:~:text=From%20the%20Programmable%20Search%20Engine,can%20always%20add%20more%20later.
I don't think if there is an extension exists for this purpose.
Any experienced Extension developer, including me, can make one you. feel free to connect.
Is it that you need to navigate to https://spur.us/context/20.238.65.64 by only selecting 20.238.65.64 and performing some sort of action within a single page? It looks like the context menu wouldn't help (the browser would directly lead you to this ip address instead of searching for it), but you can achieve it by specifying your own search engine. Please go to the following url for search engine setting.
Edge: edge://settings/searchEngines?search=engine
Chrome: chrome://settings/searchEngines?search=search+engine
You can add spur.us as a search engine. You need to choose Make default after adding it and make sure your search engine url looks like this: https://spur.us/context/%s
Then, you need to
Copy the ip address.
Press Ctrl+E to call the default search engine.
Paste the ip address.
Now you will be able to see the expected result. Though it may not be exactly what you've asked for, I think it does smooth the work flow. Remember to make default your previous default search engine after the work is finished.

Try to find the date url was created

I had to search but I didn't find the information I needed. Is it possible to access and find out when a webpage accessed on google was created?
I try inspect the code find where is the date and other ways but i didnt find.
Thanks
Step 1: Go to google.com and copy-paste the full URL of any web page in the search box and prefix it with the inurl: operator.
For instance, if the URL of the page is:
https://www.example.com
You should write the URL in the Google Search box as:
inurl:https://www.example.com
Press the Search button and the URL in your browser address bar would read something like this:
https://www.google.com/search?q=inurl:https://www.example.com
Step 2. Now go to your browser’s address bar - press Ctrl+L on a Windows machine or Cmd+L on Mac - and append &as_qdr=y25 to the end of the Google search URL. Press enter again.
The modified Google search URL would become:
https://www.google.com/search?q=inurl:https://www.example.com&as_qdr=y25
The as_qdr=y25 parameter instructs Google to do a date-based search and retrieve pages that have been indexed by the Googlebot in the past 25 years (in other words, everything).
Step 3. Google will load the search results again but this time, you’ll see the actual publication date of the web page next to the title in Google search results.
credit to this article.

Disable the "Search Google for" in Chrome context menu

After a fair amount of searching I have been unable to find a solid answer on how to disable, or remove, the "Search Google for..." option in the Chrome context menu. I am unable to find any options related to it within the browser itself or within the preferences file in the AppData/local/Google/Chrome/UserData/Default directory. Is this even possible or is there a manifest/config file I am completely missing? Currently on Chrome Version 79.03945.117 - Feedback or guidance would be greatly appreciated.
I don't know how to remove the menu item, but I found if you change your search provider to X, the menu option changes to "Search X for...".
I was also able to create a fake search provider in Chrome Settings and set it as the default for both searches from the location bar, and searches from the context menu. I searched settings for "search", clicked "Add" next to Other search engines, and entered "localhost" as the name and keyword and http://127.0.0.1/search/%s for the Query URL. I then clicked "make default" on this search engine. Note: if you do this all searches will fail since there's not a real search engine at localhost; the point of doing it for me is to prevent any accidental searching when I have highlighted text that contains, say, a password, that I don't want to send to the Internet.

How can i find a specific word (such as Norway), in a LinkedIn profile. I am trying to find it in inspect

How can i find a specific word (such as Norway), in a LinkedIn profile. I am trying to find it in inspect. I am trying to find all the people that went to Norway, but sometimes it doesnt say in their main summary, but hidden in their full summary.
Any other suggestions, are welcomed.
Thanks.
There's no designated area where people would put where they've been. They could put it anywhere in their profile. You can simply search the page in the Inspector, with Cmd+F (Mac) or Ctrl+F (Windows) shortcuts and keep pressing enter until you find. It's tediuous and there's no guarantee all the content has been loaded at any given time, e.g. requires AJAX requests etc.
However, if you want to get this kind of information in a more structured and automated way, I recommend checking out the LinkedIn API. You can either use the REST API, which requires OAuth, or the JavaScript SDK, which requires an API key. The latter would be my preferred choice.
The API provides a list of basic profile fields you can get back from the JSON response.

How to access entered username using selenium in Chrome

I am automating website filling in Chrome browser using Selenium.
For the first time user will enter username, date of birth manually. Now my requirement is when user opens my application for next time I want to enter the name and D.O.B using code.
Previously I was using Internet Explorer and there I had beforenavigate event which will inform me that user is going navigating to other URL. So I used to read the required fields and save it in my database.
How to do this in Selenium or Chrome driver ?
WebElement.getAttribute('value') can be used to get the value, but how to know that user has entered the values to that field ?
Please help me.
You are trying to fill in a login form for users using Selenium. This is impossible. For this I'd recommend cookies. How to do this depends on the language the website is written in. I'd suggest you do some research on how to do this in your applicaton. If you have questions about this you can make a new post here explaining the details of your application and the issue you are facing.
The reason this does not work in Selenium is that you will need to start a Webdriver to use this. When a user navigates to your website it (most likely) won't be doing this using a Webdriver. Especially not one you can access and send commands to.