Cookie Thinger
Jancy’s cookie thinger lets you do “things” with cookies and tabs. Some things you can currently do are:
- delete all or specific cookies in a tab
- copy all or specific cookies from one tab to other tabs
cookie-thinger.txt
The cookie-thinger.txt file tells Jancy what actions should be performed when cookie thinger groups are ran.
[group 1] copy 1 https://www.google.com AEC [group 2] del https://www.ticketmaster.com _GRECAPTCHA
- On Windows the cookie thinger text file is located at
%appdata%\Jancy\cookie-thinger.txt- On MacOS the cookie thinger text file is locatd at
~/Library/Application Support/Jancy/cookie-thinger.txt
To edit the cookie-thinger.txt file you can run the Edit cookie-thinger.txt command from the command palette. To have Jancy read the cookie-thinger.txt file you can run the Read cookie-thinger.txt from the command palette.
Jancy will automatically re-read the cookie-thinger.txt file after you save it.
Action Groups
The cookie thinger has 10 programmable action groups that let you specify the actions that will be run when a specific group is ran. To define an action group in the cookie-thinger.txt file the format is:
[group <id>]where
<id>is a value between1and5followed by the actions to run for that group.
To run a cookie thinger group there are the following commands that are accessible from the command palette:
Run cookie thinger group 1 in all selected tabsRun cookie thinger group 1 in all selected tabs (all windows)Run cookie thinger group 2 in all selected tabsRun cookie thinger group 2 in all selected tabs (all windows)Run cookie thinger group 3 in all selected tabsRun cookie thinger group 3 in all selected tabs (all windows)Run cookie thinger group 4 in all selected tabsRun cookie thinger group 4 in all selected tabs (all windows)Run cookie thinger group 5 in all selected tabsRun cookie thinger group 5 in all selected tabs (all windows)Run cookie thinger group 6 in all selected tabsRun cookie thinger group 6 in all selected tabs (all windows)Run cookie thinger group 7 in all selected tabsRun cookie thinger group 7 in all selected tabs (all windows)Run cookie thinger group 8 in all selected tabsRun cookie thinger group 8 in all selected tabs (all windows)Run cookie thinger group 9 in all selected tabsRun cookie thinger group 9 in all selected tabs (all windows)Run cookie thinger group 10 in all selected tabsRun cookie thinger group 10 in all selected tabs (all windows)
Actions
Cookie thinger actions lets you tell Jancy what to do when a group is ran. You can declare multiple actions per group. Actions are run in the order specified.
Delete Specific Cookies Action
This action will delete one or more cookies by name for the given url.
del <url> <cookie> [cookie...]
<url>the URL associated with the cookie or cookies you want to delete (e.g. https://www.google.com)<cookie>the name of the cookie to delete. You can specify multiple cookies to delete.
To delete the
AECcookie from the selected tabs associated withhttps://www.google.comwhen you run theRun cookie thinger group 1 in selected tabscommand:[group 1] del https://www.google.com AEC
Delete All Cookies Action
This action will delete all cookies for the given url.
delall <url>
<url>the URL associated with the cookies you want to delete (e.g. https://www.google.com)
To delete all cookies in the selected tabs associated with
https://www.google.comwhen you run theRun cookie thinger group 1 in selected tabscommand:[group 1] delall https://www.google.com
Copy Specific Cookies Action
This action will copy specific cookies from the specified cookie thinger tab for the specified url.
copy <cookie-thinger-tab> <url> <cookie> [cookie...]
<cookie-thinger-tab>a value from1to5that denotes the cookie thinger tab you want to use as the source of cookies you want copy<url>the URL associated with the cookie or cookies you want to copy (e.g. https://www.google.com)<cookie>the name of the cookie to copy. You can specify multiple cookies to copy
To copy the
AECcookie associated withhttps://www.google.comfrom cookie thinger tab1when you run theRun cookie thinger group 1 in selected tabscommand:[group 1] copy 1 https://www.google.com AEC
Copy All Cookies Action
This action will copy all cookies from the specified cookie thinger tab for the specified url.
copyall <cookie-thinger-tab> <url>
<cookie-thinger-tab>a value from1to5that denotes the cookie thinger tab you want to use as the source of cookies you want copy<url>the URL associated with the cookie or cookies you want to copy (e.g. https://www.google.com)
To copy all cookies associated with
https://www.google.comfrom cookie thinger tab1when you run theRun cookie thinger group 1 in selected tabscommand:[group 1] copyall 1 https://www.google.com AEC
Clear Cookie List Action
This action will clear all the contents from the specified cookie list.
lclear <cookie-thinger-list>
<cookie-thinger-list>a value from1to5or$1to$5that denotes the cookie list to clear
To clear temporary cookie list
1when you run theRun cookie thinger group 1 in selected tabscommand:[group 1] lclear 1
Add Cookies To Cookie List Action
This action will add specific cookies from the currently selected partition for the specified url to the end the specified cookie list.
ladd <cookie-thinger-list> <url> <cookie> [cookie...]
<cookie-thinger-list>a value from1to5or$1to$5that denotes the cookie list to add cookies to<url>the URL associated with the cookie or cookies you want to add (e.g. https://www.google.com)<cookie>the name of the cookie to copy. You can specify multiple cookies to add
To add the
AECcookie associated withhttps://www.google.comto temporary cookie list1when you run theRun cookie thinger group 1 in selected tabscommand:[group 1] ladd 1 https://www.google.com AEC
Update or Add Cookies To Cookie List Action
This action will update specific cookies from the currently selected partition for the specified url on the specified cookie list. If the cookie doesn’t exist it’ll be added.
lupdate <cookie-thinger-list> <url> <cookie> [cookie...]
<cookie-thinger-list>a value from1to5or$1to$5that denotes the cookie list to add cookies to<url>the URL associated with the cookie or cookies you want to add (e.g. https://www.google.com)<cookie>the name of the cookie to copy. You can specify multiple cookies to add
To update the
AECcookie associated withhttps://www.google.comon temporary cookie list1when you run theRun cookie thinger group 1 in selected tabscommand:[group 1] lupdate 1 https://www.google.com AEC
Copy Cookies From List Action
This action will copy all the cookies from the specified cookie list.
lcopy <cookie-thinger-list>
<cookie-thinger-list>a value from1to5or$1to$5that denotes the cookie list to copy cookies from
To copy all cookies from temporary cookie list
1when you run theRun cookie thinger group 1 in selected tabscommand:[group 1] lcopy 1
Cookie Thinger Tabs
Some actions require the user to designate a cookie-thinger-tab (e.g. the copy and copyall actions). Generally speaking this means the action requires a source tab. The cookie thinger lets you designate up to 5 tabs as cookie thinger tabs.
To set a specific tab as a specific cookie-thinger-tab you can use the following commands that are accessible from the command palette:
Set cookie thinger tab 1Set cookie thinger tab 2Set cookie thinger tab 3Set cookie thinger tab 4Set cookie thinger tab 5
You can set focus to specific cookie thinger tabs with the following commands that are accessible from the command palette:
Focus cookie thinger tab 1Focus cookie thinger tab 2Focus cookie thinger tab 3Focus cookie thinger tab 4Focus cookie thinger tab 5
Cookie Thinger Cookie Lists
Some actions require the user to designate a cookie-thinger-list (e.g. the lclear, ladd, and lcopy actions). Generally speaking this means the action requires a list of cookies to operate on. There are 10 lists available for use.
The first 5 lists are temporary and go away after the application exits. They can be specified as:
12345
The last 5 lists are persistent and retain their contents through application restarts. They can be specified as:
$1$2$3$4$5