Skip to content

Instantly share code, notes, and snippets.

View dsmortensen's full-sized avatar

Daniel Mortensen dsmortensen

  • Simons Foundation
  • Los Angeles, California, USA
  • X @dsmortensen
View GitHub Profile
@dsmortensen
dsmortensen / safari_extensions_ea_jamf.py
Created May 12, 2023 13:29
This Jamf Pro extension attribute returns a list of the names and versions of all Safari add-ons installed for the current user. Inspired by the managed_python3 version of Chrome Extensions script by Elliot Jordan <elliot@lindegroup.com> Author: Daniel Mortensen <dmortensen@simonsfoundation.org>
#!/usr/local/bin/managed_python3
# Name: safari_extensions.py
# Description: This extension attribute returns a list of the names and
# versions of all Safari add-ons installed for the current
# user. Inspired by the managed_python3 version of Chrome Extensions script by Elliot Jordan <elliot@lindegroup.com>
# Author: Daniel Mortensen <dmortensen@simonsfoundation.org>
# Created: 2022-10-28
# Last Modified: 2022-10-28
@dsmortensen
dsmortensen / chrome_extensions_py3.py
Created August 8, 2022 14:25
Chrome extensions EA (managed_python3)
#!/usr/local/bin/managed_python3
'''
Name: chrome_extensions.py
Description: This extension attribute returns a list of the names and
versions of all Chrome extensions installed for the current
user.
Based on a python3 version of the Chrome Extensions EA by Elliot Jordan <elliot@lindegroup.com>. (https://gist.github.com/astral303/e414400ec7a69c34480e1705d371e15b)
Uses Greg Neagle's managed_python3 (https://github.com/macadmins/python).
Author: Daniel Mortensen <dmortensen@simonsfoundation.org>
@dsmortensen
dsmortensen / firefox_add_ons.py
Created August 8, 2022 13:12
Firefox add-ons EA(python3)
#!/usr/local/bin/managed_python3
'''
Name: firefox_add_ons.py
Description: This extension attribute returns a list of the names and versions of all Firefox add-ons installed for the current user.
Based on a python3 version of the Chrome Extensions EA by Elliot Jordan <elliot@lindegroup.com>. (https://gist.github.com/astral303/e414400ec7a69c34480e1705d371e15b)
Uses Greg Neagle's managed_python3 (https://github.com/macadmins/python).
Author: Daniel Mortensen <dsmtheperson@gmail.com>
Created: 2022-04-26
Last Modified: 2022-04-26