Skip to content

iAutomator (Documentation)

iAutomator is a Chrome extension that provides users with built-in shortcuts such as reading mode, night mode, page outlines, and basic operations like clicking, inputting, event listening and emitting, and more. In addition to supporting custom functions through script mode, iAutomator also allows for instruction configuration through its user interface. Whether you are looking to increase productivity or seeking more convenience while browsing the web, iAutomator is a very practical tool.

中文

Install

Docs

Features

Table of Built-in Actions in iAutomator

Reload

Reload the current page with specified interval, start condition and stop condition.

ArgumentDescriptionTypeDefault ValueExample
intervalThe interval at which to reload.number510
startStart reloading when the element exists.string""".my-class"
stopStop reloading when the element exists.string"""#my-id"

Read Mode

Enable read mode on the current page.

ArgumentDescriptionTypeDefault ValueExample
metaKeyWhether to enable read mode using meta key (e.g. Ctrl key on Windows or Command key on Mac).booleanfalsetrue

Dark Mode

Change the current page to dark mode.

ArgumentDescriptionTypeDefault ValueExample
longLongitudenumber121.4737
latLatitudenumber31.2304
systemFollow the system theme for applying the dark modebooleanfalsetrue

Bookmark

Bookmark target items on the current page.

ArgumentDescriptionTypeDefault ValueExample
itemCSS-Selector of the target items.string".my-class"
refreshRefresh type: auto / manualstring"manual""manual"
notifyShould notify on the title?booleantruetrue

Code Copy

Copy code from the current page.

ArgumentDescriptionTypeDefault ValueExample
inpreThe child of the <pre> tag to copy.booleanfalsetrue
preThe <pre> tag to copy.booleanfalsetrue
rmElements to remove.string""".my-class"
posPosition of the copy button.string"tl""tr"

Click

Trigger a click on an element.


Focus

Set focus on the specified element.

ArgumentDescriptionTypeDefault ValueExample
blurWhether to blur the element.booleanfalsetrue

Note

Create a note or comment.

ArgumentDescriptionTypeDefault ValueExample
valueContent of the note.string"""This is a note."
isCommentSave note as comment.booleanfalsetrue

Set title

Set the title of the page.

ArgumentDescriptionTypeExample
titleText of the title.string"New Title"

Attributes

Modify attributes of an element.

ArgumentDescriptionTypeExample
nameName of the attribute.string"class"
valueValue of the attribute.string"my-class"

Scrollbar position

Set the position of the scrollbar.

ArgumentDescriptionTypeExample
delayDelay before scrolling starts (in seconds).number1

Event

Listen or emit an event.

ArgumentDescriptionTypeDefault ValueExample
eventsName of the event.string"click"
selectorCSS selector of the target.string".my-class"
typeType of action: listen or emit.string"listen""emit"

Set value

Set value of an input element.

ArgumentDescriptionTypeDefault ValueExample
valueValue to be set.string"""Hello World."

Active

Activate current page.


Scroll

Scroll the page.

ArgumentDescriptionTypeDefault ValueExample
speedSpeed of scrolling with unit px/s.number2030

Button

Create a customizable button.

ArgumentDescriptionTypeDefault ValueExample
typeButton type. Available types are: {top / toggle / shortcut / translate}.string"""toggle"
itemCSS selector of the items.string""".my-class"
posPosition of the button.string"""tr"
mhMin-height of the button.string3550

Outline

Outline the main headings of the current page.

NameDescriptionTypeDefault
----

Redirect

Redirect from the current page to another page.

NameDescriptionTypeDefault
fromPath pattern of the from pagestring-
topath pattern of the to pagestring-
hostHostname of the to pagestring-
queryNew query parameters of the URL as a stringstring-
qformatFormat of the query parameters: 'arr' or 'default'string-

Allow Copying

Enable copying of text and other content.

NameDescriptionTypeDefault
----

Zen Mode

Hide all elements on the page and leave only a defined text with a background.

NameDescriptionTypeDefault
wordText to be displayedstringZen
delayDelay in seconds before displaying the pagestring0 (never display)
bgcolorBackground colorstring#35363a
colorFont colorstring#ffffff

Start PIP Mode

Start the Picture in Picture mode, which lets you watch video in a floating window on top of other windows.

NameDescriptionTypeDefault
----

Hash Element

Add an anchor for one or more elements on the page.

NameDescriptionTypeDefault
----

Time Update

Add a time tag for a HTML5 video on the page.

NameDescriptionTypeDefault
----

Goto Element

Automatically navigate to a target element on the page.

NameDescriptionTypeDefault
autoAutomatically navigate to target elementbooleanfalse
toTarget element's CSS selectorstring-
orderOrder to navigate through the elementsstringasc (ascending) / desc (descending)
handleHandle function for target elementstring-

Single Tab

Open a single tab for the specified URL.

NameDescriptionTypeDefault
pathPathstring-

Wait

Wait for a specified amount of time (in seconds).

NameDescriptionTypeDefault
timeThe amount of time to wait, measured in secondsnumber1

Close Page

Close the current tab or window.

NameDescriptionTypeDefault
----

Development

Please start with the dev branch

# node >= v16.13
yarn

# dev
yarn dev

# build
yarn build

License

license-badge

基于 MIT 协议开源