Minion Script Library: Main Index
The Scripts Listed here are written in the Minion coding language and are meant to act as examples of how to perform certain types of actions. This is the standard language for the webDOMinator automation tool. These scripts do not reflect any of the actions or opinions of webdombot.com or Nathaniel D. Gibson and are entirely user submitted. Please do not submit spam, it could result in getting your license revoked without refund or possibly a lifetime ban.
To use any of these scripts in webDOM, just click "View Code..." then click the "Copy" icon below the script code.
Write the Active Page to a File
Writes the active copy of the Document Object Model HTML into a file. This is much better than just viewing the source of a page. You can see all of the elements that were created by Ajax, so this means you can see hidden html you couldn't see before. Pretty neat little deal I use a lot for different things.
//Quick Reference for "//" Click on command to see examples & comments Commenting Description: A standard comment, i.e:
/Quick Reference for "/" Click on command to see examples & comments String Concatenation & Math Expressions Usage: expresson1/expression2 Description: Divides expression1 by expression2./This is a comment.Get a file name from the user
inputQuick Reference for "input" Click on command to see examples & comments Script Level Commands Usage: input:global-variable:description Description: Will prompt the user for an input with description and store the information into the global-variable named. i.e: input:file:What file would you like to store to?:filename:Enter a full for your file, example - c:\folder\myfile.html
//Quick Reference for "//" Click on command to see examples & comments Commenting Description: A standard comment, i.e:
/Quick Reference for "/" Click on command to see examples & comments String Concatenation & Math Expressions Usage: expresson1/expression2 Description: Divides expression1 by expression2./This is a comment.Open up the file
openQuick Reference for "open" Click on command to see examples & comments Filesystem and Shell Commands Usage: open:access-mode:file-handle;filename Description: Opens the filename file for read, write, or append access, specified by access-mode, and makes it accessable through file-handle. Access modes can be (r,w,a,r+,w+, or a+). If a "+" is signified for extended access, this leaves the file open beyond the run-time of the script until it is closed by the user. Extended access files are helpful for instances where the file is a list of items, and each time the script runs, the next item needs to be read and used.:w:foo;global.filename
//Quick Reference for "//" Click on command to see examples & comments Commenting Description: A standard comment, i.e:
/Quick Reference for "/" Click on command to see examples & comments String Concatenation & Math Expressions Usage: expresson1/expression2 Description: Divides expression1 by expression2./This is a comment.write the contents of the page into the file
writeQuick Reference for "write" Click on command to see examples & comments Filesystem and Shell Commands Usage: write:file-handle:expression Description: Writes the specified expression to a new line on the file specified by file-handle. Expression can be a concatenated string, math, or any variable, global, DOM element property, or webDOM program variable.:foo:<html>^dom.html.1.innerhtml^</html>
//Quick Reference for "//" Click on command to see examples & comments Commenting Description: A standard comment, i.e:
/Quick Reference for "/" Click on command to see examples & comments String Concatenation & Math Expressions Usage: expresson1/expression2 Description: Divides expression1 by expression2./This is a comment.Close the file
closeQuick Reference for "close" Click on command to see examples & comments Filesystem and Shell Commands Usage: close:file-handle Description: Closes the file specified by file-handle.:foo

