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.
test
test
test 
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:foldermyfile.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: loadlist: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^listsfriends.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 
|