adminenergylife.blogg.se

Mac cookies cleaner
Mac cookies cleaner






mac cookies cleaner
  1. MAC COOKIES CLEANER FULL
  2. MAC COOKIES CLEANER CODE

SCROLL so selected row (as well as at least the prior and next rows) are in the VISIBLE Scroll port. AppleScript indexing is 1 based BUT item 0 maps to 1 so it can be confusing! Log "count of rows: " & (count of (rows of myTable)) as text Log "prospectiveJunkRows: " & prospectiveJunkRows as text Set domainName to first item of my textTokens(rowSite, space) Set rowSite to description of first UI element of selectedRow Set selectedRow to row rowIndex of myTable Repeat while prospectiveJunkRows ≥ rowIndex # PROCESS ALL Lines MATCHING the junk specifier Set value of scroll bar 1 of scroll area 1 of sheet 1 to 0 #Reset Scroll bar to TOP, incase Windos was alreasdy opened, and scrolled by User Set prospectiveJunkRows to count of (rows of myTable) END WAIT (repeat while prospectiveMatches If class of theUIChild is static text and value of theUIChild contains "No Saved Website Data" then Set uiChildren to entire contents of sheet 1 display notification "Found prospective junk for: '" & theJunkSpecifier & "'" WAIT UNTIL Search finalizes, with either some rows OR "No Saved Website Data" is displayed! Set value of searchField to theJunkSpecifier Set theJunkSpecifier to "*empty specifier ignored*" If theJunkSpecifier is equal to "" and theJunkSpecifier is not equal to first item of junkList thenĭisplay notification "Invalid junk specifier \"\"" # SEARCH MATCHES for ALL Specifiers of junkList # Simulate an ALL is JUNK mode - ignoring the rest of junkList. # will never get here if whiteList is undefined or empty! If (count of whiteList) > 0 and first item of junkList is equal to "*" then Allow ALL except WHITE list to be considered JUNK by setting FIRST Specifier to "*"! Set searchField to text field 1 of sheet 1 Set myTable to table 1 of scroll area 1 of sheet 1 Repeat until (exists table 1 of scroll area 1 of sheet 1) Repeat until (exists button "Manage Website Data…" of group 1 of group 1)Ĭlick button "Manage Website Data…" of group 1 of group 1 Repeat until (exists button "Privacy" of toolbar 1) of window 1 Set myMenu to menu "Safari" of menu bar item "Safari" of menu bar 1 Set indexedDBPath to alias ((databasesPath as text) & "_IndexedDB") Set databasesPath to alias ((homePath as text) & "Library:Safari:Databases") # IF FIRST Element is "*" then the junkList will be ignored and ALL EXCEPT whiteList will be deleted! # protect valuable domains using the above whiteList! # it uses CONTAINS logic to search for matches - so be careful or better yet # Items in this list will be fed AS-IS to Safari's cookie search field, which is GRIDY, i.e

MAC COOKIES CLEANER FULL

# Otherwise NON GRIDY so use full name INCLUDING.

mac cookies cleaner

# Items starting and ending with "*" will match domain names CONTAINING its enclosed text # Item endiding with "*" will match domain names BEGINING with its preceding text # Item starting with "*" will match domain names ENDING with its subssequent text

MAC COOKIES CLEANER CODE

You are free to use this code in any way permitable by the GNU General Public License V3.0 The script is maintained and available at: To Script Editor (if not enabled yet) and/or to the generated application file, if desired to be run as a stand alone. (System Preferences->Security & Privacy->Privacy->Accessibility) The only required setup is to enable Assistive Accessibility:

mac cookies cleaner

The applet is a small single script which can be run through Script Editor or saved as an application and run like any other app.

mac cookies cleaner

The applet will make sure to first find, and move to Trash, respective Databases (of matched non whitelisted junk), so as to circumvent the common difficulty of removal of cookies from domains with database. If the first item of the Junk list is "*" then all EXCEPT the Whitelisted domains will be deleted, but ONLY if a Whitelist is indeed defined. Whitelisted domains will be protected even if matched. The optional Junk list (intersected against the Whitelist) allows quick and safe definition of common/frequent privacy threats. The optional Whitelist allows intuitive definition of domains to be protected, supporting patterns: Safari-CookieCleaner is a full featured applet allowing automated quick and safe cleanup of Safari's Cookie/Cache/Local Storage/Databases.








Mac cookies cleaner