Starter Example Script
This script just opens up google, does a search for webDOMinator and then on the result page, changes the first link on a page to go to webDOMbot.com and changes what the link says. This is an example of very basic functions in webDOM. All scripts can be run by pasting them into the Quick Action Section to the right of the Browser in Simple View.
navigateQuick Reference for "navigate" Click on command to see examples & comments Browser Level Commands Usage: navigate:url Description: Makes the browser navigate to the URL specified.:google.com
dom.input.q.value=webDOMinator
clickQuick Reference for "click" Click on command to see examples & comments DOM Level Commands Usage: click:element Description: Clicks a DOM element specified by element.:dom.input.btnG
pagewaitQuick Reference for "pagewait" Click on command to see examples & comments Script Level Commands Usage: pagewait Description: Makes the scripting engine wait until the next page finishes loading before carrying out the next command.
dom.a.1.href=http: //Quick Reference for "//" Click on command to see examples & comments Commenting Description: A standard comment, i.e:
/Quick Reference for "/" Click on command to see examples & comments String Concatenation & Math Expressions Usage: expresson1/expression2 Description: Divides expression1 by expression2./This is a comment.www.webdombot.com
dom.a.1.innerhtml=Google has been DOMinated! 
Add max friends on StumbleUpon Daily on Auto-pilot
Stumbleupon has a limit of 40 friends per day... so how do you automate it? Well webDOM has a scheduling system so you can just make the following script run once a day at a certain time. Make sure that you already have a list of a couple thousand friends before you run this. Save your list to profiles\stumbleupon\lists\friends.list ... profiles directory is in your webDOM main install folder. If you want to get really creative you can make multiple accounts and have it run on each one.
ifQuick Reference for "if" Click on command to see examples & comments Control Operators and Clauses Usage: if:condition1:condition2 Description: Starts an IF block. condition1 can be either (true, false, exists, !exists, empty, or !empty) where !exists and !empty mean "doesn't exist" and "isn't empty". condition2 is a condition specified by conditional operators (<<, >>, ==, !=, <=, >=, , and ) if condition1 is set to true or false. If condition1 is set to empty, or exists, condition2 need only include a DOM element property or variable. An example would be: "if:exists:dom.a.1" or "if:true:dom.a.1.innerhtml==foo" or even "if:false:foodom.a.1.innerhtml". There are many ways to use the two conditional statements to specify the condition needed. All if statements must come with a following endif statement. :exists:dom.a.logout
clickQuick Reference for "click" Click on command to see examples & comments DOM Level Commands Usage: click:element Description: Clicks a DOM element specified by element.:dom.a.logout
pagewaitQuick Reference for "pagewait" Click on command to see examples & comments Script Level Commands Usage: pagewait Description: Makes the scripting engine wait until the next page finishes loading before carrying out the next command.
endifQuick Reference for "endif" Click on command to see examples & comments Control Operators and Clauses Usage: endif Description: Ends an If block. All endif statements must come with an If statement before it.
loadpluginQuick Reference for "loadplugin" Click on command to see examples & comments Program Level Commands Usage: loadplugin:filename Description: Load the site plugin specified by filename. The deprecated version of this command is loadprofile which will still work as an alias to loadplugin.:stumbleupon
loadlistQuick Reference for "loadlist" Click on command to see examples & comments Program Level Commands Usage: loadlistQuick Reference for "list" Click on command to see examples & comments Information Lists Usage: list:handle[:optionsfile;gatherfile] Description: Creates a new virtual list. Virtual lists do not have limits and are accessed through their handles. When webDOM gathers, it can be set to gather any usable virtual list.:filename Description: Load the list specified by filename into the info list section.: sys.plugindirQuick Reference for "sys.plugindir" Click on command to see examples & comments System Variables Description: The plugin directory of the currently loaded profile^lists\friends.list
loginQuick Reference for "login" Click on command to see examples & comments Program Level Commands Usage: login Description: Perform the login action on the currently loaded site plugin. A site plugin must be loaded, with a username and password entered for this to work.
add_allQuick Reference for "add_all" Click on command to see examples & comments Program Level Commands Usage: add_all[:number] Description: Start the automation process of adding all of the people on the currently loaded user ID list as friends. If number is used, then automation will only add that number of friends.:40 
Gather e-mails
This will allow you to use the new regexgather command to gather all emails listed in the body of a page to a list file.
#nameQuick Reference for "#name" Click on command to see examples & comments Script Level Commands Usage: #name:text Description: Sets the name of the script to text. This is a setting used for using scripts in the Action Toolbox. The name is used as a main handle to call the action by. It's used as the caption on the Button the script is placed on in the Toolbox. It's also used when calling the action in script using the "doaction" command.:emailgather
#authorQuick Reference for "#author" Click on command to see examples & comments Script Level Commands Usage: #author:text Description: Sets the author of the script to text. This is a setting used for using scripts in the Action Toolbox.:driven
#descriptionQuick Reference for "#description" Click on command to see examples & comments Script Level Commands Usage: #description:text Description: Sets the description of the script to text. This is a setting used for using scripts in the Action Toolbox.:Gather all emails from the body of the loaded page
regexgatherQuick Reference for "regexgather" Click on command to see examples & comments Program Level Commands Usage: regexgather:regular-expression Description: Matches any regular-expression that is on the currently loaded web page in the browser and adds it to the information list. This function will check for duplicates within the list as it gathers.:\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b 
SEO Search Placement Results
This little script will allow you to see the placement of any user defined web site as compared to certain keywords. It uses Yahoo and Google and can be expanded to use other engines by changing the navigate, and the next page link clicked on in the loop.
#nameQuick Reference for "#name" Click on command to see examples & comments Script Level Commands Usage: #name:text Description: Sets the name of the script to text. This is a setting used for using scripts in the Action Toolbox. The name is used as a main handle to call the action by. It's used as the caption on the Button the script is placed on in the Toolbox. It's also used when calling the action in script using the "doaction" command.:Place Me
#titleQuick Reference for "#title" Click on command to see examples & comments Script Level Commands Usage: #title:text Description: Sets the title of the script to text. This is a setting used for using scripts in the Action Toolbox. The title is used as a brief description of the script and shows up when the user hovers their mouse over the action button.:Search Engine Placement Tool
#authorQuick Reference for "#author" Click on command to see examples & comments Script Level Commands Usage: #author:text Description: Sets the author of the script to text. This is a setting used for using scripts in the Action Toolbox.:Nathaniel Gibson
#descriptionQuick Reference for "#description" Click on command to see examples & comments Script Level Commands Usage: #description:text Description: Sets the description of the script to text. This is a setting used for using scripts in the Action Toolbox.:This will find what page you're on in Yahoo and Google for a given keyword
warningsQuick Reference for "warnings" Click on command to see examples & comments Script Level Commands Usage: warnings:on/off Description: Sets warnings to display output in the Status window "on" or "off".:off
inputQuick Reference for "input" Click on command to see examples & comments Script Level Commands Usage: input:global-variable:description Description: Will prompt the user for an input with description and store the information into the global-variable named. i.e: input:file:What file would you like to store to?:keyword:Input a keyword or phrase you want to check
inputQuick Reference for "input" Click on command to see examples & comments Script Level Commands Usage: input:global-variable:description Description: Will prompt the user for an input with description and store the information into the global-variable named. i.e: input:file:What file would you like to store to?:url:Input the domain name (ex: webdombot.com)
navigateQuick Reference for "navigate" Click on command to see examples & comments Browser Level Commands Usage: navigate:url Description: Makes the browser navigate to the URL specified.:http: //Quick Reference for "//" Click on command to see examples & comments Commenting Description: A standard comment, i.e:
/Quick Reference for "/" Click on command to see examples & comments String Concatenation & Math Expressions Usage: expresson1/expression2 Description: Divides expression1 by expression2./This is a comment.search.yahoo.com/search?p=^global.keyword^&ei=UTF-8
varQuick Reference for "var" Click on command to see examples & comments Variable Setting Commands Usage: var:variable-name = expression Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:pagecount=1
loopQuick Reference for "loop" Click on command to see examples & comments Control Operators and Clauses Usage: loop:condition;loop-condition;command Description: Starts a loop block which will loop until loop-condition is no longer satisfied. This is much like while loops in most standard programming languges. The first condition can be set to (true or false), and the loop-condition uses the conditional operators (<<, >>, ==, !=, <=, >=, , and ) to satisfy the condition. command is the command that's carried out at the end of the loop. Often times loops include incrementing a variable as the command at the end of the loop. An example loop would be "loop:true;var.i<<30;var:i=var.i+1" which would loop until the variable "i" was over 30. When inside of a loop, the variable being used can be referenced by using "[]" brackets i.e: "dom.a.[var:i].innerhtml=foo" would set all of the link names in the loop range to "foo". All loops must include an endloop call afterwards at risk of looping infinitely. :false:global.url<in>dom.body.1.innerhtml||var.pagecount>=10
clickQuick Reference for "click" Click on command to see examples & comments DOM Level Commands Usage: click:element Description: Clicks a DOM element specified by element.:dom.a.pg-next
pagewaitQuick Reference for "pagewait" Click on command to see examples & comments Script Level Commands Usage: pagewait Description: Makes the scripting engine wait until the next page finishes loading before carrying out the next command.
varQuick Reference for "var" Click on command to see examples & comments Variable Setting Commands Usage: var:variable-name = expression Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:pagecount=var.pagecount+1
endloopQuick Reference for "endloop" Click on command to see examples & comments Control Operators and Clauses Usage: endloop Description: Ends a loop block. All endloop commands must come after an accompanying loop command.
globalQuick Reference for "global" Click on command to see examples & comments Variable Setting Commands Usage: global:variable-name = expression Description: Sets the variable specified variable-name to expression on a global scope. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings. Any script or page action script can access a global as long as webDOM is still running.:yahoo=var.pagecount
navigateQuick Reference for "navigate" Click on command to see examples & comments Browser Level Commands Usage: navigate:url Description: Makes the browser navigate to the URL specified.:http: //Quick Reference for "//" Click on command to see examples & comments Commenting Description: A standard comment, i.e:
/Quick Reference for "/" Click on command to see examples & comments String Concatenation & Math Expressions Usage: expresson1/expression2 Description: Divides expression1 by expression2./This is a comment.www.google.es/search?hl=es&source=hp&q=^global.keyword^&meta=&aq=f&oq=
varQuick Reference for "var" Click on command to see examples & comments Variable Setting Commands Usage: var:variable-name = expression Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:pagecount=1
loopQuick Reference for "loop" Click on command to see examples & comments Control Operators and Clauses Usage: loop:condition;loop-condition;command Description: Starts a loop block which will loop until loop-condition is no longer satisfied. This is much like while loops in most standard programming languges. The first condition can be set to (true or false), and the loop-condition uses the conditional operators (<<, >>, ==, !=, <=, >=, , and ) to satisfy the condition. command is the command that's carried out at the end of the loop. Often times loops include incrementing a variable as the command at the end of the loop. An example loop would be "loop:true;var.i<<30;var:i=var.i+1" which would loop until the variable "i" was over 30. When inside of a loop, the variable being used can be referenced by using "[]" brackets i.e: "dom.a.[var:i].innerhtml=foo" would set all of the link names in the loop range to "foo". All loops must include an endloop call afterwards at risk of looping infinitely. :false:global.url<in>dom.body.1.innerhtml||var.pagecount>=10
clickQuick Reference for "click" Click on command to see examples & comments DOM Level Commands Usage: click:element Description: Clicks a DOM element specified by element.:dom.a.Siguiente
pagewaitQuick Reference for "pagewait" Click on command to see examples & comments Script Level Commands Usage: pagewait Description: Makes the scripting engine wait until the next page finishes loading before carrying out the next command.
varQuick Reference for "var" Click on command to see examples & comments Variable Setting Commands Usage: var:variable-name = expression Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:pagecount=var.pagecount+1
endloopQuick Reference for "endloop" Click on command to see examples & comments Control Operators and Clauses Usage: endloop Description: Ends a loop block. All endloop commands must come after an accompanying loop command.
globalQuick Reference for "global" Click on command to see examples & comments Variable Setting Commands Usage: global:variable-name = expression Description: Sets the variable specified variable-name to expression on a global scope. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings. Any script or page action script can access a global as long as webDOM is still running.:google=var.pagecount
echoQuick Reference for "echo" Click on command to see examples & comments Script Level Commands Usage: echo:statement Description: Echoes a statement to the status output. The statement can be a literal string, or a concatenated string.:Yahoo: ^global.yahoo^ Google: ^global.google 
|