Change Webpage with Chrome or Internet Explorer

Posted on 2013-09-20
Medium Priority
Last Modified: 2013-09-28
I have a site I frequently visit that uses a select menu with a default value of "5". Using the developer console in Chrome, I know I can manually change some of the HTML locally.

Is there any way, in either IE or Chrome (even with a Chrome extension), to programmatically change that drop down menu automatically every time I visit the page?

Similar Chrome extension seem to do this such as Social Fixer for Chrome - it automatically changes the source code on Facebook to fix certain things on the site.

I don't have access to the web server source code, so this is really my only option.
Question by:DVation191
  • 2
LVL 37

Expert Comment

ID: 39509858
I would suggest autohotkey, but this only works if the webpage in question has a unique enough title. If it's just "index", the autohotkey script would fire too many times on websites it's not supposed to.
LVL 20

Author Comment

ID: 39510211
I think I can make it work based on title.

Can you provide a sample script on how I would accomplish this?
LVL 37

Accepted Solution

Kimputer earned 2000 total points
ID: 39510773
Put this all the way at the top of your current autohotkey script.
Adjust the word Inbox to some part of the website's title you mentioned before. It's CASE SENSITIVE! This current script would activate if you opened gmail (since by default it opens your inbox, giving your Chrome window the title "Inbox (x) - xxx@gmail etc), it would then immediately click on Compose, as that's the upper left corner, and then 100px to the right, and 300px down. In your case, you probably have to add one or two more Click commands.

SetTimer, Chrome, 250

SetTitleMatchMode, 1
CoordMode Mouse, Relative
IfWinExist ahk_class Chrome_WidgetWin_1, Inbox
{      WinActivate
      Click 100, 300

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
When you put your credit card number into a website for an online transaction, surely you know to look for signs of a secure website such as the padlock icon in the web browser or the green address bar.  This is one way to protect yourself from oth…
The purpose of this video series is to go through the basics of Google Analytics. This is the first video in the three part series. This tutorial goes through the setup as well as the Overview tab with in the application. Make sure that your Google …
This Micro Tutorial will demonstrate Moz's free MozBar that for some reason our Facebook mark did not get ported over, so this tutorial will show you how it saved us.

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question