diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
deleted file mode 100644
index 2450e61f..00000000
--- a/.github/workflows/deploy.yml
+++ /dev/null
@@ -1,51 +0,0 @@
-name: Deploy repository to Github Pages
-
-on:
-  push:
-    branches: [ main, stable ]
-
-  # Allows you to run this workflow manually from the Actions tab
-  workflow_dispatch:
-
-# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
-permissions:
-  contents: read
-  pages: write
-  id-token: write
-
-jobs:
-  build:
-    runs-on: ubuntu-22.04
-    steps:
-    - name: Checkout main
-      uses: actions/checkout@v2
-      with:
-        path: main
-        ref: main
-        fetch-depth: '0'
-    - run: |
-        cd main
-        ./build_site.sh ../_site/develop
-    # uncomment this once we have a stable branch
-    - name: Checkout Stable
-      uses: actions/checkout@v2
-      with:
-        path: stable
-        ref: stable
-        fetch-depth: '0'
-    - run: |
-        cd stable
-        ../main/build_site.sh ../_site/stable
-    - uses: actions/upload-pages-artifact@v2
-    
-  deploy:
-    environment:
-      name: github-pages
-      url: ${{ steps.deployment.outputs.page_url }}
-    runs-on: ubuntu-22.04
-    needs: build
-    steps:
-      - name: Deploy to GitHub Pages
-        id: deployment
-        uses: actions/deploy-pages@v2
-    
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 16182c5d..00000000
--- a/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/_site
\ No newline at end of file
diff --git a/3rd party/StashPlexAgent.bundle/Contents/Code/__init__.py b/3rd party/StashPlexAgent.bundle/Contents/Code/__init__.py
deleted file mode 100644
index c44bbb35..00000000
--- a/3rd party/StashPlexAgent.bundle/Contents/Code/__init__.py	
+++ /dev/null
@@ -1,318 +0,0 @@
-import os
-import dateutil.parser as dateparser
-from urllib2 import quote
-
-# preferences
-preference = Prefs
-DEBUG = preference['debug']
-if DEBUG:
-  Log('Agent debug logging is enabled!')
-else:
-  Log('Agent debug logging is disabled!')
-
-def ValidatePrefs():
-    pass
-
-
-def Start():
-    Log("Stash metadata agent started")
-    HTTP.Headers['Accept'] = 'application/json'
-    HTTP.CacheTime = 0.1
-    ValidatePrefs()
-
-
-def HttpReq(url, authenticate=True, retry=True):
-    Log("Requesting: %s" % url)
-    api_string = ''
-    if Prefs['APIKey']:
-        api_string = '&apikey=%s' % Prefs['APIKey']
-
-    if Prefs['UseHTTPS']:
-        connectstring = 'https://%s:%s/graphql?query=%s%s'
-    else:
-        connectstring = 'http://%s:%s/graphql?query=%s%s'
-    try:
-        connecttoken = connectstring % (Prefs['Hostname'].strip(), Prefs['Port'].strip(), url, api_string)
-        Log(connecttoken)
-        return JSON.ObjectFromString(
-            HTTP.Request(connecttoken).content)
-    except Exception as e:
-        if not retry:
-            raise e
-        return HttpReq(url, authenticate, False)
-
-class StashPlexAgent(Agent.Movies):
-    name = 'Stash Plex Agent'
-    languages = [Locale.Language.English]
-    primary_provider = True
-    accepts_from = ['com.plexapp.agents.localmedia', 'com.plexapp.agents.xbmcnfo', 'com.plexapp.agents.phoenixadult', 'com.plexapp.agents.data18-phoenix', 'com.plexapp.agents.adultdvdempire']
-
-    def search(self, results, media, lang):
-        DEBUG = Prefs['debug']
-        file_query = r"""query{findScenes(scene_filter:{path:{value:"\"<FILENAME>\"",modifier:INCLUDES}}){scenes{id,title,date,studio{id,name}}}}"""
-        mediaFile = media.items[0].parts[0].file
-        filename = String.Unquote(mediaFile).encode('utf8', 'ignore')
-        filename = os.path.splitext(os.path.basename(filename))[0]
-        if filename:
-            filename = str(quote(filename.encode('UTF-8')))
-            query = file_query.replace("<FILENAME>", filename)
-            request = HttpReq(query)
-            if DEBUG:
-                Log(request)
-            movie_data = request['data']['findScenes']['scenes']
-            score = 100 if len(movie_data) == 1 else 85
-            for scene in movie_data:
-                if scene['date']:
-                    title = scene['title'] + ' - ' + scene['date']
-                else:
-                    title = scene['title']
-                Log("Title Found: " + title + " Score: " + str(score) + " ID:" + scene['id'])
-                results.Append(MetadataSearchResult(id = str(scene['id']), name = title, score = int(score), lang = lang))
-
-
-    def update(self, metadata, media, lang, force=False):
-        DEBUG = Prefs['debug']
-        Log("update(%s)" % metadata.id)
-        mid = metadata.id
-        id_query = "query{findScene(id:%s){path,id,title,details,url,date,rating,paths{screenshot,stream}movies{movie{id,name}}studio{id,name,image_path,parent_studio{id,name,details}}organized,stash_ids{stash_id}tags{id,name}performers{name,image_path,tags{id,name}}movies{movie{name}}galleries{id,title,url,images{id,title,path,file{size,width,height}}}}}"
-        data = HttpReq(id_query % mid)
-        data = data['data']['findScene']
-        metadata.collections.clear()
-
-        allow_scrape = False
-        if (Prefs["RequireOrganized"] and data["organized"]) or not Prefs["RequireOrganized"]:
-            if DEBUG and Prefs["RequireOrganized"]:
-                Log("Passed 'Organized' Check, continuing...")
-            if (Prefs["RequireURL"] and data["url"]) or not Prefs["RequireURL"]:
-                if DEBUG and Prefs["RequireURL"]:
-                    Log("Passed 'RequireURL' Check, continuing...")
-                if (Prefs["RequireStashID"] and len(data["stash_ids"])) or not Prefs["RequireStashID"]:
-                    if DEBUG and Prefs["RequireStashID"]:
-                        Log("Passed 'RequireStashID' Check, continuing...")
-                    allow_scrape = True
-                else:
-                    Log("Failed 'RequireStashID' Check, stopping.")
-                    allow_scrape = False
-            else:
-                Log("Failed 'RequireURL' Check, stopping.")
-                allow_scrape = False
-        else:
-            Log("Failed 'Organized' Check, stopping.")
-            allow_scrape = False
-
-        if allow_scrape:
-            if data['date']:
-                try:
-                    Log("Trying to parse:" + data["date"])
-                    date=dateparser().parse(data["date"])
-                except Exception as ex:
-                    Log(ex)
-                    date=None
-                    pass
-                # Set the date and year if found.
-                if date is not None:
-                    metadata.originally_available_at = date
-                    metadata.year = date.year
-
-            # Get the title
-            if data['title']:
-                metadata.title = data["title"]
-
-            # Get the Studio
-            if not data["studio"] is None:
-                metadata.studio = data["studio"]["name"]
-
-            # Get the rating
-            if not data["rating"] is None:
-                metadata.rating = float(data["rating"]) * 2
-                if Prefs["CreateRatingTags"]:
-                    if int(data["rating"]) > 0:
-                        rating = str(int(data["rating"]))
-                        ratingstring = "Rating: " + rating + " Stars"
-                        try:
-                            metadata.collections.add(ratingstring)
-                        except:
-                            pass
-
-            # Set the summary
-            if data['details']:
-                summary = data["details"].replace("\n", " ").replace("\r", "").replace("\t", "")
-                metadata.summary = summary
-
-            # Set series and add to collections
-            if Prefs["CreateSiteCollectionTags"]:
-                if not data["studio"] is None:
-                    if Prefs["PrefixSiteCollectionTags"]:
-                        SitePrefix = Prefs["PrefixSiteCollectionTags"]
-                    else:
-                        SitePrefix = "Site: "
-                    site = SitePrefix + data["studio"]["name"]
-                    try:
-                        if DEBUG:
-                            Log("Adding Site Collection: " + site)
-                        metadata.collections.add(site)
-                    except:
-                        pass
-            if Prefs["CreateStudioCollectionTags"]:
-                if not data["studio"] is None:
-                    if Prefs["PrefixStudioCollectionTags"]:
-                        StudioPrefix = Prefs["PrefixStudioCollectionTags"]
-                    else:
-                        StudioPrefix = "Studio: "
-                    if not data["studio"]["parent_studio"] is None:
-                        site = StudioPrefix + data["studio"]["parent_studio"]["name"]
-                    else:
-                        if Prefs["UseSiteForStudioCollectionTags"]:
-                            site = StudioPrefix + data["studio"]["name"]
-                        else:
-                            site = None
-                    try:
-                        if DEBUG:
-                            Log("Adding Studio Collection: " + site)
-                        if site:
-                            metadata.collections.add(site)
-                    except:
-                        pass
-            if Prefs["CreateMovieCollectionTags"]:
-                if not data["movies"] is None:
-                    for movie in data["movies"]:
-                        if Prefs["PrefixMovieCollectionTags"]:
-                            MoviePrefix = Prefs["PrefixMovieCollectionTags"]
-                        else:
-                            MoviePrefix = "Movie: "
-                        if "name" in movie["movie"]:
-                            movie_collection = MoviePrefix + movie["movie"]["name"]
-                        try:
-                            if DEBUG:
-                                Log("Adding Movie Collection: " + movie_collection)
-                            metadata.collections.add(movie_collection)
-                        except:
-                            pass
-            if Prefs["CreatePerformerCollectionTags"]:
-                if not data["performers"] is None:
-                    for performer in data["performers"]:
-                        if Prefs["CreatePerformerCollectionTags"]:
-                            PerformerPrefix = Prefs["PrefixPerformerCollectionTags"]
-                        else:
-                            PerformerPrefix = "Actor: "
-                        if "name" in performer:
-                            actor_collection = PerformerPrefix + performer["name"]
-                        try:
-                            if DEBUG:
-                                Log("Adding Performer Collection: " + actor_collection)
-                            metadata.collections.add(actor_collection)
-                        except:
-                            pass
-
-            # Add the genres
-            metadata.genres.clear()
-            if Prefs["IgnoreTags"]:
-                ignore_tags = Prefs["IgnoreTags"].split(",")
-                ignore_tags = list(map(lambda x: x.strip(), ignore_tags))
-            else:
-                ignore_tags = []
-            if Prefs["CreateTagCollectionTags"]:
-                collection_tags = Prefs["CreateTagCollectionTags"].split(",")
-                collection_tags = list(map(lambda x: x.strip(), collection_tags))
-            else:
-                collection_tags = []
-            try:
-                if data["tags"]:
-                    genres = data["tags"]
-                    for genre in genres:
-                        if not genre["id"] in ignore_tags and "ambiguous" not in genre["name"].lower():
-                            metadata.genres.add(genre["name"])
-                            if not Prefs["CreateAllTagCollectionTags"] and genre["id"] in collection_tags:
-                                try:
-                                    if DEBUG:
-                                        Log("Adding Tag Collection: " + genre["name"])
-                                    metadata.collections.add(genre["name"])
-                                except:
-                                    pass
-                            elif Prefs["CreateAllTagCollectionTags"] and genre["id"] not in collection_tags:
-                                try:
-                                    if DEBUG:
-                                        Log("Adding Tag Collection: " + genre["name"])
-                                    metadata.collections.add(genre["name"])
-                                except:
-                                    pass
-                if Prefs["AppendPerformerTags"]:
-                    for performer in data["performers"]:
-                        if performer["tags"]:
-                            genres = performer["tags"]
-                            for genre in genres:
-                                if not genre["id"] in ignore_tags and "ambiguous" not in genre["name"].lower() and genre["name"] not in metadata.genres:
-                                    if DEBUG:
-                                        Log("Added Performer (" + performer['name'] + ") tag to scene: " + genre['name'] )
-                                    metadata.genres.add(genre["name"])
-                                    if genre["id"] in collection_tags:
-                                        try:
-                                            if DEBUG:
-                                                Log("Adding Tag Collection: " + genre["name"])
-                                            metadata.collections.add(genre["name"])
-                                        except:
-                                            pass
-            except:
-                pass
-
-            # Add the performers
-            metadata.roles.clear()
-            # Create and populate role with actor's name
-            try:
-                if data["performers"]:
-                    api_string = ""
-                    if Prefs['APIKey']:
-                        api_string = '&apikey=%s' % Prefs['APIKey']
-                    models=data["performers"]
-                    for model in models:
-                        if DEBUG:
-                            Log("Pulling Model: " + model["name"] + " With Image: " + model["image_path"])
-                        role = metadata.roles.new()
-                        role.name = model["name"]
-                        role.photo = model["image_path"] + api_string
-            except:
-                pass
-
-            # Add posters and fan art.
-            if not data["paths"]["screenshot"] is None:
-                api_string = ""
-                if Prefs['APIKey']:
-                    api_string = '&apikey=%s' % Prefs['APIKey']
-                try:
-                    thumb = HTTP.Request(data["paths"]["screenshot"] + api_string)
-                    metadata.posters[data["paths"]["screenshot"] + api_string] = Proxy.Preview(thumb, sort_order=0)
-                    metadata.art[data["paths"]["screenshot"] + api_string] = Proxy.Preview(thumb, sort_order=0)
-                except Exception as e:
-                    pass
-
-            if Prefs["IncludeGalleryImages"]:
-                api_string = ""
-                if Prefs['APIKey']:
-                    api_string = '&apikey=%s' % Prefs['APIKey']
-                if Prefs['UseHTTPS']:
-                    imagestring = 'https://%s:%s/image/%s/image' + api_string
-                else:
-                    imagestring = 'http://%s:%s/image/%s/image' + api_string
-                if not data["galleries"] is None:
-                    for gallery in data["galleries"]:
-                        for image in gallery["images"]:
-                            if Prefs["SortGalleryImages"]:
-                                if image["file"]["height"] > image["file"]["width"]:
-                                    image_orientation = "poster"
-                                else:
-                                    image_orientation = "background"
-                            else:
-                                image_orientation = "all"
-                            imageurl = imagestring % (Prefs['Hostname'], Prefs['Port'], image["id"])
-                            try:
-                                thumb = HTTP.Request(imageurl)
-                                if image_orientation == "poster" or image_orientation == "all":
-                                    if DEBUG:
-                                        Log("Inserting Poster image: " + image["title"] + " (" + str(image["file"]["width"]) + "x" + str(image["file"]["height"]) + " WxH)")
-                                    metadata.posters[imageurl] = Proxy.Preview(thumb)
-                                if image_orientation == "background" or image_orientation == "all":
-                                    if DEBUG:
-                                        Log("Inserting Background image: " + image["title"] + " (" + str(image["file"]["width"]) + "x" + str(image["file"]["height"]) + " WxH)")
-                                        metadata.art[imageurl] = Proxy.Preview(thumb)
-                            except Exception as e:
-                                pass
diff --git a/3rd party/StashPlexAgent.bundle/Contents/DefaultPrefs.json b/3rd party/StashPlexAgent.bundle/Contents/DefaultPrefs.json
deleted file mode 100644
index 27fb2447..00000000
--- a/3rd party/StashPlexAgent.bundle/Contents/DefaultPrefs.json	
+++ /dev/null
@@ -1,146 +0,0 @@
-[
-    {
-        "id": "Hostname",
-        "label": "The host for Stash",
-        "type": "text",
-        "default": "127.0.0.1"
-    },
-    {
-        "id": "Port",
-        "label": "The port for Stash",
-        "type": "text",
-        "default": "9999"
-    },
-    {
-        "id": "UseHTTPS",
-        "label": "Use HTTPS instead of HTTP to connect",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "APIKey",
-        "label": "The API Key for Stash if Authentication is enabled",
-        "type": "text",
-        "default": ""
-    },
-    {
-        "id": "IncludeGalleryImages",
-        "label": "Include attached Gallery images in addition to default poster?",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "SortGalleryImages",
-        "label": "If including gallery images, auto sort into poster/background based on orientation?",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "AppendPerformerTags",
-        "label": "Include Performer Tags with the scraped scene tags?",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "IgnoreTags",
-        "label": "Stash Tag ID numbers to ignore (comma separated, 0 to disable)",
-        "type": "text",
-        "default": "1,2,3318,6279"
-    },
-    {
-        "id": "CreateTagCollectionTags",
-        "label": "Stash Tag ID numbers create Collections from (comma separated, 0 to disable)",
-        "type": "text",
-        "default": "0"
-    },
-    {
-        "id": "CreateAllTagCollectionTags",
-        "label": "Create Collections from ALL Tags (If TRUE then option above will exclude instead of include tags)",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "CreateSiteCollectionTags",
-        "label": "Auto create Plex Collection tags for scene Site",
-        "type": "bool",
-        "default": true
-    },
-    {
-        "id": "PrefixSiteCollectionTags",
-        "label": "Prefix for Site Collection Names (The Site name will be appended to this value)",
-        "type": "text",
-        "default": "Site: "
-    },
-    {
-        "id": "CreateStudioCollectionTags",
-        "label": "Auto create Plex Collection tags for scene Studio",
-        "type": "bool",
-        "default": true
-    },
-    {
-        "id": "UseSiteForStudioCollectionTags",
-        "label": "If Studio is not defined, use Site instead (In Stash, Studio is the parent of the scene Studio)",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "PrefixStudioCollectionTags",
-        "label": "Prefix for Studio Collection Names (The Studio name (if available) will be appended to this value)",
-        "type": "text",
-        "default": "Studio: "
-    },
-    {
-        "id": "CreateMovieCollectionTags",
-        "label": "Auto create Plex Collection tags for associated scene Movie",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "PrefixMovieCollectionTags",
-        "label": "Prefix for Movie Collection Names (The Movie title (if available) will be appended to this value)",
-        "type": "text",
-        "default": "Movie: "
-    },
-    {
-        "id": "CreatePerformerCollectionTags",
-        "label": "Auto create Plex Collection tags for associated Performers",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "PrefixPerformerCollectionTags",
-        "label": "Prefix for Performer Collection Names (The performer (if available) will be appended to this value)",
-        "type": "text",
-        "default": "Actor: "
-    },
-    {
-        "id": "CreateRatingTags",
-        "label": "Auto create Plex Collection tags for Stash star rating",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "RequireOrganized",
-        "label": "Require Organized flag to be set in Stash to pull metadata",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "RequireURL",
-        "label": "Require scene URL to be set in Stash to pull metadata",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "RequireStashID",
-        "label": "Require a scene StashID to be set in Stash to pull metadata",
-        "type": "bool",
-        "default": false
-    },
-    {
-        "id": "debug",
-        "label": "Use debug logging",
-        "type": "bool",
-        "default": false
-    },
-]
diff --git a/3rd party/StashPlexAgent.bundle/Contents/Info.plist b/3rd party/StashPlexAgent.bundle/Contents/Info.plist
deleted file mode 100644
index 7f1514f4..00000000
--- a/3rd party/StashPlexAgent.bundle/Contents/Info.plist	
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>CFBundleDevelopmentRegion</key>
-	<string>English</string>
-	<key>CFBundleExecutable</key>
-	<string>StashPlexAgent</string>
-	<key>CFBundleIdentifier</key>
-	<string>com.plexapp.agents.stashplexagent</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
-	<key>CFBundleSignature</key>
-	<string>????</string>
-	<key>CFBundleVersion</key>
-	<string>1.0</string>
-	<key>PlexFrameworkVersion</key>
-	<string>2</string>
-	<key>PlexPluginClass</key>
-	<string>Agent</string>
-	<key>PlexPluginMode</key>
-	<string>AlwaysOn</string>
-	<key>PlexPluginCodePolicy</key>
-	<string>Elevated</string>
-</dict>
-</plist>
diff --git a/3rd party/StashPlexAgent.bundle/README.md b/3rd party/StashPlexAgent.bundle/README.md
deleted file mode 100644
index dbd4e299..00000000
--- a/3rd party/StashPlexAgent.bundle/README.md	
+++ /dev/null
@@ -1,30 +0,0 @@
-# StashPlexAgent.bundle
-A very simplistic Plex agent to pull metadata from Stash.
-
-Scenes are matched based on filename (without path or extension) against the Stash "Path", so files must be scanned into Stash with their current filename.
-
-Preferences are set under the plugin, or in the library definition (if you set it as the primary agent for the library).  I'm using "Video Files Scanner" with it.
-
-By default it will create Plex "Site: <STUDIO>" and "Studio: <STUDIO PARENT>" collection tags, but this can be disabled in preferences.  There are several collection tag options available, and each can be modified with what it prepends the Collection name with
-
-Also Stash "Tags" are placed into Plex "Genres", as well as optionally pulling attached Performer tags into the Plex genre list
-
-You can also set tag numbers to ignore on import, I've left mine in as an example.  You probably want to change these unless your "temporary" tags miraculously line up with mine. (Also initially you might need to try saving a couple of times.  Plex seems to not want to initally keep changes in this field for some reason)
-
-And optionally you can pull in any images from galleries attached to Scenes as Plex artwork.  (There is an option to auto split gallery images into Poster/Background depending on basic orientation...  If it's taller than wide, it's a poster)
-
-For installing just download the bundle and put it into your "\PlexMediaServer\Plex Media Server\Plug-ins" folder.  (The entire bundle as a directory...  "\StashPlexAgent.bundle")
-
-I guarantee there will be problems.  When they pop up feel free to get with me (@Darklyter) on either the TPDB or Stash Discord channels.
-
-Also this agent only handles scenes currently.  I haven't played with movies in Stash much yet, but can take a look if there is interest (though it will optionally create Collections based on defined movies).  Currently the Plex ADE agent handles that for me.
-
-Also a bit of explanation for Sites vs Studios:
-
-I help out with TPDB, so I'm very much in the Site -> Studio -> Network mentality.  In Stash it is simply "Studio".
-
-For my thinking, a Stash studio that is directly connected to the scene is the "Site".  If that site has a parent studio, that is defined as "Studio".  If the scene studio has a grandparent, that would be "Network" (though I'm not doing anything with that yet.
-
-For example, in my Stash I have:  Mind Geek as the Parent of Brazzers which is the Parent of Brazzers Live.  
-
-Therefore a scene would have:  Site = "Brazzers Live", Studio = "Brazzers", Network = "Mind Geek"
\ No newline at end of file
diff --git a/README.md b/README.md
index 12cd7890..c90d29f9 100644
--- a/README.md
+++ b/README.md
@@ -1,31 +1,37 @@
 # CommunityScripts Repository
 
-This repository contains plugin and utility scripts created by the Stash community and hosted on the official GitHub repo.  There is also [a list of third-party plugins on our wiki page](https://github.com/stashapp/stash/wiki/Plugins-&--Scripts).
+This repository contains plugin and utility scripts created by the Stash community and hosted on the official GitHub repo.  
 
-## How To Install
-To download a plugin, either clone the git repo, or download the files directly.
+There is also [a list of third-party plugins in our documentation](https://docs.stashapp.cc/add-ons/third-party-integrations).
+
+## Please note: V24 now uses an installer
+# We recommend you use that to install (and update) plugins.  
+Manual installs are not recommended, and you shouldn't do so unless you otherwise know what you are doing.
 
-It is recommended that plugins are placed in their own subdirectory of your `plugins` directory. The `plugins` directory should be created as a subdirectory in the directory containing your `config.yml` file. This will be in `$HOME/.stash` by default.
+## How To Install
+To download a plugin in Stash v24, the CommunityScripts repo source is automatically installed by default.
 
-When downloading directly click on the file you want and then make sure to click the raw button:
+This default source is located at https://stashapp.github.io/CommunityScripts/stable/index.yml
 
-![](https://user-images.githubusercontent.com/1358708/82524777-cd4cfe80-9afd-11ea-808d-5ea7bf26704f.jpg)
+# Plugin, Themes, and Scripts Directory
+We used to list all community supported plugins, themes, and scripts in this repository...
+but with the changes in v24, ANY items installable by the plugin installer will no longer listed here.
+Use the Plugin Installer built into Stash.
 
-# Plugin and Script Directory
-This list keeps track of scripts and plugins in this repository. Please ensure the list is kept in alphabetical order.
+We will continue to list the items NOT otherwise installable in this way below.
 
 ## NOTE: BREAKING CHANGES
-The upcoming v24 release (and the current development branch) have breaking changes to schema, and also plugin changes.
-We're beginning to review plugins and the rest and patch them to work, but it's an ongoing process.
-We'll update the table below as we do this, but we STRONGLY recommend you do not use the development branch unless you are prepared to help with the patching.
+The recent v24 release (and future development branches) had major breaking changes to old schema and plugin changes.
+We're beginning to review plugins and the rest and patch them to work, but it's an ongoing process...
+
+We'll update the table below as we do this...
 We will also be rearranging things a bit, and updating documentation (including this page)
 
-## Plugins
+## Plugins will no longer be listed individually here...
 
 Category|Triggers|Plugin Name|Description|Minimum Stash version|Updated for v24|
 --------|-----------|-----------|-----------|---------------------|-----
-Scraper|Task|[GHScraper_Checker](plugins/GHScraper_Checker)|Compare local file against github file from the community scraper repo.|v0.8|:x:
-Maintenance|Task<br />Scene.Update|[renamerOnUpdate](plugins/renamerOnUpdate)|Rename/Move your file based on Stash metadata.|v0.7|:x:
+Maintenance|Task<br />Scene.Update|[renamerOnUpdate](plugins/renamerOnUpdate)|Rename/Move your file based on Stash metadata.|v2.4|:white_check_mark: STOPGAP
 Maintenance|Set Scene Cover|[setSceneCoverFromFile](plugins/setSceneCoverFromFile)|Searchs Stash for Scenes with a cover image in the same folder and sets the cover image in stash to that image|v0.7|:x:
 Scenes|SceneMarker.Create<br />SceneMarker.Update|[markerTagToScene](plugins/markerTagToScene)|Adds primary tag of Scene Marker to the Scene on marker create/update.|v0.8 ([46bbede](https://github.com/stashapp/stash/commit/46bbede9a07144797d6f26cf414205b390ca88f9))|:x:
 Scanning|Scene.Create<br />Gallery.Create<br />Image.Create|[defaultDataForPath](plugins/defaultDataForPath)|Adds configured Tags, Performers and/or Studio to all newly scanned Scenes, Images and Galleries..|v0.8|:x:
@@ -36,18 +42,46 @@ Reporting||[TagGraph](plugins/tagGraph)|Creates a visual of the Tag relations.|v
 
 ## Themes
 
-Theme Name|Description                                 |Updated for v24|
-----------|--------------------------------------------|----
-[Plex](themes/plex)      |Theme inspired by the popular Plex Interface|:x:
+# A Variety of Themes are now available to be one click installed via the Plugin Setting page in your Stash
+We welcome new themes, as well as patches to existing themes.
 
 ## Utility Scripts
 
-|Category|Userscript Name|Description|Updated for v24|
+|Category|Name|Description|Updated for v24|
 ---------|---------------|-----------|----
 StashDB  |[StashDB Submission Helper](/userscripts/StashDB_Submission_Helper)|Adds handy functions for StashDB submissions like buttons to add aliases in bulk to a performer|:x:
+Kodi|[Kodi Helper](scripts/kodi-helper)|Generates `nfo` and `strm` for use with Kodi.|v0.7|:x:
 
-## Utility Scripts
+## Contributing
 
-Category|Plugin Name|Description|Minimum Stash version|Updated for v24|
---------|-----------|-----------|---------------------|----
-Kodi|[Kodi Helper](scripts/kodi-helper)|Generates `nfo` and `strm` for use with Kodi.|v0.7|:x:
+### For plugins made with [stash-plugin-builder](https://github.com/Tetrax-10/stash-plugin-builder)
+
+Please refer to its [docs](https://github.com/Tetrax-10/stash-plugin-builder#readme) for building.
+
+### Formatting
+
+Formatting is enforced on all files. Follow this setup guide:
+
+1. **[Yarn](https://yarnpkg.com/en/docs/install)** and **its dependencies** must be installed to run the formatting tools.
+    ```sh
+    yarn install --frozen-lockfile
+    ```
+
+2. **Python dependencies** must also be installed to format `py` files.
+    ```sh
+    pip install -r requirements.txt
+    ```
+
+#### Formatting non-`py` files
+
+```sh
+yarn run format
+```
+
+#### Formatting `py` files
+
+`py` files are formatted using [`black`](https://pypi.org/project/black/).
+
+```sh
+yarn run format-py
+```
\ No newline at end of file
diff --git a/build_site.sh b/build_site.sh
deleted file mode 100755
index 463ee690..00000000
--- a/build_site.sh
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/bash
-
-# builds a repository of scrapers
-# outputs to _site with the following structure:
-# index.yml
-# <scraper_id>.zip
-# Each zip file contains the scraper.yml file and any other files in the same directory
-
-outdir="$1"
-if [ -z "$outdir" ]; then
-    outdir="_site"
-fi
-
-rm -rf "$outdir"
-mkdir -p "$outdir"
-
-buildPlugin() 
-{
-    f=$1
-
-    if grep -q "^#pkgignore" "$f"; then
-        return
-    fi
-    
-    # get the scraper id from the directory
-    dir=$(dirname "$f")
-    plugin_id=$(basename "$f" .yml)
-
-    echo "Processing $plugin_id"
-
-    # create a directory for the version
-    version=$(git log -n 1 --pretty=format:%h -- "$dir"/*)
-    updated=$(TZ=UTC0 git log -n 1 --date="format-local:%F %T" --pretty=format:%ad -- "$dir"/*)
-    
-    # create the zip file
-    # copy other files
-    zipfile=$(realpath "$outdir/$plugin_id.zip")
-    
-    pushd "$dir" > /dev/null
-    zip -r "$zipfile" . > /dev/null
-    popd > /dev/null
-
-    name=$(grep "^name:" "$f" | head -n 1 | cut -d' ' -f2- | sed -e 's/\r//' -e 's/^"\(.*\)"$/\1/')
-    description=$(grep "^description:" "$f" | head -n 1 | cut -d' ' -f2- | sed -e 's/\r//' -e 's/^"\(.*\)"$/\1/')
-    ymlVersion=$(grep "^version:" "$f" | head -n 1 | cut -d' ' -f2- | sed -e 's/\r//' -e 's/^"\(.*\)"$/\1/')
-    version="$ymlVersion-$version"
-    dep=$(grep "^# requires:" "$f" | cut -c 12- | sed -e 's/\r//')
-
-    # write to spec index
-    echo "- id: $plugin_id
-  name: $name
-  metadata:
-    description: $description
-  version: $version
-  date: $updated
-  path: $plugin_id.zip
-  sha256: $(sha256sum "$zipfile" | cut -d' ' -f1)" >> "$outdir"/index.yml
-
-    # handle dependencies
-    if [ ! -z "$dep" ]; then
-        echo "  requires:" >> "$outdir"/index.yml
-        for d in ${dep//,/ }; do
-            echo "    - $d" >> "$outdir"/index.yml
-        done
-    fi
-
-    echo "" >> "$outdir"/index.yml
-}
-
-find ./plugins -mindepth 1 -name *.yml | while read file; do
-    buildPlugin "$file"
-done
diff --git a/plugins/CropperJS/CropperJS.yml b/plugins/CropperJS/CropperJS.yml
deleted file mode 100644
index 7b5b6cba..00000000
--- a/plugins/CropperJS/CropperJS.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-name: Cropper.JS
-description: Exports cropper.js functionality for JS/Userscripts
-version: 1.6.1
-ui:
-  css:
-  - cropper.css
-  javascript:
-  - cropper.js
-
-# note - not minimized for more transparency around updates & diffs against source code
-# https://github.com/fengyuanchen/cropperjs/tree/main/dist
\ No newline at end of file
diff --git a/plugins/CropperJS/cropper.css b/plugins/CropperJS/cropper.css
deleted file mode 100644
index 98a40ab8..00000000
--- a/plugins/CropperJS/cropper.css
+++ /dev/null
@@ -1,308 +0,0 @@
-/*!
- * Cropper.js v1.6.1
- * https://fengyuanchen.github.io/cropperjs
- *
- * Copyright 2015-present Chen Fengyuan
- * Released under the MIT license
- *
- * Date: 2023-09-17T03:44:17.565Z
- */
-
-.cropper-container {
-  direction: ltr;
-  font-size: 0;
-  line-height: 0;
-  position: relative;
-  -ms-touch-action: none;
-      touch-action: none;
-  -webkit-user-select: none;
-     -moz-user-select: none;
-      -ms-user-select: none;
-          user-select: none;
-}
-
-.cropper-container img {
-    backface-visibility: hidden;
-    display: block;
-    height: 100%;
-    image-orientation: 0deg;
-    max-height: none !important;
-    max-width: none !important;
-    min-height: 0 !important;
-    min-width: 0 !important;
-    width: 100%;
-  }
-
-.cropper-wrap-box,
-.cropper-canvas,
-.cropper-drag-box,
-.cropper-crop-box,
-.cropper-modal {
-  bottom: 0;
-  left: 0;
-  position: absolute;
-  right: 0;
-  top: 0;
-}
-
-.cropper-wrap-box,
-.cropper-canvas {
-  overflow: hidden;
-}
-
-.cropper-drag-box {
-  background-color: #fff;
-  opacity: 0;
-}
-
-.cropper-modal {
-  background-color: #000;
-  opacity: 0.5;
-}
-
-.cropper-view-box {
-  display: block;
-  height: 100%;
-  outline: 1px solid #39f;
-  outline-color: rgba(51, 153, 255, 0.75);
-  overflow: hidden;
-  width: 100%;
-}
-
-.cropper-dashed {
-  border: 0 dashed #eee;
-  display: block;
-  opacity: 0.5;
-  position: absolute;
-}
-
-.cropper-dashed.dashed-h {
-    border-bottom-width: 1px;
-    border-top-width: 1px;
-    height: calc(100% / 3);
-    left: 0;
-    top: calc(100% / 3);
-    width: 100%;
-  }
-
-.cropper-dashed.dashed-v {
-    border-left-width: 1px;
-    border-right-width: 1px;
-    height: 100%;
-    left: calc(100% / 3);
-    top: 0;
-    width: calc(100% / 3);
-  }
-
-.cropper-center {
-  display: block;
-  height: 0;
-  left: 50%;
-  opacity: 0.75;
-  position: absolute;
-  top: 50%;
-  width: 0;
-}
-
-.cropper-center::before,
-  .cropper-center::after {
-    background-color: #eee;
-    content: ' ';
-    display: block;
-    position: absolute;
-  }
-
-.cropper-center::before {
-    height: 1px;
-    left: -3px;
-    top: 0;
-    width: 7px;
-  }
-
-.cropper-center::after {
-    height: 7px;
-    left: 0;
-    top: -3px;
-    width: 1px;
-  }
-
-.cropper-face,
-.cropper-line,
-.cropper-point {
-  display: block;
-  height: 100%;
-  opacity: 0.1;
-  position: absolute;
-  width: 100%;
-}
-
-.cropper-face {
-  background-color: #fff;
-  left: 0;
-  top: 0;
-}
-
-.cropper-line {
-  background-color: #39f;
-}
-
-.cropper-line.line-e {
-    cursor: ew-resize;
-    right: -3px;
-    top: 0;
-    width: 5px;
-  }
-
-.cropper-line.line-n {
-    cursor: ns-resize;
-    height: 5px;
-    left: 0;
-    top: -3px;
-  }
-
-.cropper-line.line-w {
-    cursor: ew-resize;
-    left: -3px;
-    top: 0;
-    width: 5px;
-  }
-
-.cropper-line.line-s {
-    bottom: -3px;
-    cursor: ns-resize;
-    height: 5px;
-    left: 0;
-  }
-
-.cropper-point {
-  background-color: #39f;
-  height: 5px;
-  opacity: 0.75;
-  width: 5px;
-}
-
-.cropper-point.point-e {
-    cursor: ew-resize;
-    margin-top: -3px;
-    right: -3px;
-    top: 50%;
-  }
-
-.cropper-point.point-n {
-    cursor: ns-resize;
-    left: 50%;
-    margin-left: -3px;
-    top: -3px;
-  }
-
-.cropper-point.point-w {
-    cursor: ew-resize;
-    left: -3px;
-    margin-top: -3px;
-    top: 50%;
-  }
-
-.cropper-point.point-s {
-    bottom: -3px;
-    cursor: s-resize;
-    left: 50%;
-    margin-left: -3px;
-  }
-
-.cropper-point.point-ne {
-    cursor: nesw-resize;
-    right: -3px;
-    top: -3px;
-  }
-
-.cropper-point.point-nw {
-    cursor: nwse-resize;
-    left: -3px;
-    top: -3px;
-  }
-
-.cropper-point.point-sw {
-    bottom: -3px;
-    cursor: nesw-resize;
-    left: -3px;
-  }
-
-.cropper-point.point-se {
-    bottom: -3px;
-    cursor: nwse-resize;
-    height: 20px;
-    opacity: 1;
-    right: -3px;
-    width: 20px;
-  }
-
-@media (min-width: 768px) {
-
-.cropper-point.point-se {
-      height: 15px;
-      width: 15px;
-  }
-    }
-
-@media (min-width: 992px) {
-
-.cropper-point.point-se {
-      height: 10px;
-      width: 10px;
-  }
-    }
-
-@media (min-width: 1200px) {
-
-.cropper-point.point-se {
-      height: 5px;
-      opacity: 0.75;
-      width: 5px;
-  }
-    }
-
-.cropper-point.point-se::before {
-    background-color: #39f;
-    bottom: -50%;
-    content: ' ';
-    display: block;
-    height: 200%;
-    opacity: 0;
-    position: absolute;
-    right: -50%;
-    width: 200%;
-  }
-
-.cropper-invisible {
-  opacity: 0;
-}
-
-.cropper-bg {
-  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
-}
-
-.cropper-hide {
-  display: block;
-  height: 0;
-  position: absolute;
-  width: 0;
-}
-
-.cropper-hidden {
-  display: none !important;
-}
-
-.cropper-move {
-  cursor: move;
-}
-
-.cropper-crop {
-  cursor: crosshair;
-}
-
-.cropper-disabled .cropper-drag-box,
-.cropper-disabled .cropper-face,
-.cropper-disabled .cropper-line,
-.cropper-disabled .cropper-point {
-  cursor: not-allowed;
-}
diff --git a/plugins/CropperJS/cropper.js b/plugins/CropperJS/cropper.js
deleted file mode 100644
index 55a50c88..00000000
--- a/plugins/CropperJS/cropper.js
+++ /dev/null
@@ -1,3274 +0,0 @@
-/*!
- * Cropper.js v1.6.1
- * https://fengyuanchen.github.io/cropperjs
- *
- * Copyright 2015-present Chen Fengyuan
- * Released under the MIT license
- *
- * Date: 2023-09-17T03:44:19.860Z
- */
-
-(function (global, factory) {
-  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
-  typeof define === 'function' && define.amd ? define(factory) :
-  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Cropper = factory());
-})(this, (function () { 'use strict';
-
-  function ownKeys(e, r) {
-    var t = Object.keys(e);
-    if (Object.getOwnPropertySymbols) {
-      var o = Object.getOwnPropertySymbols(e);
-      r && (o = o.filter(function (r) {
-        return Object.getOwnPropertyDescriptor(e, r).enumerable;
-      })), t.push.apply(t, o);
-    }
-    return t;
-  }
-  function _objectSpread2(e) {
-    for (var r = 1; r < arguments.length; r++) {
-      var t = null != arguments[r] ? arguments[r] : {};
-      r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
-        _defineProperty(e, r, t[r]);
-      }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
-        Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
-      });
-    }
-    return e;
-  }
-  function _typeof(o) {
-    "@babel/helpers - typeof";
-
-    return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
-      return typeof o;
-    } : function (o) {
-      return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
-    }, _typeof(o);
-  }
-  function _classCallCheck(instance, Constructor) {
-    if (!(instance instanceof Constructor)) {
-      throw new TypeError("Cannot call a class as a function");
-    }
-  }
-  function _defineProperties(target, props) {
-    for (var i = 0; i < props.length; i++) {
-      var descriptor = props[i];
-      descriptor.enumerable = descriptor.enumerable || false;
-      descriptor.configurable = true;
-      if ("value" in descriptor) descriptor.writable = true;
-      Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
-    }
-  }
-  function _createClass(Constructor, protoProps, staticProps) {
-    if (protoProps) _defineProperties(Constructor.prototype, protoProps);
-    if (staticProps) _defineProperties(Constructor, staticProps);
-    Object.defineProperty(Constructor, "prototype", {
-      writable: false
-    });
-    return Constructor;
-  }
-  function _defineProperty(obj, key, value) {
-    key = _toPropertyKey(key);
-    if (key in obj) {
-      Object.defineProperty(obj, key, {
-        value: value,
-        enumerable: true,
-        configurable: true,
-        writable: true
-      });
-    } else {
-      obj[key] = value;
-    }
-    return obj;
-  }
-  function _toConsumableArray(arr) {
-    return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
-  }
-  function _arrayWithoutHoles(arr) {
-    if (Array.isArray(arr)) return _arrayLikeToArray(arr);
-  }
-  function _iterableToArray(iter) {
-    if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
-  }
-  function _unsupportedIterableToArray(o, minLen) {
-    if (!o) return;
-    if (typeof o === "string") return _arrayLikeToArray(o, minLen);
-    var n = Object.prototype.toString.call(o).slice(8, -1);
-    if (n === "Object" && o.constructor) n = o.constructor.name;
-    if (n === "Map" || n === "Set") return Array.from(o);
-    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
-  }
-  function _arrayLikeToArray(arr, len) {
-    if (len == null || len > arr.length) len = arr.length;
-    for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
-    return arr2;
-  }
-  function _nonIterableSpread() {
-    throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
-  }
-  function _toPrimitive(input, hint) {
-    if (typeof input !== "object" || input === null) return input;
-    var prim = input[Symbol.toPrimitive];
-    if (prim !== undefined) {
-      var res = prim.call(input, hint || "default");
-      if (typeof res !== "object") return res;
-      throw new TypeError("@@toPrimitive must return a primitive value.");
-    }
-    return (hint === "string" ? String : Number)(input);
-  }
-  function _toPropertyKey(arg) {
-    var key = _toPrimitive(arg, "string");
-    return typeof key === "symbol" ? key : String(key);
-  }
-
-  var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
-  var WINDOW = IS_BROWSER ? window : {};
-  var IS_TOUCH_DEVICE = IS_BROWSER && WINDOW.document.documentElement ? 'ontouchstart' in WINDOW.document.documentElement : false;
-  var HAS_POINTER_EVENT = IS_BROWSER ? 'PointerEvent' in WINDOW : false;
-  var NAMESPACE = 'cropper';
-
-  // Actions
-  var ACTION_ALL = 'all';
-  var ACTION_CROP = 'crop';
-  var ACTION_MOVE = 'move';
-  var ACTION_ZOOM = 'zoom';
-  var ACTION_EAST = 'e';
-  var ACTION_WEST = 'w';
-  var ACTION_SOUTH = 's';
-  var ACTION_NORTH = 'n';
-  var ACTION_NORTH_EAST = 'ne';
-  var ACTION_NORTH_WEST = 'nw';
-  var ACTION_SOUTH_EAST = 'se';
-  var ACTION_SOUTH_WEST = 'sw';
-
-  // Classes
-  var CLASS_CROP = "".concat(NAMESPACE, "-crop");
-  var CLASS_DISABLED = "".concat(NAMESPACE, "-disabled");
-  var CLASS_HIDDEN = "".concat(NAMESPACE, "-hidden");
-  var CLASS_HIDE = "".concat(NAMESPACE, "-hide");
-  var CLASS_INVISIBLE = "".concat(NAMESPACE, "-invisible");
-  var CLASS_MODAL = "".concat(NAMESPACE, "-modal");
-  var CLASS_MOVE = "".concat(NAMESPACE, "-move");
-
-  // Data keys
-  var DATA_ACTION = "".concat(NAMESPACE, "Action");
-  var DATA_PREVIEW = "".concat(NAMESPACE, "Preview");
-
-  // Drag modes
-  var DRAG_MODE_CROP = 'crop';
-  var DRAG_MODE_MOVE = 'move';
-  var DRAG_MODE_NONE = 'none';
-
-  // Events
-  var EVENT_CROP = 'crop';
-  var EVENT_CROP_END = 'cropend';
-  var EVENT_CROP_MOVE = 'cropmove';
-  var EVENT_CROP_START = 'cropstart';
-  var EVENT_DBLCLICK = 'dblclick';
-  var EVENT_TOUCH_START = IS_TOUCH_DEVICE ? 'touchstart' : 'mousedown';
-  var EVENT_TOUCH_MOVE = IS_TOUCH_DEVICE ? 'touchmove' : 'mousemove';
-  var EVENT_TOUCH_END = IS_TOUCH_DEVICE ? 'touchend touchcancel' : 'mouseup';
-  var EVENT_POINTER_DOWN = HAS_POINTER_EVENT ? 'pointerdown' : EVENT_TOUCH_START;
-  var EVENT_POINTER_MOVE = HAS_POINTER_EVENT ? 'pointermove' : EVENT_TOUCH_MOVE;
-  var EVENT_POINTER_UP = HAS_POINTER_EVENT ? 'pointerup pointercancel' : EVENT_TOUCH_END;
-  var EVENT_READY = 'ready';
-  var EVENT_RESIZE = 'resize';
-  var EVENT_WHEEL = 'wheel';
-  var EVENT_ZOOM = 'zoom';
-
-  // Mime types
-  var MIME_TYPE_JPEG = 'image/jpeg';
-
-  // RegExps
-  var REGEXP_ACTIONS = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/;
-  var REGEXP_DATA_URL = /^data:/;
-  var REGEXP_DATA_URL_JPEG = /^data:image\/jpeg;base64,/;
-  var REGEXP_TAG_NAME = /^img|canvas$/i;
-
-  // Misc
-  // Inspired by the default width and height of a canvas element.
-  var MIN_CONTAINER_WIDTH = 200;
-  var MIN_CONTAINER_HEIGHT = 100;
-
-  var DEFAULTS = {
-    // Define the view mode of the cropper
-    viewMode: 0,
-    // 0, 1, 2, 3
-
-    // Define the dragging mode of the cropper
-    dragMode: DRAG_MODE_CROP,
-    // 'crop', 'move' or 'none'
-
-    // Define the initial aspect ratio of the crop box
-    initialAspectRatio: NaN,
-    // Define the aspect ratio of the crop box
-    aspectRatio: NaN,
-    // An object with the previous cropping result data
-    data: null,
-    // A selector for adding extra containers to preview
-    preview: '',
-    // Re-render the cropper when resize the window
-    responsive: true,
-    // Restore the cropped area after resize the window
-    restore: true,
-    // Check if the current image is a cross-origin image
-    checkCrossOrigin: true,
-    // Check the current image's Exif Orientation information
-    checkOrientation: true,
-    // Show the black modal
-    modal: true,
-    // Show the dashed lines for guiding
-    guides: true,
-    // Show the center indicator for guiding
-    center: true,
-    // Show the white modal to highlight the crop box
-    highlight: true,
-    // Show the grid background
-    background: true,
-    // Enable to crop the image automatically when initialize
-    autoCrop: true,
-    // Define the percentage of automatic cropping area when initializes
-    autoCropArea: 0.8,
-    // Enable to move the image
-    movable: true,
-    // Enable to rotate the image
-    rotatable: true,
-    // Enable to scale the image
-    scalable: true,
-    // Enable to zoom the image
-    zoomable: true,
-    // Enable to zoom the image by dragging touch
-    zoomOnTouch: true,
-    // Enable to zoom the image by wheeling mouse
-    zoomOnWheel: true,
-    // Define zoom ratio when zoom the image by wheeling mouse
-    wheelZoomRatio: 0.1,
-    // Enable to move the crop box
-    cropBoxMovable: true,
-    // Enable to resize the crop box
-    cropBoxResizable: true,
-    // Toggle drag mode between "crop" and "move" when click twice on the cropper
-    toggleDragModeOnDblclick: true,
-    // Size limitation
-    minCanvasWidth: 0,
-    minCanvasHeight: 0,
-    minCropBoxWidth: 0,
-    minCropBoxHeight: 0,
-    minContainerWidth: MIN_CONTAINER_WIDTH,
-    minContainerHeight: MIN_CONTAINER_HEIGHT,
-    // Shortcuts of events
-    ready: null,
-    cropstart: null,
-    cropmove: null,
-    cropend: null,
-    crop: null,
-    zoom: null
-  };
-
-  var TEMPLATE = '<div class="cropper-container" touch-action="none">' + '<div class="cropper-wrap-box">' + '<div class="cropper-canvas"></div>' + '</div>' + '<div class="cropper-drag-box"></div>' + '<div class="cropper-crop-box">' + '<span class="cropper-view-box"></span>' + '<span class="cropper-dashed dashed-h"></span>' + '<span class="cropper-dashed dashed-v"></span>' + '<span class="cropper-center"></span>' + '<span class="cropper-face"></span>' + '<span class="cropper-line line-e" data-cropper-action="e"></span>' + '<span class="cropper-line line-n" data-cropper-action="n"></span>' + '<span class="cropper-line line-w" data-cropper-action="w"></span>' + '<span class="cropper-line line-s" data-cropper-action="s"></span>' + '<span class="cropper-point point-e" data-cropper-action="e"></span>' + '<span class="cropper-point point-n" data-cropper-action="n"></span>' + '<span class="cropper-point point-w" data-cropper-action="w"></span>' + '<span class="cropper-point point-s" data-cropper-action="s"></span>' + '<span class="cropper-point point-ne" data-cropper-action="ne"></span>' + '<span class="cropper-point point-nw" data-cropper-action="nw"></span>' + '<span class="cropper-point point-sw" data-cropper-action="sw"></span>' + '<span class="cropper-point point-se" data-cropper-action="se"></span>' + '</div>' + '</div>';
-
-  /**
-   * Check if the given value is not a number.
-   */
-  var isNaN = Number.isNaN || WINDOW.isNaN;
-
-  /**
-   * Check if the given value is a number.
-   * @param {*} value - The value to check.
-   * @returns {boolean} Returns `true` if the given value is a number, else `false`.
-   */
-  function isNumber(value) {
-    return typeof value === 'number' && !isNaN(value);
-  }
-
-  /**
-   * Check if the given value is a positive number.
-   * @param {*} value - The value to check.
-   * @returns {boolean} Returns `true` if the given value is a positive number, else `false`.
-   */
-  var isPositiveNumber = function isPositiveNumber(value) {
-    return value > 0 && value < Infinity;
-  };
-
-  /**
-   * Check if the given value is undefined.
-   * @param {*} value - The value to check.
-   * @returns {boolean} Returns `true` if the given value is undefined, else `false`.
-   */
-  function isUndefined(value) {
-    return typeof value === 'undefined';
-  }
-
-  /**
-   * Check if the given value is an object.
-   * @param {*} value - The value to check.
-   * @returns {boolean} Returns `true` if the given value is an object, else `false`.
-   */
-  function isObject(value) {
-    return _typeof(value) === 'object' && value !== null;
-  }
-  var hasOwnProperty = Object.prototype.hasOwnProperty;
-
-  /**
-   * Check if the given value is a plain object.
-   * @param {*} value - The value to check.
-   * @returns {boolean} Returns `true` if the given value is a plain object, else `false`.
-   */
-  function isPlainObject(value) {
-    if (!isObject(value)) {
-      return false;
-    }
-    try {
-      var _constructor = value.constructor;
-      var prototype = _constructor.prototype;
-      return _constructor && prototype && hasOwnProperty.call(prototype, 'isPrototypeOf');
-    } catch (error) {
-      return false;
-    }
-  }
-
-  /**
-   * Check if the given value is a function.
-   * @param {*} value - The value to check.
-   * @returns {boolean} Returns `true` if the given value is a function, else `false`.
-   */
-  function isFunction(value) {
-    return typeof value === 'function';
-  }
-  var slice = Array.prototype.slice;
-
-  /**
-   * Convert array-like or iterable object to an array.
-   * @param {*} value - The value to convert.
-   * @returns {Array} Returns a new array.
-   */
-  function toArray(value) {
-    return Array.from ? Array.from(value) : slice.call(value);
-  }
-
-  /**
-   * Iterate the given data.
-   * @param {*} data - The data to iterate.
-   * @param {Function} callback - The process function for each element.
-   * @returns {*} The original data.
-   */
-  function forEach(data, callback) {
-    if (data && isFunction(callback)) {
-      if (Array.isArray(data) || isNumber(data.length) /* array-like */) {
-        toArray(data).forEach(function (value, key) {
-          callback.call(data, value, key, data);
-        });
-      } else if (isObject(data)) {
-        Object.keys(data).forEach(function (key) {
-          callback.call(data, data[key], key, data);
-        });
-      }
-    }
-    return data;
-  }
-
-  /**
-   * Extend the given object.
-   * @param {*} target - The target object to extend.
-   * @param {*} args - The rest objects for merging to the target object.
-   * @returns {Object} The extended object.
-   */
-  var assign = Object.assign || function assign(target) {
-    for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
-      args[_key - 1] = arguments[_key];
-    }
-    if (isObject(target) && args.length > 0) {
-      args.forEach(function (arg) {
-        if (isObject(arg)) {
-          Object.keys(arg).forEach(function (key) {
-            target[key] = arg[key];
-          });
-        }
-      });
-    }
-    return target;
-  };
-  var REGEXP_DECIMALS = /\.\d*(?:0|9){12}\d*$/;
-
-  /**
-   * Normalize decimal number.
-   * Check out {@link https://0.30000000000000004.com/}
-   * @param {number} value - The value to normalize.
-   * @param {number} [times=100000000000] - The times for normalizing.
-   * @returns {number} Returns the normalized number.
-   */
-  function normalizeDecimalNumber(value) {
-    var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100000000000;
-    return REGEXP_DECIMALS.test(value) ? Math.round(value * times) / times : value;
-  }
-  var REGEXP_SUFFIX = /^width|height|left|top|marginLeft|marginTop$/;
-
-  /**
-   * Apply styles to the given element.
-   * @param {Element} element - The target element.
-   * @param {Object} styles - The styles for applying.
-   */
-  function setStyle(element, styles) {
-    var style = element.style;
-    forEach(styles, function (value, property) {
-      if (REGEXP_SUFFIX.test(property) && isNumber(value)) {
-        value = "".concat(value, "px");
-      }
-      style[property] = value;
-    });
-  }
-
-  /**
-   * Check if the given element has a special class.
-   * @param {Element} element - The element to check.
-   * @param {string} value - The class to search.
-   * @returns {boolean} Returns `true` if the special class was found.
-   */
-  function hasClass(element, value) {
-    return element.classList ? element.classList.contains(value) : element.className.indexOf(value) > -1;
-  }
-
-  /**
-   * Add classes to the given element.
-   * @param {Element} element - The target element.
-   * @param {string} value - The classes to be added.
-   */
-  function addClass(element, value) {
-    if (!value) {
-      return;
-    }
-    if (isNumber(element.length)) {
-      forEach(element, function (elem) {
-        addClass(elem, value);
-      });
-      return;
-    }
-    if (element.classList) {
-      element.classList.add(value);
-      return;
-    }
-    var className = element.className.trim();
-    if (!className) {
-      element.className = value;
-    } else if (className.indexOf(value) < 0) {
-      element.className = "".concat(className, " ").concat(value);
-    }
-  }
-
-  /**
-   * Remove classes from the given element.
-   * @param {Element} element - The target element.
-   * @param {string} value - The classes to be removed.
-   */
-  function removeClass(element, value) {
-    if (!value) {
-      return;
-    }
-    if (isNumber(element.length)) {
-      forEach(element, function (elem) {
-        removeClass(elem, value);
-      });
-      return;
-    }
-    if (element.classList) {
-      element.classList.remove(value);
-      return;
-    }
-    if (element.className.indexOf(value) >= 0) {
-      element.className = element.className.replace(value, '');
-    }
-  }
-
-  /**
-   * Add or remove classes from the given element.
-   * @param {Element} element - The target element.
-   * @param {string} value - The classes to be toggled.
-   * @param {boolean} added - Add only.
-   */
-  function toggleClass(element, value, added) {
-    if (!value) {
-      return;
-    }
-    if (isNumber(element.length)) {
-      forEach(element, function (elem) {
-        toggleClass(elem, value, added);
-      });
-      return;
-    }
-
-    // IE10-11 doesn't support the second parameter of `classList.toggle`
-    if (added) {
-      addClass(element, value);
-    } else {
-      removeClass(element, value);
-    }
-  }
-  var REGEXP_CAMEL_CASE = /([a-z\d])([A-Z])/g;
-
-  /**
-   * Transform the given string from camelCase to kebab-case
-   * @param {string} value - The value to transform.
-   * @returns {string} The transformed value.
-   */
-  function toParamCase(value) {
-    return value.replace(REGEXP_CAMEL_CASE, '$1-$2').toLowerCase();
-  }
-
-  /**
-   * Get data from the given element.
-   * @param {Element} element - The target element.
-   * @param {string} name - The data key to get.
-   * @returns {string} The data value.
-   */
-  function getData(element, name) {
-    if (isObject(element[name])) {
-      return element[name];
-    }
-    if (element.dataset) {
-      return element.dataset[name];
-    }
-    return element.getAttribute("data-".concat(toParamCase(name)));
-  }
-
-  /**
-   * Set data to the given element.
-   * @param {Element} element - The target element.
-   * @param {string} name - The data key to set.
-   * @param {string} data - The data value.
-   */
-  function setData(element, name, data) {
-    if (isObject(data)) {
-      element[name] = data;
-    } else if (element.dataset) {
-      element.dataset[name] = data;
-    } else {
-      element.setAttribute("data-".concat(toParamCase(name)), data);
-    }
-  }
-
-  /**
-   * Remove data from the given element.
-   * @param {Element} element - The target element.
-   * @param {string} name - The data key to remove.
-   */
-  function removeData(element, name) {
-    if (isObject(element[name])) {
-      try {
-        delete element[name];
-      } catch (error) {
-        element[name] = undefined;
-      }
-    } else if (element.dataset) {
-      // #128 Safari not allows to delete dataset property
-      try {
-        delete element.dataset[name];
-      } catch (error) {
-        element.dataset[name] = undefined;
-      }
-    } else {
-      element.removeAttribute("data-".concat(toParamCase(name)));
-    }
-  }
-  var REGEXP_SPACES = /\s\s*/;
-  var onceSupported = function () {
-    var supported = false;
-    if (IS_BROWSER) {
-      var once = false;
-      var listener = function listener() {};
-      var options = Object.defineProperty({}, 'once', {
-        get: function get() {
-          supported = true;
-          return once;
-        },
-        /**
-         * This setter can fix a `TypeError` in strict mode
-         * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only}
-         * @param {boolean} value - The value to set
-         */
-        set: function set(value) {
-          once = value;
-        }
-      });
-      WINDOW.addEventListener('test', listener, options);
-      WINDOW.removeEventListener('test', listener, options);
-    }
-    return supported;
-  }();
-
-  /**
-   * Remove event listener from the target element.
-   * @param {Element} element - The event target.
-   * @param {string} type - The event type(s).
-   * @param {Function} listener - The event listener.
-   * @param {Object} options - The event options.
-   */
-  function removeListener(element, type, listener) {
-    var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
-    var handler = listener;
-    type.trim().split(REGEXP_SPACES).forEach(function (event) {
-      if (!onceSupported) {
-        var listeners = element.listeners;
-        if (listeners && listeners[event] && listeners[event][listener]) {
-          handler = listeners[event][listener];
-          delete listeners[event][listener];
-          if (Object.keys(listeners[event]).length === 0) {
-            delete listeners[event];
-          }
-          if (Object.keys(listeners).length === 0) {
-            delete element.listeners;
-          }
-        }
-      }
-      element.removeEventListener(event, handler, options);
-    });
-  }
-
-  /**
-   * Add event listener to the target element.
-   * @param {Element} element - The event target.
-   * @param {string} type - The event type(s).
-   * @param {Function} listener - The event listener.
-   * @param {Object} options - The event options.
-   */
-  function addListener(element, type, listener) {
-    var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
-    var _handler = listener;
-    type.trim().split(REGEXP_SPACES).forEach(function (event) {
-      if (options.once && !onceSupported) {
-        var _element$listeners = element.listeners,
-          listeners = _element$listeners === void 0 ? {} : _element$listeners;
-        _handler = function handler() {
-          delete listeners[event][listener];
-          element.removeEventListener(event, _handler, options);
-          for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
-            args[_key2] = arguments[_key2];
-          }
-          listener.apply(element, args);
-        };
-        if (!listeners[event]) {
-          listeners[event] = {};
-        }
-        if (listeners[event][listener]) {
-          element.removeEventListener(event, listeners[event][listener], options);
-        }
-        listeners[event][listener] = _handler;
-        element.listeners = listeners;
-      }
-      element.addEventListener(event, _handler, options);
-    });
-  }
-
-  /**
-   * Dispatch event on the target element.
-   * @param {Element} element - The event target.
-   * @param {string} type - The event type(s).
-   * @param {Object} data - The additional event data.
-   * @returns {boolean} Indicate if the event is default prevented or not.
-   */
-  function dispatchEvent(element, type, data) {
-    var event;
-
-    // Event and CustomEvent on IE9-11 are global objects, not constructors
-    if (isFunction(Event) && isFunction(CustomEvent)) {
-      event = new CustomEvent(type, {
-        detail: data,
-        bubbles: true,
-        cancelable: true
-      });
-    } else {
-      event = document.createEvent('CustomEvent');
-      event.initCustomEvent(type, true, true, data);
-    }
-    return element.dispatchEvent(event);
-  }
-
-  /**
-   * Get the offset base on the document.
-   * @param {Element} element - The target element.
-   * @returns {Object} The offset data.
-   */
-  function getOffset(element) {
-    var box = element.getBoundingClientRect();
-    return {
-      left: box.left + (window.pageXOffset - document.documentElement.clientLeft),
-      top: box.top + (window.pageYOffset - document.documentElement.clientTop)
-    };
-  }
-  var location = WINDOW.location;
-  var REGEXP_ORIGINS = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
-
-  /**
-   * Check if the given URL is a cross origin URL.
-   * @param {string} url - The target URL.
-   * @returns {boolean} Returns `true` if the given URL is a cross origin URL, else `false`.
-   */
-  function isCrossOriginURL(url) {
-    var parts = url.match(REGEXP_ORIGINS);
-    return parts !== null && (parts[1] !== location.protocol || parts[2] !== location.hostname || parts[3] !== location.port);
-  }
-
-  /**
-   * Add timestamp to the given URL.
-   * @param {string} url - The target URL.
-   * @returns {string} The result URL.
-   */
-  function addTimestamp(url) {
-    var timestamp = "timestamp=".concat(new Date().getTime());
-    return url + (url.indexOf('?') === -1 ? '?' : '&') + timestamp;
-  }
-
-  /**
-   * Get transforms base on the given object.
-   * @param {Object} obj - The target object.
-   * @returns {string} A string contains transform values.
-   */
-  function getTransforms(_ref) {
-    var rotate = _ref.rotate,
-      scaleX = _ref.scaleX,
-      scaleY = _ref.scaleY,
-      translateX = _ref.translateX,
-      translateY = _ref.translateY;
-    var values = [];
-    if (isNumber(translateX) && translateX !== 0) {
-      values.push("translateX(".concat(translateX, "px)"));
-    }
-    if (isNumber(translateY) && translateY !== 0) {
-      values.push("translateY(".concat(translateY, "px)"));
-    }
-
-    // Rotate should come first before scale to match orientation transform
-    if (isNumber(rotate) && rotate !== 0) {
-      values.push("rotate(".concat(rotate, "deg)"));
-    }
-    if (isNumber(scaleX) && scaleX !== 1) {
-      values.push("scaleX(".concat(scaleX, ")"));
-    }
-    if (isNumber(scaleY) && scaleY !== 1) {
-      values.push("scaleY(".concat(scaleY, ")"));
-    }
-    var transform = values.length ? values.join(' ') : 'none';
-    return {
-      WebkitTransform: transform,
-      msTransform: transform,
-      transform: transform
-    };
-  }
-
-  /**
-   * Get the max ratio of a group of pointers.
-   * @param {string} pointers - The target pointers.
-   * @returns {number} The result ratio.
-   */
-  function getMaxZoomRatio(pointers) {
-    var pointers2 = _objectSpread2({}, pointers);
-    var maxRatio = 0;
-    forEach(pointers, function (pointer, pointerId) {
-      delete pointers2[pointerId];
-      forEach(pointers2, function (pointer2) {
-        var x1 = Math.abs(pointer.startX - pointer2.startX);
-        var y1 = Math.abs(pointer.startY - pointer2.startY);
-        var x2 = Math.abs(pointer.endX - pointer2.endX);
-        var y2 = Math.abs(pointer.endY - pointer2.endY);
-        var z1 = Math.sqrt(x1 * x1 + y1 * y1);
-        var z2 = Math.sqrt(x2 * x2 + y2 * y2);
-        var ratio = (z2 - z1) / z1;
-        if (Math.abs(ratio) > Math.abs(maxRatio)) {
-          maxRatio = ratio;
-        }
-      });
-    });
-    return maxRatio;
-  }
-
-  /**
-   * Get a pointer from an event object.
-   * @param {Object} event - The target event object.
-   * @param {boolean} endOnly - Indicates if only returns the end point coordinate or not.
-   * @returns {Object} The result pointer contains start and/or end point coordinates.
-   */
-  function getPointer(_ref2, endOnly) {
-    var pageX = _ref2.pageX,
-      pageY = _ref2.pageY;
-    var end = {
-      endX: pageX,
-      endY: pageY
-    };
-    return endOnly ? end : _objectSpread2({
-      startX: pageX,
-      startY: pageY
-    }, end);
-  }
-
-  /**
-   * Get the center point coordinate of a group of pointers.
-   * @param {Object} pointers - The target pointers.
-   * @returns {Object} The center point coordinate.
-   */
-  function getPointersCenter(pointers) {
-    var pageX = 0;
-    var pageY = 0;
-    var count = 0;
-    forEach(pointers, function (_ref3) {
-      var startX = _ref3.startX,
-        startY = _ref3.startY;
-      pageX += startX;
-      pageY += startY;
-      count += 1;
-    });
-    pageX /= count;
-    pageY /= count;
-    return {
-      pageX: pageX,
-      pageY: pageY
-    };
-  }
-
-  /**
-   * Get the max sizes in a rectangle under the given aspect ratio.
-   * @param {Object} data - The original sizes.
-   * @param {string} [type='contain'] - The adjust type.
-   * @returns {Object} The result sizes.
-   */
-  function getAdjustedSizes(_ref4) {
-    var aspectRatio = _ref4.aspectRatio,
-      height = _ref4.height,
-      width = _ref4.width;
-    var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'contain';
-    var isValidWidth = isPositiveNumber(width);
-    var isValidHeight = isPositiveNumber(height);
-    if (isValidWidth && isValidHeight) {
-      var adjustedWidth = height * aspectRatio;
-      if (type === 'contain' && adjustedWidth > width || type === 'cover' && adjustedWidth < width) {
-        height = width / aspectRatio;
-      } else {
-        width = height * aspectRatio;
-      }
-    } else if (isValidWidth) {
-      height = width / aspectRatio;
-    } else if (isValidHeight) {
-      width = height * aspectRatio;
-    }
-    return {
-      width: width,
-      height: height
-    };
-  }
-
-  /**
-   * Get the new sizes of a rectangle after rotated.
-   * @param {Object} data - The original sizes.
-   * @returns {Object} The result sizes.
-   */
-  function getRotatedSizes(_ref5) {
-    var width = _ref5.width,
-      height = _ref5.height,
-      degree = _ref5.degree;
-    degree = Math.abs(degree) % 180;
-    if (degree === 90) {
-      return {
-        width: height,
-        height: width
-      };
-    }
-    var arc = degree % 90 * Math.PI / 180;
-    var sinArc = Math.sin(arc);
-    var cosArc = Math.cos(arc);
-    var newWidth = width * cosArc + height * sinArc;
-    var newHeight = width * sinArc + height * cosArc;
-    return degree > 90 ? {
-      width: newHeight,
-      height: newWidth
-    } : {
-      width: newWidth,
-      height: newHeight
-    };
-  }
-
-  /**
-   * Get a canvas which drew the given image.
-   * @param {HTMLImageElement} image - The image for drawing.
-   * @param {Object} imageData - The image data.
-   * @param {Object} canvasData - The canvas data.
-   * @param {Object} options - The options.
-   * @returns {HTMLCanvasElement} The result canvas.
-   */
-  function getSourceCanvas(image, _ref6, _ref7, _ref8) {
-    var imageAspectRatio = _ref6.aspectRatio,
-      imageNaturalWidth = _ref6.naturalWidth,
-      imageNaturalHeight = _ref6.naturalHeight,
-      _ref6$rotate = _ref6.rotate,
-      rotate = _ref6$rotate === void 0 ? 0 : _ref6$rotate,
-      _ref6$scaleX = _ref6.scaleX,
-      scaleX = _ref6$scaleX === void 0 ? 1 : _ref6$scaleX,
-      _ref6$scaleY = _ref6.scaleY,
-      scaleY = _ref6$scaleY === void 0 ? 1 : _ref6$scaleY;
-    var aspectRatio = _ref7.aspectRatio,
-      naturalWidth = _ref7.naturalWidth,
-      naturalHeight = _ref7.naturalHeight;
-    var _ref8$fillColor = _ref8.fillColor,
-      fillColor = _ref8$fillColor === void 0 ? 'transparent' : _ref8$fillColor,
-      _ref8$imageSmoothingE = _ref8.imageSmoothingEnabled,
-      imageSmoothingEnabled = _ref8$imageSmoothingE === void 0 ? true : _ref8$imageSmoothingE,
-      _ref8$imageSmoothingQ = _ref8.imageSmoothingQuality,
-      imageSmoothingQuality = _ref8$imageSmoothingQ === void 0 ? 'low' : _ref8$imageSmoothingQ,
-      _ref8$maxWidth = _ref8.maxWidth,
-      maxWidth = _ref8$maxWidth === void 0 ? Infinity : _ref8$maxWidth,
-      _ref8$maxHeight = _ref8.maxHeight,
-      maxHeight = _ref8$maxHeight === void 0 ? Infinity : _ref8$maxHeight,
-      _ref8$minWidth = _ref8.minWidth,
-      minWidth = _ref8$minWidth === void 0 ? 0 : _ref8$minWidth,
-      _ref8$minHeight = _ref8.minHeight,
-      minHeight = _ref8$minHeight === void 0 ? 0 : _ref8$minHeight;
-    var canvas = document.createElement('canvas');
-    var context = canvas.getContext('2d');
-    var maxSizes = getAdjustedSizes({
-      aspectRatio: aspectRatio,
-      width: maxWidth,
-      height: maxHeight
-    });
-    var minSizes = getAdjustedSizes({
-      aspectRatio: aspectRatio,
-      width: minWidth,
-      height: minHeight
-    }, 'cover');
-    var width = Math.min(maxSizes.width, Math.max(minSizes.width, naturalWidth));
-    var height = Math.min(maxSizes.height, Math.max(minSizes.height, naturalHeight));
-
-    // Note: should always use image's natural sizes for drawing as
-    // imageData.naturalWidth === canvasData.naturalHeight when rotate % 180 === 90
-    var destMaxSizes = getAdjustedSizes({
-      aspectRatio: imageAspectRatio,
-      width: maxWidth,
-      height: maxHeight
-    });
-    var destMinSizes = getAdjustedSizes({
-      aspectRatio: imageAspectRatio,
-      width: minWidth,
-      height: minHeight
-    }, 'cover');
-    var destWidth = Math.min(destMaxSizes.width, Math.max(destMinSizes.width, imageNaturalWidth));
-    var destHeight = Math.min(destMaxSizes.height, Math.max(destMinSizes.height, imageNaturalHeight));
-    var params = [-destWidth / 2, -destHeight / 2, destWidth, destHeight];
-    canvas.width = normalizeDecimalNumber(width);
-    canvas.height = normalizeDecimalNumber(height);
-    context.fillStyle = fillColor;
-    context.fillRect(0, 0, width, height);
-    context.save();
-    context.translate(width / 2, height / 2);
-    context.rotate(rotate * Math.PI / 180);
-    context.scale(scaleX, scaleY);
-    context.imageSmoothingEnabled = imageSmoothingEnabled;
-    context.imageSmoothingQuality = imageSmoothingQuality;
-    context.drawImage.apply(context, [image].concat(_toConsumableArray(params.map(function (param) {
-      return Math.floor(normalizeDecimalNumber(param));
-    }))));
-    context.restore();
-    return canvas;
-  }
-  var fromCharCode = String.fromCharCode;
-
-  /**
-   * Get string from char code in data view.
-   * @param {DataView} dataView - The data view for read.
-   * @param {number} start - The start index.
-   * @param {number} length - The read length.
-   * @returns {string} The read result.
-   */
-  function getStringFromCharCode(dataView, start, length) {
-    var str = '';
-    length += start;
-    for (var i = start; i < length; i += 1) {
-      str += fromCharCode(dataView.getUint8(i));
-    }
-    return str;
-  }
-  var REGEXP_DATA_URL_HEAD = /^data:.*,/;
-
-  /**
-   * Transform Data URL to array buffer.
-   * @param {string} dataURL - The Data URL to transform.
-   * @returns {ArrayBuffer} The result array buffer.
-   */
-  function dataURLToArrayBuffer(dataURL) {
-    var base64 = dataURL.replace(REGEXP_DATA_URL_HEAD, '');
-    var binary = atob(base64);
-    var arrayBuffer = new ArrayBuffer(binary.length);
-    var uint8 = new Uint8Array(arrayBuffer);
-    forEach(uint8, function (value, i) {
-      uint8[i] = binary.charCodeAt(i);
-    });
-    return arrayBuffer;
-  }
-
-  /**
-   * Transform array buffer to Data URL.
-   * @param {ArrayBuffer} arrayBuffer - The array buffer to transform.
-   * @param {string} mimeType - The mime type of the Data URL.
-   * @returns {string} The result Data URL.
-   */
-  function arrayBufferToDataURL(arrayBuffer, mimeType) {
-    var chunks = [];
-
-    // Chunk Typed Array for better performance (#435)
-    var chunkSize = 8192;
-    var uint8 = new Uint8Array(arrayBuffer);
-    while (uint8.length > 0) {
-      // XXX: Babel's `toConsumableArray` helper will throw error in IE or Safari 9
-      // eslint-disable-next-line prefer-spread
-      chunks.push(fromCharCode.apply(null, toArray(uint8.subarray(0, chunkSize))));
-      uint8 = uint8.subarray(chunkSize);
-    }
-    return "data:".concat(mimeType, ";base64,").concat(btoa(chunks.join('')));
-  }
-
-  /**
-   * Get orientation value from given array buffer.
-   * @param {ArrayBuffer} arrayBuffer - The array buffer to read.
-   * @returns {number} The read orientation value.
-   */
-  function resetAndGetOrientation(arrayBuffer) {
-    var dataView = new DataView(arrayBuffer);
-    var orientation;
-
-    // Ignores range error when the image does not have correct Exif information
-    try {
-      var littleEndian;
-      var app1Start;
-      var ifdStart;
-
-      // Only handle JPEG image (start by 0xFFD8)
-      if (dataView.getUint8(0) === 0xFF && dataView.getUint8(1) === 0xD8) {
-        var length = dataView.byteLength;
-        var offset = 2;
-        while (offset + 1 < length) {
-          if (dataView.getUint8(offset) === 0xFF && dataView.getUint8(offset + 1) === 0xE1) {
-            app1Start = offset;
-            break;
-          }
-          offset += 1;
-        }
-      }
-      if (app1Start) {
-        var exifIDCode = app1Start + 4;
-        var tiffOffset = app1Start + 10;
-        if (getStringFromCharCode(dataView, exifIDCode, 4) === 'Exif') {
-          var endianness = dataView.getUint16(tiffOffset);
-          littleEndian = endianness === 0x4949;
-          if (littleEndian || endianness === 0x4D4D /* bigEndian */) {
-            if (dataView.getUint16(tiffOffset + 2, littleEndian) === 0x002A) {
-              var firstIFDOffset = dataView.getUint32(tiffOffset + 4, littleEndian);
-              if (firstIFDOffset >= 0x00000008) {
-                ifdStart = tiffOffset + firstIFDOffset;
-              }
-            }
-          }
-        }
-      }
-      if (ifdStart) {
-        var _length = dataView.getUint16(ifdStart, littleEndian);
-        var _offset;
-        var i;
-        for (i = 0; i < _length; i += 1) {
-          _offset = ifdStart + i * 12 + 2;
-          if (dataView.getUint16(_offset, littleEndian) === 0x0112 /* Orientation */) {
-            // 8 is the offset of the current tag's value
-            _offset += 8;
-
-            // Get the original orientation value
-            orientation = dataView.getUint16(_offset, littleEndian);
-
-            // Override the orientation with its default value
-            dataView.setUint16(_offset, 1, littleEndian);
-            break;
-          }
-        }
-      }
-    } catch (error) {
-      orientation = 1;
-    }
-    return orientation;
-  }
-
-  /**
-   * Parse Exif Orientation value.
-   * @param {number} orientation - The orientation to parse.
-   * @returns {Object} The parsed result.
-   */
-  function parseOrientation(orientation) {
-    var rotate = 0;
-    var scaleX = 1;
-    var scaleY = 1;
-    switch (orientation) {
-      // Flip horizontal
-      case 2:
-        scaleX = -1;
-        break;
-
-      // Rotate left 180°
-      case 3:
-        rotate = -180;
-        break;
-
-      // Flip vertical
-      case 4:
-        scaleY = -1;
-        break;
-
-      // Flip vertical and rotate right 90°
-      case 5:
-        rotate = 90;
-        scaleY = -1;
-        break;
-
-      // Rotate right 90°
-      case 6:
-        rotate = 90;
-        break;
-
-      // Flip horizontal and rotate right 90°
-      case 7:
-        rotate = 90;
-        scaleX = -1;
-        break;
-
-      // Rotate left 90°
-      case 8:
-        rotate = -90;
-        break;
-    }
-    return {
-      rotate: rotate,
-      scaleX: scaleX,
-      scaleY: scaleY
-    };
-  }
-
-  var render = {
-    render: function render() {
-      this.initContainer();
-      this.initCanvas();
-      this.initCropBox();
-      this.renderCanvas();
-      if (this.cropped) {
-        this.renderCropBox();
-      }
-    },
-    initContainer: function initContainer() {
-      var element = this.element,
-        options = this.options,
-        container = this.container,
-        cropper = this.cropper;
-      var minWidth = Number(options.minContainerWidth);
-      var minHeight = Number(options.minContainerHeight);
-      addClass(cropper, CLASS_HIDDEN);
-      removeClass(element, CLASS_HIDDEN);
-      var containerData = {
-        width: Math.max(container.offsetWidth, minWidth >= 0 ? minWidth : MIN_CONTAINER_WIDTH),
-        height: Math.max(container.offsetHeight, minHeight >= 0 ? minHeight : MIN_CONTAINER_HEIGHT)
-      };
-      this.containerData = containerData;
-      setStyle(cropper, {
-        width: containerData.width,
-        height: containerData.height
-      });
-      addClass(element, CLASS_HIDDEN);
-      removeClass(cropper, CLASS_HIDDEN);
-    },
-    // Canvas (image wrapper)
-    initCanvas: function initCanvas() {
-      var containerData = this.containerData,
-        imageData = this.imageData;
-      var viewMode = this.options.viewMode;
-      var rotated = Math.abs(imageData.rotate) % 180 === 90;
-      var naturalWidth = rotated ? imageData.naturalHeight : imageData.naturalWidth;
-      var naturalHeight = rotated ? imageData.naturalWidth : imageData.naturalHeight;
-      var aspectRatio = naturalWidth / naturalHeight;
-      var canvasWidth = containerData.width;
-      var canvasHeight = containerData.height;
-      if (containerData.height * aspectRatio > containerData.width) {
-        if (viewMode === 3) {
-          canvasWidth = containerData.height * aspectRatio;
-        } else {
-          canvasHeight = containerData.width / aspectRatio;
-        }
-      } else if (viewMode === 3) {
-        canvasHeight = containerData.width / aspectRatio;
-      } else {
-        canvasWidth = containerData.height * aspectRatio;
-      }
-      var canvasData = {
-        aspectRatio: aspectRatio,
-        naturalWidth: naturalWidth,
-        naturalHeight: naturalHeight,
-        width: canvasWidth,
-        height: canvasHeight
-      };
-      this.canvasData = canvasData;
-      this.limited = viewMode === 1 || viewMode === 2;
-      this.limitCanvas(true, true);
-      canvasData.width = Math.min(Math.max(canvasData.width, canvasData.minWidth), canvasData.maxWidth);
-      canvasData.height = Math.min(Math.max(canvasData.height, canvasData.minHeight), canvasData.maxHeight);
-      canvasData.left = (containerData.width - canvasData.width) / 2;
-      canvasData.top = (containerData.height - canvasData.height) / 2;
-      canvasData.oldLeft = canvasData.left;
-      canvasData.oldTop = canvasData.top;
-      this.initialCanvasData = assign({}, canvasData);
-    },
-    limitCanvas: function limitCanvas(sizeLimited, positionLimited) {
-      var options = this.options,
-        containerData = this.containerData,
-        canvasData = this.canvasData,
-        cropBoxData = this.cropBoxData;
-      var viewMode = options.viewMode;
-      var aspectRatio = canvasData.aspectRatio;
-      var cropped = this.cropped && cropBoxData;
-      if (sizeLimited) {
-        var minCanvasWidth = Number(options.minCanvasWidth) || 0;
-        var minCanvasHeight = Number(options.minCanvasHeight) || 0;
-        if (viewMode > 1) {
-          minCanvasWidth = Math.max(minCanvasWidth, containerData.width);
-          minCanvasHeight = Math.max(minCanvasHeight, containerData.height);
-          if (viewMode === 3) {
-            if (minCanvasHeight * aspectRatio > minCanvasWidth) {
-              minCanvasWidth = minCanvasHeight * aspectRatio;
-            } else {
-              minCanvasHeight = minCanvasWidth / aspectRatio;
-            }
-          }
-        } else if (viewMode > 0) {
-          if (minCanvasWidth) {
-            minCanvasWidth = Math.max(minCanvasWidth, cropped ? cropBoxData.width : 0);
-          } else if (minCanvasHeight) {
-            minCanvasHeight = Math.max(minCanvasHeight, cropped ? cropBoxData.height : 0);
-          } else if (cropped) {
-            minCanvasWidth = cropBoxData.width;
-            minCanvasHeight = cropBoxData.height;
-            if (minCanvasHeight * aspectRatio > minCanvasWidth) {
-              minCanvasWidth = minCanvasHeight * aspectRatio;
-            } else {
-              minCanvasHeight = minCanvasWidth / aspectRatio;
-            }
-          }
-        }
-        var _getAdjustedSizes = getAdjustedSizes({
-          aspectRatio: aspectRatio,
-          width: minCanvasWidth,
-          height: minCanvasHeight
-        });
-        minCanvasWidth = _getAdjustedSizes.width;
-        minCanvasHeight = _getAdjustedSizes.height;
-        canvasData.minWidth = minCanvasWidth;
-        canvasData.minHeight = minCanvasHeight;
-        canvasData.maxWidth = Infinity;
-        canvasData.maxHeight = Infinity;
-      }
-      if (positionLimited) {
-        if (viewMode > (cropped ? 0 : 1)) {
-          var newCanvasLeft = containerData.width - canvasData.width;
-          var newCanvasTop = containerData.height - canvasData.height;
-          canvasData.minLeft = Math.min(0, newCanvasLeft);
-          canvasData.minTop = Math.min(0, newCanvasTop);
-          canvasData.maxLeft = Math.max(0, newCanvasLeft);
-          canvasData.maxTop = Math.max(0, newCanvasTop);
-          if (cropped && this.limited) {
-            canvasData.minLeft = Math.min(cropBoxData.left, cropBoxData.left + (cropBoxData.width - canvasData.width));
-            canvasData.minTop = Math.min(cropBoxData.top, cropBoxData.top + (cropBoxData.height - canvasData.height));
-            canvasData.maxLeft = cropBoxData.left;
-            canvasData.maxTop = cropBoxData.top;
-            if (viewMode === 2) {
-              if (canvasData.width >= containerData.width) {
-                canvasData.minLeft = Math.min(0, newCanvasLeft);
-                canvasData.maxLeft = Math.max(0, newCanvasLeft);
-              }
-              if (canvasData.height >= containerData.height) {
-                canvasData.minTop = Math.min(0, newCanvasTop);
-                canvasData.maxTop = Math.max(0, newCanvasTop);
-              }
-            }
-          }
-        } else {
-          canvasData.minLeft = -canvasData.width;
-          canvasData.minTop = -canvasData.height;
-          canvasData.maxLeft = containerData.width;
-          canvasData.maxTop = containerData.height;
-        }
-      }
-    },
-    renderCanvas: function renderCanvas(changed, transformed) {
-      var canvasData = this.canvasData,
-        imageData = this.imageData;
-      if (transformed) {
-        var _getRotatedSizes = getRotatedSizes({
-            width: imageData.naturalWidth * Math.abs(imageData.scaleX || 1),
-            height: imageData.naturalHeight * Math.abs(imageData.scaleY || 1),
-            degree: imageData.rotate || 0
-          }),
-          naturalWidth = _getRotatedSizes.width,
-          naturalHeight = _getRotatedSizes.height;
-        var width = canvasData.width * (naturalWidth / canvasData.naturalWidth);
-        var height = canvasData.height * (naturalHeight / canvasData.naturalHeight);
-        canvasData.left -= (width - canvasData.width) / 2;
-        canvasData.top -= (height - canvasData.height) / 2;
-        canvasData.width = width;
-        canvasData.height = height;
-        canvasData.aspectRatio = naturalWidth / naturalHeight;
-        canvasData.naturalWidth = naturalWidth;
-        canvasData.naturalHeight = naturalHeight;
-        this.limitCanvas(true, false);
-      }
-      if (canvasData.width > canvasData.maxWidth || canvasData.width < canvasData.minWidth) {
-        canvasData.left = canvasData.oldLeft;
-      }
-      if (canvasData.height > canvasData.maxHeight || canvasData.height < canvasData.minHeight) {
-        canvasData.top = canvasData.oldTop;
-      }
-      canvasData.width = Math.min(Math.max(canvasData.width, canvasData.minWidth), canvasData.maxWidth);
-      canvasData.height = Math.min(Math.max(canvasData.height, canvasData.minHeight), canvasData.maxHeight);
-      this.limitCanvas(false, true);
-      canvasData.left = Math.min(Math.max(canvasData.left, canvasData.minLeft), canvasData.maxLeft);
-      canvasData.top = Math.min(Math.max(canvasData.top, canvasData.minTop), canvasData.maxTop);
-      canvasData.oldLeft = canvasData.left;
-      canvasData.oldTop = canvasData.top;
-      setStyle(this.canvas, assign({
-        width: canvasData.width,
-        height: canvasData.height
-      }, getTransforms({
-        translateX: canvasData.left,
-        translateY: canvasData.top
-      })));
-      this.renderImage(changed);
-      if (this.cropped && this.limited) {
-        this.limitCropBox(true, true);
-      }
-    },
-    renderImage: function renderImage(changed) {
-      var canvasData = this.canvasData,
-        imageData = this.imageData;
-      var width = imageData.naturalWidth * (canvasData.width / canvasData.naturalWidth);
-      var height = imageData.naturalHeight * (canvasData.height / canvasData.naturalHeight);
-      assign(imageData, {
-        width: width,
-        height: height,
-        left: (canvasData.width - width) / 2,
-        top: (canvasData.height - height) / 2
-      });
-      setStyle(this.image, assign({
-        width: imageData.width,
-        height: imageData.height
-      }, getTransforms(assign({
-        translateX: imageData.left,
-        translateY: imageData.top
-      }, imageData))));
-      if (changed) {
-        this.output();
-      }
-    },
-    initCropBox: function initCropBox() {
-      var options = this.options,
-        canvasData = this.canvasData;
-      var aspectRatio = options.aspectRatio || options.initialAspectRatio;
-      var autoCropArea = Number(options.autoCropArea) || 0.8;
-      var cropBoxData = {
-        width: canvasData.width,
-        height: canvasData.height
-      };
-      if (aspectRatio) {
-        if (canvasData.height * aspectRatio > canvasData.width) {
-          cropBoxData.height = cropBoxData.width / aspectRatio;
-        } else {
-          cropBoxData.width = cropBoxData.height * aspectRatio;
-        }
-      }
-      this.cropBoxData = cropBoxData;
-      this.limitCropBox(true, true);
-
-      // Initialize auto crop area
-      cropBoxData.width = Math.min(Math.max(cropBoxData.width, cropBoxData.minWidth), cropBoxData.maxWidth);
-      cropBoxData.height = Math.min(Math.max(cropBoxData.height, cropBoxData.minHeight), cropBoxData.maxHeight);
-
-      // The width/height of auto crop area must large than "minWidth/Height"
-      cropBoxData.width = Math.max(cropBoxData.minWidth, cropBoxData.width * autoCropArea);
-      cropBoxData.height = Math.max(cropBoxData.minHeight, cropBoxData.height * autoCropArea);
-      cropBoxData.left = canvasData.left + (canvasData.width - cropBoxData.width) / 2;
-      cropBoxData.top = canvasData.top + (canvasData.height - cropBoxData.height) / 2;
-      cropBoxData.oldLeft = cropBoxData.left;
-      cropBoxData.oldTop = cropBoxData.top;
-      this.initialCropBoxData = assign({}, cropBoxData);
-    },
-    limitCropBox: function limitCropBox(sizeLimited, positionLimited) {
-      var options = this.options,
-        containerData = this.containerData,
-        canvasData = this.canvasData,
-        cropBoxData = this.cropBoxData,
-        limited = this.limited;
-      var aspectRatio = options.aspectRatio;
-      if (sizeLimited) {
-        var minCropBoxWidth = Number(options.minCropBoxWidth) || 0;
-        var minCropBoxHeight = Number(options.minCropBoxHeight) || 0;
-        var maxCropBoxWidth = limited ? Math.min(containerData.width, canvasData.width, canvasData.width + canvasData.left, containerData.width - canvasData.left) : containerData.width;
-        var maxCropBoxHeight = limited ? Math.min(containerData.height, canvasData.height, canvasData.height + canvasData.top, containerData.height - canvasData.top) : containerData.height;
-
-        // The min/maxCropBoxWidth/Height must be less than container's width/height
-        minCropBoxWidth = Math.min(minCropBoxWidth, containerData.width);
-        minCropBoxHeight = Math.min(minCropBoxHeight, containerData.height);
-        if (aspectRatio) {
-          if (minCropBoxWidth && minCropBoxHeight) {
-            if (minCropBoxHeight * aspectRatio > minCropBoxWidth) {
-              minCropBoxHeight = minCropBoxWidth / aspectRatio;
-            } else {
-              minCropBoxWidth = minCropBoxHeight * aspectRatio;
-            }
-          } else if (minCropBoxWidth) {
-            minCropBoxHeight = minCropBoxWidth / aspectRatio;
-          } else if (minCropBoxHeight) {
-            minCropBoxWidth = minCropBoxHeight * aspectRatio;
-          }
-          if (maxCropBoxHeight * aspectRatio > maxCropBoxWidth) {
-            maxCropBoxHeight = maxCropBoxWidth / aspectRatio;
-          } else {
-            maxCropBoxWidth = maxCropBoxHeight * aspectRatio;
-          }
-        }
-
-        // The minWidth/Height must be less than maxWidth/Height
-        cropBoxData.minWidth = Math.min(minCropBoxWidth, maxCropBoxWidth);
-        cropBoxData.minHeight = Math.min(minCropBoxHeight, maxCropBoxHeight);
-        cropBoxData.maxWidth = maxCropBoxWidth;
-        cropBoxData.maxHeight = maxCropBoxHeight;
-      }
-      if (positionLimited) {
-        if (limited) {
-          cropBoxData.minLeft = Math.max(0, canvasData.left);
-          cropBoxData.minTop = Math.max(0, canvasData.top);
-          cropBoxData.maxLeft = Math.min(containerData.width, canvasData.left + canvasData.width) - cropBoxData.width;
-          cropBoxData.maxTop = Math.min(containerData.height, canvasData.top + canvasData.height) - cropBoxData.height;
-        } else {
-          cropBoxData.minLeft = 0;
-          cropBoxData.minTop = 0;
-          cropBoxData.maxLeft = containerData.width - cropBoxData.width;
-          cropBoxData.maxTop = containerData.height - cropBoxData.height;
-        }
-      }
-    },
-    renderCropBox: function renderCropBox() {
-      var options = this.options,
-        containerData = this.containerData,
-        cropBoxData = this.cropBoxData;
-      if (cropBoxData.width > cropBoxData.maxWidth || cropBoxData.width < cropBoxData.minWidth) {
-        cropBoxData.left = cropBoxData.oldLeft;
-      }
-      if (cropBoxData.height > cropBoxData.maxHeight || cropBoxData.height < cropBoxData.minHeight) {
-        cropBoxData.top = cropBoxData.oldTop;
-      }
-      cropBoxData.width = Math.min(Math.max(cropBoxData.width, cropBoxData.minWidth), cropBoxData.maxWidth);
-      cropBoxData.height = Math.min(Math.max(cropBoxData.height, cropBoxData.minHeight), cropBoxData.maxHeight);
-      this.limitCropBox(false, true);
-      cropBoxData.left = Math.min(Math.max(cropBoxData.left, cropBoxData.minLeft), cropBoxData.maxLeft);
-      cropBoxData.top = Math.min(Math.max(cropBoxData.top, cropBoxData.minTop), cropBoxData.maxTop);
-      cropBoxData.oldLeft = cropBoxData.left;
-      cropBoxData.oldTop = cropBoxData.top;
-      if (options.movable && options.cropBoxMovable) {
-        // Turn to move the canvas when the crop box is equal to the container
-        setData(this.face, DATA_ACTION, cropBoxData.width >= containerData.width && cropBoxData.height >= containerData.height ? ACTION_MOVE : ACTION_ALL);
-      }
-      setStyle(this.cropBox, assign({
-        width: cropBoxData.width,
-        height: cropBoxData.height
-      }, getTransforms({
-        translateX: cropBoxData.left,
-        translateY: cropBoxData.top
-      })));
-      if (this.cropped && this.limited) {
-        this.limitCanvas(true, true);
-      }
-      if (!this.disabled) {
-        this.output();
-      }
-    },
-    output: function output() {
-      this.preview();
-      dispatchEvent(this.element, EVENT_CROP, this.getData());
-    }
-  };
-
-  var preview = {
-    initPreview: function initPreview() {
-      var element = this.element,
-        crossOrigin = this.crossOrigin;
-      var preview = this.options.preview;
-      var url = crossOrigin ? this.crossOriginUrl : this.url;
-      var alt = element.alt || 'The image to preview';
-      var image = document.createElement('img');
-      if (crossOrigin) {
-        image.crossOrigin = crossOrigin;
-      }
-      image.src = url;
-      image.alt = alt;
-      this.viewBox.appendChild(image);
-      this.viewBoxImage = image;
-      if (!preview) {
-        return;
-      }
-      var previews = preview;
-      if (typeof preview === 'string') {
-        previews = element.ownerDocument.querySelectorAll(preview);
-      } else if (preview.querySelector) {
-        previews = [preview];
-      }
-      this.previews = previews;
-      forEach(previews, function (el) {
-        var img = document.createElement('img');
-
-        // Save the original size for recover
-        setData(el, DATA_PREVIEW, {
-          width: el.offsetWidth,
-          height: el.offsetHeight,
-          html: el.innerHTML
-        });
-        if (crossOrigin) {
-          img.crossOrigin = crossOrigin;
-        }
-        img.src = url;
-        img.alt = alt;
-
-        /**
-         * Override img element styles
-         * Add `display:block` to avoid margin top issue
-         * Add `height:auto` to override `height` attribute on IE8
-         * (Occur only when margin-top <= -height)
-         */
-        img.style.cssText = 'display:block;' + 'width:100%;' + 'height:auto;' + 'min-width:0!important;' + 'min-height:0!important;' + 'max-width:none!important;' + 'max-height:none!important;' + 'image-orientation:0deg!important;"';
-        el.innerHTML = '';
-        el.appendChild(img);
-      });
-    },
-    resetPreview: function resetPreview() {
-      forEach(this.previews, function (element) {
-        var data = getData(element, DATA_PREVIEW);
-        setStyle(element, {
-          width: data.width,
-          height: data.height
-        });
-        element.innerHTML = data.html;
-        removeData(element, DATA_PREVIEW);
-      });
-    },
-    preview: function preview() {
-      var imageData = this.imageData,
-        canvasData = this.canvasData,
-        cropBoxData = this.cropBoxData;
-      var cropBoxWidth = cropBoxData.width,
-        cropBoxHeight = cropBoxData.height;
-      var width = imageData.width,
-        height = imageData.height;
-      var left = cropBoxData.left - canvasData.left - imageData.left;
-      var top = cropBoxData.top - canvasData.top - imageData.top;
-      if (!this.cropped || this.disabled) {
-        return;
-      }
-      setStyle(this.viewBoxImage, assign({
-        width: width,
-        height: height
-      }, getTransforms(assign({
-        translateX: -left,
-        translateY: -top
-      }, imageData))));
-      forEach(this.previews, function (element) {
-        var data = getData(element, DATA_PREVIEW);
-        var originalWidth = data.width;
-        var originalHeight = data.height;
-        var newWidth = originalWidth;
-        var newHeight = originalHeight;
-        var ratio = 1;
-        if (cropBoxWidth) {
-          ratio = originalWidth / cropBoxWidth;
-          newHeight = cropBoxHeight * ratio;
-        }
-        if (cropBoxHeight && newHeight > originalHeight) {
-          ratio = originalHeight / cropBoxHeight;
-          newWidth = cropBoxWidth * ratio;
-          newHeight = originalHeight;
-        }
-        setStyle(element, {
-          width: newWidth,
-          height: newHeight
-        });
-        setStyle(element.getElementsByTagName('img')[0], assign({
-          width: width * ratio,
-          height: height * ratio
-        }, getTransforms(assign({
-          translateX: -left * ratio,
-          translateY: -top * ratio
-        }, imageData))));
-      });
-    }
-  };
-
-  var events = {
-    bind: function bind() {
-      var element = this.element,
-        options = this.options,
-        cropper = this.cropper;
-      if (isFunction(options.cropstart)) {
-        addListener(element, EVENT_CROP_START, options.cropstart);
-      }
-      if (isFunction(options.cropmove)) {
-        addListener(element, EVENT_CROP_MOVE, options.cropmove);
-      }
-      if (isFunction(options.cropend)) {
-        addListener(element, EVENT_CROP_END, options.cropend);
-      }
-      if (isFunction(options.crop)) {
-        addListener(element, EVENT_CROP, options.crop);
-      }
-      if (isFunction(options.zoom)) {
-        addListener(element, EVENT_ZOOM, options.zoom);
-      }
-      addListener(cropper, EVENT_POINTER_DOWN, this.onCropStart = this.cropStart.bind(this));
-      if (options.zoomable && options.zoomOnWheel) {
-        addListener(cropper, EVENT_WHEEL, this.onWheel = this.wheel.bind(this), {
-          passive: false,
-          capture: true
-        });
-      }
-      if (options.toggleDragModeOnDblclick) {
-        addListener(cropper, EVENT_DBLCLICK, this.onDblclick = this.dblclick.bind(this));
-      }
-      addListener(element.ownerDocument, EVENT_POINTER_MOVE, this.onCropMove = this.cropMove.bind(this));
-      addListener(element.ownerDocument, EVENT_POINTER_UP, this.onCropEnd = this.cropEnd.bind(this));
-      if (options.responsive) {
-        addListener(window, EVENT_RESIZE, this.onResize = this.resize.bind(this));
-      }
-    },
-    unbind: function unbind() {
-      var element = this.element,
-        options = this.options,
-        cropper = this.cropper;
-      if (isFunction(options.cropstart)) {
-        removeListener(element, EVENT_CROP_START, options.cropstart);
-      }
-      if (isFunction(options.cropmove)) {
-        removeListener(element, EVENT_CROP_MOVE, options.cropmove);
-      }
-      if (isFunction(options.cropend)) {
-        removeListener(element, EVENT_CROP_END, options.cropend);
-      }
-      if (isFunction(options.crop)) {
-        removeListener(element, EVENT_CROP, options.crop);
-      }
-      if (isFunction(options.zoom)) {
-        removeListener(element, EVENT_ZOOM, options.zoom);
-      }
-      removeListener(cropper, EVENT_POINTER_DOWN, this.onCropStart);
-      if (options.zoomable && options.zoomOnWheel) {
-        removeListener(cropper, EVENT_WHEEL, this.onWheel, {
-          passive: false,
-          capture: true
-        });
-      }
-      if (options.toggleDragModeOnDblclick) {
-        removeListener(cropper, EVENT_DBLCLICK, this.onDblclick);
-      }
-      removeListener(element.ownerDocument, EVENT_POINTER_MOVE, this.onCropMove);
-      removeListener(element.ownerDocument, EVENT_POINTER_UP, this.onCropEnd);
-      if (options.responsive) {
-        removeListener(window, EVENT_RESIZE, this.onResize);
-      }
-    }
-  };
-
-  var handlers = {
-    resize: function resize() {
-      if (this.disabled) {
-        return;
-      }
-      var options = this.options,
-        container = this.container,
-        containerData = this.containerData;
-      var ratioX = container.offsetWidth / containerData.width;
-      var ratioY = container.offsetHeight / containerData.height;
-      var ratio = Math.abs(ratioX - 1) > Math.abs(ratioY - 1) ? ratioX : ratioY;
-
-      // Resize when width changed or height changed
-      if (ratio !== 1) {
-        var canvasData;
-        var cropBoxData;
-        if (options.restore) {
-          canvasData = this.getCanvasData();
-          cropBoxData = this.getCropBoxData();
-        }
-        this.render();
-        if (options.restore) {
-          this.setCanvasData(forEach(canvasData, function (n, i) {
-            canvasData[i] = n * ratio;
-          }));
-          this.setCropBoxData(forEach(cropBoxData, function (n, i) {
-            cropBoxData[i] = n * ratio;
-          }));
-        }
-      }
-    },
-    dblclick: function dblclick() {
-      if (this.disabled || this.options.dragMode === DRAG_MODE_NONE) {
-        return;
-      }
-      this.setDragMode(hasClass(this.dragBox, CLASS_CROP) ? DRAG_MODE_MOVE : DRAG_MODE_CROP);
-    },
-    wheel: function wheel(event) {
-      var _this = this;
-      var ratio = Number(this.options.wheelZoomRatio) || 0.1;
-      var delta = 1;
-      if (this.disabled) {
-        return;
-      }
-      event.preventDefault();
-
-      // Limit wheel speed to prevent zoom too fast (#21)
-      if (this.wheeling) {
-        return;
-      }
-      this.wheeling = true;
-      setTimeout(function () {
-        _this.wheeling = false;
-      }, 50);
-      if (event.deltaY) {
-        delta = event.deltaY > 0 ? 1 : -1;
-      } else if (event.wheelDelta) {
-        delta = -event.wheelDelta / 120;
-      } else if (event.detail) {
-        delta = event.detail > 0 ? 1 : -1;
-      }
-      this.zoom(-delta * ratio, event);
-    },
-    cropStart: function cropStart(event) {
-      var buttons = event.buttons,
-        button = event.button;
-      if (this.disabled
-
-      // Handle mouse event and pointer event and ignore touch event
-      || (event.type === 'mousedown' || event.type === 'pointerdown' && event.pointerType === 'mouse') && (
-      // No primary button (Usually the left button)
-      isNumber(buttons) && buttons !== 1 || isNumber(button) && button !== 0
-
-      // Open context menu
-      || event.ctrlKey)) {
-        return;
-      }
-      var options = this.options,
-        pointers = this.pointers;
-      var action;
-      if (event.changedTouches) {
-        // Handle touch event
-        forEach(event.changedTouches, function (touch) {
-          pointers[touch.identifier] = getPointer(touch);
-        });
-      } else {
-        // Handle mouse event and pointer event
-        pointers[event.pointerId || 0] = getPointer(event);
-      }
-      if (Object.keys(pointers).length > 1 && options.zoomable && options.zoomOnTouch) {
-        action = ACTION_ZOOM;
-      } else {
-        action = getData(event.target, DATA_ACTION);
-      }
-      if (!REGEXP_ACTIONS.test(action)) {
-        return;
-      }
-      if (dispatchEvent(this.element, EVENT_CROP_START, {
-        originalEvent: event,
-        action: action
-      }) === false) {
-        return;
-      }
-
-      // This line is required for preventing page zooming in iOS browsers
-      event.preventDefault();
-      this.action = action;
-      this.cropping = false;
-      if (action === ACTION_CROP) {
-        this.cropping = true;
-        addClass(this.dragBox, CLASS_MODAL);
-      }
-    },
-    cropMove: function cropMove(event) {
-      var action = this.action;
-      if (this.disabled || !action) {
-        return;
-      }
-      var pointers = this.pointers;
-      event.preventDefault();
-      if (dispatchEvent(this.element, EVENT_CROP_MOVE, {
-        originalEvent: event,
-        action: action
-      }) === false) {
-        return;
-      }
-      if (event.changedTouches) {
-        forEach(event.changedTouches, function (touch) {
-          // The first parameter should not be undefined (#432)
-          assign(pointers[touch.identifier] || {}, getPointer(touch, true));
-        });
-      } else {
-        assign(pointers[event.pointerId || 0] || {}, getPointer(event, true));
-      }
-      this.change(event);
-    },
-    cropEnd: function cropEnd(event) {
-      if (this.disabled) {
-        return;
-      }
-      var action = this.action,
-        pointers = this.pointers;
-      if (event.changedTouches) {
-        forEach(event.changedTouches, function (touch) {
-          delete pointers[touch.identifier];
-        });
-      } else {
-        delete pointers[event.pointerId || 0];
-      }
-      if (!action) {
-        return;
-      }
-      event.preventDefault();
-      if (!Object.keys(pointers).length) {
-        this.action = '';
-      }
-      if (this.cropping) {
-        this.cropping = false;
-        toggleClass(this.dragBox, CLASS_MODAL, this.cropped && this.options.modal);
-      }
-      dispatchEvent(this.element, EVENT_CROP_END, {
-        originalEvent: event,
-        action: action
-      });
-    }
-  };
-
-  var change = {
-    change: function change(event) {
-      var options = this.options,
-        canvasData = this.canvasData,
-        containerData = this.containerData,
-        cropBoxData = this.cropBoxData,
-        pointers = this.pointers;
-      var action = this.action;
-      var aspectRatio = options.aspectRatio;
-      var left = cropBoxData.left,
-        top = cropBoxData.top,
-        width = cropBoxData.width,
-        height = cropBoxData.height;
-      var right = left + width;
-      var bottom = top + height;
-      var minLeft = 0;
-      var minTop = 0;
-      var maxWidth = containerData.width;
-      var maxHeight = containerData.height;
-      var renderable = true;
-      var offset;
-
-      // Locking aspect ratio in "free mode" by holding shift key
-      if (!aspectRatio && event.shiftKey) {
-        aspectRatio = width && height ? width / height : 1;
-      }
-      if (this.limited) {
-        minLeft = cropBoxData.minLeft;
-        minTop = cropBoxData.minTop;
-        maxWidth = minLeft + Math.min(containerData.width, canvasData.width, canvasData.left + canvasData.width);
-        maxHeight = minTop + Math.min(containerData.height, canvasData.height, canvasData.top + canvasData.height);
-      }
-      var pointer = pointers[Object.keys(pointers)[0]];
-      var range = {
-        x: pointer.endX - pointer.startX,
-        y: pointer.endY - pointer.startY
-      };
-      var check = function check(side) {
-        switch (side) {
-          case ACTION_EAST:
-            if (right + range.x > maxWidth) {
-              range.x = maxWidth - right;
-            }
-            break;
-          case ACTION_WEST:
-            if (left + range.x < minLeft) {
-              range.x = minLeft - left;
-            }
-            break;
-          case ACTION_NORTH:
-            if (top + range.y < minTop) {
-              range.y = minTop - top;
-            }
-            break;
-          case ACTION_SOUTH:
-            if (bottom + range.y > maxHeight) {
-              range.y = maxHeight - bottom;
-            }
-            break;
-        }
-      };
-      switch (action) {
-        // Move crop box
-        case ACTION_ALL:
-          left += range.x;
-          top += range.y;
-          break;
-
-        // Resize crop box
-        case ACTION_EAST:
-          if (range.x >= 0 && (right >= maxWidth || aspectRatio && (top <= minTop || bottom >= maxHeight))) {
-            renderable = false;
-            break;
-          }
-          check(ACTION_EAST);
-          width += range.x;
-          if (width < 0) {
-            action = ACTION_WEST;
-            width = -width;
-            left -= width;
-          }
-          if (aspectRatio) {
-            height = width / aspectRatio;
-            top += (cropBoxData.height - height) / 2;
-          }
-          break;
-        case ACTION_NORTH:
-          if (range.y <= 0 && (top <= minTop || aspectRatio && (left <= minLeft || right >= maxWidth))) {
-            renderable = false;
-            break;
-          }
-          check(ACTION_NORTH);
-          height -= range.y;
-          top += range.y;
-          if (height < 0) {
-            action = ACTION_SOUTH;
-            height = -height;
-            top -= height;
-          }
-          if (aspectRatio) {
-            width = height * aspectRatio;
-            left += (cropBoxData.width - width) / 2;
-          }
-          break;
-        case ACTION_WEST:
-          if (range.x <= 0 && (left <= minLeft || aspectRatio && (top <= minTop || bottom >= maxHeight))) {
-            renderable = false;
-            break;
-          }
-          check(ACTION_WEST);
-          width -= range.x;
-          left += range.x;
-          if (width < 0) {
-            action = ACTION_EAST;
-            width = -width;
-            left -= width;
-          }
-          if (aspectRatio) {
-            height = width / aspectRatio;
-            top += (cropBoxData.height - height) / 2;
-          }
-          break;
-        case ACTION_SOUTH:
-          if (range.y >= 0 && (bottom >= maxHeight || aspectRatio && (left <= minLeft || right >= maxWidth))) {
-            renderable = false;
-            break;
-          }
-          check(ACTION_SOUTH);
-          height += range.y;
-          if (height < 0) {
-            action = ACTION_NORTH;
-            height = -height;
-            top -= height;
-          }
-          if (aspectRatio) {
-            width = height * aspectRatio;
-            left += (cropBoxData.width - width) / 2;
-          }
-          break;
-        case ACTION_NORTH_EAST:
-          if (aspectRatio) {
-            if (range.y <= 0 && (top <= minTop || right >= maxWidth)) {
-              renderable = false;
-              break;
-            }
-            check(ACTION_NORTH);
-            height -= range.y;
-            top += range.y;
-            width = height * aspectRatio;
-          } else {
-            check(ACTION_NORTH);
-            check(ACTION_EAST);
-            if (range.x >= 0) {
-              if (right < maxWidth) {
-                width += range.x;
-              } else if (range.y <= 0 && top <= minTop) {
-                renderable = false;
-              }
-            } else {
-              width += range.x;
-            }
-            if (range.y <= 0) {
-              if (top > minTop) {
-                height -= range.y;
-                top += range.y;
-              }
-            } else {
-              height -= range.y;
-              top += range.y;
-            }
-          }
-          if (width < 0 && height < 0) {
-            action = ACTION_SOUTH_WEST;
-            height = -height;
-            width = -width;
-            top -= height;
-            left -= width;
-          } else if (width < 0) {
-            action = ACTION_NORTH_WEST;
-            width = -width;
-            left -= width;
-          } else if (height < 0) {
-            action = ACTION_SOUTH_EAST;
-            height = -height;
-            top -= height;
-          }
-          break;
-        case ACTION_NORTH_WEST:
-          if (aspectRatio) {
-            if (range.y <= 0 && (top <= minTop || left <= minLeft)) {
-              renderable = false;
-              break;
-            }
-            check(ACTION_NORTH);
-            height -= range.y;
-            top += range.y;
-            width = height * aspectRatio;
-            left += cropBoxData.width - width;
-          } else {
-            check(ACTION_NORTH);
-            check(ACTION_WEST);
-            if (range.x <= 0) {
-              if (left > minLeft) {
-                width -= range.x;
-                left += range.x;
-              } else if (range.y <= 0 && top <= minTop) {
-                renderable = false;
-              }
-            } else {
-              width -= range.x;
-              left += range.x;
-            }
-            if (range.y <= 0) {
-              if (top > minTop) {
-                height -= range.y;
-                top += range.y;
-              }
-            } else {
-              height -= range.y;
-              top += range.y;
-            }
-          }
-          if (width < 0 && height < 0) {
-            action = ACTION_SOUTH_EAST;
-            height = -height;
-            width = -width;
-            top -= height;
-            left -= width;
-          } else if (width < 0) {
-            action = ACTION_NORTH_EAST;
-            width = -width;
-            left -= width;
-          } else if (height < 0) {
-            action = ACTION_SOUTH_WEST;
-            height = -height;
-            top -= height;
-          }
-          break;
-        case ACTION_SOUTH_WEST:
-          if (aspectRatio) {
-            if (range.x <= 0 && (left <= minLeft || bottom >= maxHeight)) {
-              renderable = false;
-              break;
-            }
-            check(ACTION_WEST);
-            width -= range.x;
-            left += range.x;
-            height = width / aspectRatio;
-          } else {
-            check(ACTION_SOUTH);
-            check(ACTION_WEST);
-            if (range.x <= 0) {
-              if (left > minLeft) {
-                width -= range.x;
-                left += range.x;
-              } else if (range.y >= 0 && bottom >= maxHeight) {
-                renderable = false;
-              }
-            } else {
-              width -= range.x;
-              left += range.x;
-            }
-            if (range.y >= 0) {
-              if (bottom < maxHeight) {
-                height += range.y;
-              }
-            } else {
-              height += range.y;
-            }
-          }
-          if (width < 0 && height < 0) {
-            action = ACTION_NORTH_EAST;
-            height = -height;
-            width = -width;
-            top -= height;
-            left -= width;
-          } else if (width < 0) {
-            action = ACTION_SOUTH_EAST;
-            width = -width;
-            left -= width;
-          } else if (height < 0) {
-            action = ACTION_NORTH_WEST;
-            height = -height;
-            top -= height;
-          }
-          break;
-        case ACTION_SOUTH_EAST:
-          if (aspectRatio) {
-            if (range.x >= 0 && (right >= maxWidth || bottom >= maxHeight)) {
-              renderable = false;
-              break;
-            }
-            check(ACTION_EAST);
-            width += range.x;
-            height = width / aspectRatio;
-          } else {
-            check(ACTION_SOUTH);
-            check(ACTION_EAST);
-            if (range.x >= 0) {
-              if (right < maxWidth) {
-                width += range.x;
-              } else if (range.y >= 0 && bottom >= maxHeight) {
-                renderable = false;
-              }
-            } else {
-              width += range.x;
-            }
-            if (range.y >= 0) {
-              if (bottom < maxHeight) {
-                height += range.y;
-              }
-            } else {
-              height += range.y;
-            }
-          }
-          if (width < 0 && height < 0) {
-            action = ACTION_NORTH_WEST;
-            height = -height;
-            width = -width;
-            top -= height;
-            left -= width;
-          } else if (width < 0) {
-            action = ACTION_SOUTH_WEST;
-            width = -width;
-            left -= width;
-          } else if (height < 0) {
-            action = ACTION_NORTH_EAST;
-            height = -height;
-            top -= height;
-          }
-          break;
-
-        // Move canvas
-        case ACTION_MOVE:
-          this.move(range.x, range.y);
-          renderable = false;
-          break;
-
-        // Zoom canvas
-        case ACTION_ZOOM:
-          this.zoom(getMaxZoomRatio(pointers), event);
-          renderable = false;
-          break;
-
-        // Create crop box
-        case ACTION_CROP:
-          if (!range.x || !range.y) {
-            renderable = false;
-            break;
-          }
-          offset = getOffset(this.cropper);
-          left = pointer.startX - offset.left;
-          top = pointer.startY - offset.top;
-          width = cropBoxData.minWidth;
-          height = cropBoxData.minHeight;
-          if (range.x > 0) {
-            action = range.y > 0 ? ACTION_SOUTH_EAST : ACTION_NORTH_EAST;
-          } else if (range.x < 0) {
-            left -= width;
-            action = range.y > 0 ? ACTION_SOUTH_WEST : ACTION_NORTH_WEST;
-          }
-          if (range.y < 0) {
-            top -= height;
-          }
-
-          // Show the crop box if is hidden
-          if (!this.cropped) {
-            removeClass(this.cropBox, CLASS_HIDDEN);
-            this.cropped = true;
-            if (this.limited) {
-              this.limitCropBox(true, true);
-            }
-          }
-          break;
-      }
-      if (renderable) {
-        cropBoxData.width = width;
-        cropBoxData.height = height;
-        cropBoxData.left = left;
-        cropBoxData.top = top;
-        this.action = action;
-        this.renderCropBox();
-      }
-
-      // Override
-      forEach(pointers, function (p) {
-        p.startX = p.endX;
-        p.startY = p.endY;
-      });
-    }
-  };
-
-  var methods = {
-    // Show the crop box manually
-    crop: function crop() {
-      if (this.ready && !this.cropped && !this.disabled) {
-        this.cropped = true;
-        this.limitCropBox(true, true);
-        if (this.options.modal) {
-          addClass(this.dragBox, CLASS_MODAL);
-        }
-        removeClass(this.cropBox, CLASS_HIDDEN);
-        this.setCropBoxData(this.initialCropBoxData);
-      }
-      return this;
-    },
-    // Reset the image and crop box to their initial states
-    reset: function reset() {
-      if (this.ready && !this.disabled) {
-        this.imageData = assign({}, this.initialImageData);
-        this.canvasData = assign({}, this.initialCanvasData);
-        this.cropBoxData = assign({}, this.initialCropBoxData);
-        this.renderCanvas();
-        if (this.cropped) {
-          this.renderCropBox();
-        }
-      }
-      return this;
-    },
-    // Clear the crop box
-    clear: function clear() {
-      if (this.cropped && !this.disabled) {
-        assign(this.cropBoxData, {
-          left: 0,
-          top: 0,
-          width: 0,
-          height: 0
-        });
-        this.cropped = false;
-        this.renderCropBox();
-        this.limitCanvas(true, true);
-
-        // Render canvas after crop box rendered
-        this.renderCanvas();
-        removeClass(this.dragBox, CLASS_MODAL);
-        addClass(this.cropBox, CLASS_HIDDEN);
-      }
-      return this;
-    },
-    /**
-     * Replace the image's src and rebuild the cropper
-     * @param {string} url - The new URL.
-     * @param {boolean} [hasSameSize] - Indicate if the new image has the same size as the old one.
-     * @returns {Cropper} this
-     */
-    replace: function replace(url) {
-      var hasSameSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
-      if (!this.disabled && url) {
-        if (this.isImg) {
-          this.element.src = url;
-        }
-        if (hasSameSize) {
-          this.url = url;
-          this.image.src = url;
-          if (this.ready) {
-            this.viewBoxImage.src = url;
-            forEach(this.previews, function (element) {
-              element.getElementsByTagName('img')[0].src = url;
-            });
-          }
-        } else {
-          if (this.isImg) {
-            this.replaced = true;
-          }
-          this.options.data = null;
-          this.uncreate();
-          this.load(url);
-        }
-      }
-      return this;
-    },
-    // Enable (unfreeze) the cropper
-    enable: function enable() {
-      if (this.ready && this.disabled) {
-        this.disabled = false;
-        removeClass(this.cropper, CLASS_DISABLED);
-      }
-      return this;
-    },
-    // Disable (freeze) the cropper
-    disable: function disable() {
-      if (this.ready && !this.disabled) {
-        this.disabled = true;
-        addClass(this.cropper, CLASS_DISABLED);
-      }
-      return this;
-    },
-    /**
-     * Destroy the cropper and remove the instance from the image
-     * @returns {Cropper} this
-     */
-    destroy: function destroy() {
-      var element = this.element;
-      if (!element[NAMESPACE]) {
-        return this;
-      }
-      element[NAMESPACE] = undefined;
-      if (this.isImg && this.replaced) {
-        element.src = this.originalUrl;
-      }
-      this.uncreate();
-      return this;
-    },
-    /**
-     * Move the canvas with relative offsets
-     * @param {number} offsetX - The relative offset distance on the x-axis.
-     * @param {number} [offsetY=offsetX] - The relative offset distance on the y-axis.
-     * @returns {Cropper} this
-     */
-    move: function move(offsetX) {
-      var offsetY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : offsetX;
-      var _this$canvasData = this.canvasData,
-        left = _this$canvasData.left,
-        top = _this$canvasData.top;
-      return this.moveTo(isUndefined(offsetX) ? offsetX : left + Number(offsetX), isUndefined(offsetY) ? offsetY : top + Number(offsetY));
-    },
-    /**
-     * Move the canvas to an absolute point
-     * @param {number} x - The x-axis coordinate.
-     * @param {number} [y=x] - The y-axis coordinate.
-     * @returns {Cropper} this
-     */
-    moveTo: function moveTo(x) {
-      var y = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : x;
-      var canvasData = this.canvasData;
-      var changed = false;
-      x = Number(x);
-      y = Number(y);
-      if (this.ready && !this.disabled && this.options.movable) {
-        if (isNumber(x)) {
-          canvasData.left = x;
-          changed = true;
-        }
-        if (isNumber(y)) {
-          canvasData.top = y;
-          changed = true;
-        }
-        if (changed) {
-          this.renderCanvas(true);
-        }
-      }
-      return this;
-    },
-    /**
-     * Zoom the canvas with a relative ratio
-     * @param {number} ratio - The target ratio.
-     * @param {Event} _originalEvent - The original event if any.
-     * @returns {Cropper} this
-     */
-    zoom: function zoom(ratio, _originalEvent) {
-      var canvasData = this.canvasData;
-      ratio = Number(ratio);
-      if (ratio < 0) {
-        ratio = 1 / (1 - ratio);
-      } else {
-        ratio = 1 + ratio;
-      }
-      return this.zoomTo(canvasData.width * ratio / canvasData.naturalWidth, null, _originalEvent);
-    },
-    /**
-     * Zoom the canvas to an absolute ratio
-     * @param {number} ratio - The target ratio.
-     * @param {Object} pivot - The zoom pivot point coordinate.
-     * @param {Event} _originalEvent - The original event if any.
-     * @returns {Cropper} this
-     */
-    zoomTo: function zoomTo(ratio, pivot, _originalEvent) {
-      var options = this.options,
-        canvasData = this.canvasData;
-      var width = canvasData.width,
-        height = canvasData.height,
-        naturalWidth = canvasData.naturalWidth,
-        naturalHeight = canvasData.naturalHeight;
-      ratio = Number(ratio);
-      if (ratio >= 0 && this.ready && !this.disabled && options.zoomable) {
-        var newWidth = naturalWidth * ratio;
-        var newHeight = naturalHeight * ratio;
-        if (dispatchEvent(this.element, EVENT_ZOOM, {
-          ratio: ratio,
-          oldRatio: width / naturalWidth,
-          originalEvent: _originalEvent
-        }) === false) {
-          return this;
-        }
-        if (_originalEvent) {
-          var pointers = this.pointers;
-          var offset = getOffset(this.cropper);
-          var center = pointers && Object.keys(pointers).length ? getPointersCenter(pointers) : {
-            pageX: _originalEvent.pageX,
-            pageY: _originalEvent.pageY
-          };
-
-          // Zoom from the triggering point of the event
-          canvasData.left -= (newWidth - width) * ((center.pageX - offset.left - canvasData.left) / width);
-          canvasData.top -= (newHeight - height) * ((center.pageY - offset.top - canvasData.top) / height);
-        } else if (isPlainObject(pivot) && isNumber(pivot.x) && isNumber(pivot.y)) {
-          canvasData.left -= (newWidth - width) * ((pivot.x - canvasData.left) / width);
-          canvasData.top -= (newHeight - height) * ((pivot.y - canvasData.top) / height);
-        } else {
-          // Zoom from the center of the canvas
-          canvasData.left -= (newWidth - width) / 2;
-          canvasData.top -= (newHeight - height) / 2;
-        }
-        canvasData.width = newWidth;
-        canvasData.height = newHeight;
-        this.renderCanvas(true);
-      }
-      return this;
-    },
-    /**
-     * Rotate the canvas with a relative degree
-     * @param {number} degree - The rotate degree.
-     * @returns {Cropper} this
-     */
-    rotate: function rotate(degree) {
-      return this.rotateTo((this.imageData.rotate || 0) + Number(degree));
-    },
-    /**
-     * Rotate the canvas to an absolute degree
-     * @param {number} degree - The rotate degree.
-     * @returns {Cropper} this
-     */
-    rotateTo: function rotateTo(degree) {
-      degree = Number(degree);
-      if (isNumber(degree) && this.ready && !this.disabled && this.options.rotatable) {
-        this.imageData.rotate = degree % 360;
-        this.renderCanvas(true, true);
-      }
-      return this;
-    },
-    /**
-     * Scale the image on the x-axis.
-     * @param {number} scaleX - The scale ratio on the x-axis.
-     * @returns {Cropper} this
-     */
-    scaleX: function scaleX(_scaleX) {
-      var scaleY = this.imageData.scaleY;
-      return this.scale(_scaleX, isNumber(scaleY) ? scaleY : 1);
-    },
-    /**
-     * Scale the image on the y-axis.
-     * @param {number} scaleY - The scale ratio on the y-axis.
-     * @returns {Cropper} this
-     */
-    scaleY: function scaleY(_scaleY) {
-      var scaleX = this.imageData.scaleX;
-      return this.scale(isNumber(scaleX) ? scaleX : 1, _scaleY);
-    },
-    /**
-     * Scale the image
-     * @param {number} scaleX - The scale ratio on the x-axis.
-     * @param {number} [scaleY=scaleX] - The scale ratio on the y-axis.
-     * @returns {Cropper} this
-     */
-    scale: function scale(scaleX) {
-      var scaleY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : scaleX;
-      var imageData = this.imageData;
-      var transformed = false;
-      scaleX = Number(scaleX);
-      scaleY = Number(scaleY);
-      if (this.ready && !this.disabled && this.options.scalable) {
-        if (isNumber(scaleX)) {
-          imageData.scaleX = scaleX;
-          transformed = true;
-        }
-        if (isNumber(scaleY)) {
-          imageData.scaleY = scaleY;
-          transformed = true;
-        }
-        if (transformed) {
-          this.renderCanvas(true, true);
-        }
-      }
-      return this;
-    },
-    /**
-     * Get the cropped area position and size data (base on the original image)
-     * @param {boolean} [rounded=false] - Indicate if round the data values or not.
-     * @returns {Object} The result cropped data.
-     */
-    getData: function getData() {
-      var rounded = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
-      var options = this.options,
-        imageData = this.imageData,
-        canvasData = this.canvasData,
-        cropBoxData = this.cropBoxData;
-      var data;
-      if (this.ready && this.cropped) {
-        data = {
-          x: cropBoxData.left - canvasData.left,
-          y: cropBoxData.top - canvasData.top,
-          width: cropBoxData.width,
-          height: cropBoxData.height
-        };
-        var ratio = imageData.width / imageData.naturalWidth;
-        forEach(data, function (n, i) {
-          data[i] = n / ratio;
-        });
-        if (rounded) {
-          // In case rounding off leads to extra 1px in right or bottom border
-          // we should round the top-left corner and the dimension (#343).
-          var bottom = Math.round(data.y + data.height);
-          var right = Math.round(data.x + data.width);
-          data.x = Math.round(data.x);
-          data.y = Math.round(data.y);
-          data.width = right - data.x;
-          data.height = bottom - data.y;
-        }
-      } else {
-        data = {
-          x: 0,
-          y: 0,
-          width: 0,
-          height: 0
-        };
-      }
-      if (options.rotatable) {
-        data.rotate = imageData.rotate || 0;
-      }
-      if (options.scalable) {
-        data.scaleX = imageData.scaleX || 1;
-        data.scaleY = imageData.scaleY || 1;
-      }
-      return data;
-    },
-    /**
-     * Set the cropped area position and size with new data
-     * @param {Object} data - The new data.
-     * @returns {Cropper} this
-     */
-    setData: function setData(data) {
-      var options = this.options,
-        imageData = this.imageData,
-        canvasData = this.canvasData;
-      var cropBoxData = {};
-      if (this.ready && !this.disabled && isPlainObject(data)) {
-        var transformed = false;
-        if (options.rotatable) {
-          if (isNumber(data.rotate) && data.rotate !== imageData.rotate) {
-            imageData.rotate = data.rotate;
-            transformed = true;
-          }
-        }
-        if (options.scalable) {
-          if (isNumber(data.scaleX) && data.scaleX !== imageData.scaleX) {
-            imageData.scaleX = data.scaleX;
-            transformed = true;
-          }
-          if (isNumber(data.scaleY) && data.scaleY !== imageData.scaleY) {
-            imageData.scaleY = data.scaleY;
-            transformed = true;
-          }
-        }
-        if (transformed) {
-          this.renderCanvas(true, true);
-        }
-        var ratio = imageData.width / imageData.naturalWidth;
-        if (isNumber(data.x)) {
-          cropBoxData.left = data.x * ratio + canvasData.left;
-        }
-        if (isNumber(data.y)) {
-          cropBoxData.top = data.y * ratio + canvasData.top;
-        }
-        if (isNumber(data.width)) {
-          cropBoxData.width = data.width * ratio;
-        }
-        if (isNumber(data.height)) {
-          cropBoxData.height = data.height * ratio;
-        }
-        this.setCropBoxData(cropBoxData);
-      }
-      return this;
-    },
-    /**
-     * Get the container size data.
-     * @returns {Object} The result container data.
-     */
-    getContainerData: function getContainerData() {
-      return this.ready ? assign({}, this.containerData) : {};
-    },
-    /**
-     * Get the image position and size data.
-     * @returns {Object} The result image data.
-     */
-    getImageData: function getImageData() {
-      return this.sized ? assign({}, this.imageData) : {};
-    },
-    /**
-     * Get the canvas position and size data.
-     * @returns {Object} The result canvas data.
-     */
-    getCanvasData: function getCanvasData() {
-      var canvasData = this.canvasData;
-      var data = {};
-      if (this.ready) {
-        forEach(['left', 'top', 'width', 'height', 'naturalWidth', 'naturalHeight'], function (n) {
-          data[n] = canvasData[n];
-        });
-      }
-      return data;
-    },
-    /**
-     * Set the canvas position and size with new data.
-     * @param {Object} data - The new canvas data.
-     * @returns {Cropper} this
-     */
-    setCanvasData: function setCanvasData(data) {
-      var canvasData = this.canvasData;
-      var aspectRatio = canvasData.aspectRatio;
-      if (this.ready && !this.disabled && isPlainObject(data)) {
-        if (isNumber(data.left)) {
-          canvasData.left = data.left;
-        }
-        if (isNumber(data.top)) {
-          canvasData.top = data.top;
-        }
-        if (isNumber(data.width)) {
-          canvasData.width = data.width;
-          canvasData.height = data.width / aspectRatio;
-        } else if (isNumber(data.height)) {
-          canvasData.height = data.height;
-          canvasData.width = data.height * aspectRatio;
-        }
-        this.renderCanvas(true);
-      }
-      return this;
-    },
-    /**
-     * Get the crop box position and size data.
-     * @returns {Object} The result crop box data.
-     */
-    getCropBoxData: function getCropBoxData() {
-      var cropBoxData = this.cropBoxData;
-      var data;
-      if (this.ready && this.cropped) {
-        data = {
-          left: cropBoxData.left,
-          top: cropBoxData.top,
-          width: cropBoxData.width,
-          height: cropBoxData.height
-        };
-      }
-      return data || {};
-    },
-    /**
-     * Set the crop box position and size with new data.
-     * @param {Object} data - The new crop box data.
-     * @returns {Cropper} this
-     */
-    setCropBoxData: function setCropBoxData(data) {
-      var cropBoxData = this.cropBoxData;
-      var aspectRatio = this.options.aspectRatio;
-      var widthChanged;
-      var heightChanged;
-      if (this.ready && this.cropped && !this.disabled && isPlainObject(data)) {
-        if (isNumber(data.left)) {
-          cropBoxData.left = data.left;
-        }
-        if (isNumber(data.top)) {
-          cropBoxData.top = data.top;
-        }
-        if (isNumber(data.width) && data.width !== cropBoxData.width) {
-          widthChanged = true;
-          cropBoxData.width = data.width;
-        }
-        if (isNumber(data.height) && data.height !== cropBoxData.height) {
-          heightChanged = true;
-          cropBoxData.height = data.height;
-        }
-        if (aspectRatio) {
-          if (widthChanged) {
-            cropBoxData.height = cropBoxData.width / aspectRatio;
-          } else if (heightChanged) {
-            cropBoxData.width = cropBoxData.height * aspectRatio;
-          }
-        }
-        this.renderCropBox();
-      }
-      return this;
-    },
-    /**
-     * Get a canvas drawn the cropped image.
-     * @param {Object} [options={}] - The config options.
-     * @returns {HTMLCanvasElement} - The result canvas.
-     */
-    getCroppedCanvas: function getCroppedCanvas() {
-      var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-      if (!this.ready || !window.HTMLCanvasElement) {
-        return null;
-      }
-      var canvasData = this.canvasData;
-      var source = getSourceCanvas(this.image, this.imageData, canvasData, options);
-
-      // Returns the source canvas if it is not cropped.
-      if (!this.cropped) {
-        return source;
-      }
-      var _this$getData = this.getData(options.rounded),
-        initialX = _this$getData.x,
-        initialY = _this$getData.y,
-        initialWidth = _this$getData.width,
-        initialHeight = _this$getData.height;
-      var ratio = source.width / Math.floor(canvasData.naturalWidth);
-      if (ratio !== 1) {
-        initialX *= ratio;
-        initialY *= ratio;
-        initialWidth *= ratio;
-        initialHeight *= ratio;
-      }
-      var aspectRatio = initialWidth / initialHeight;
-      var maxSizes = getAdjustedSizes({
-        aspectRatio: aspectRatio,
-        width: options.maxWidth || Infinity,
-        height: options.maxHeight || Infinity
-      });
-      var minSizes = getAdjustedSizes({
-        aspectRatio: aspectRatio,
-        width: options.minWidth || 0,
-        height: options.minHeight || 0
-      }, 'cover');
-      var _getAdjustedSizes = getAdjustedSizes({
-          aspectRatio: aspectRatio,
-          width: options.width || (ratio !== 1 ? source.width : initialWidth),
-          height: options.height || (ratio !== 1 ? source.height : initialHeight)
-        }),
-        width = _getAdjustedSizes.width,
-        height = _getAdjustedSizes.height;
-      width = Math.min(maxSizes.width, Math.max(minSizes.width, width));
-      height = Math.min(maxSizes.height, Math.max(minSizes.height, height));
-      var canvas = document.createElement('canvas');
-      var context = canvas.getContext('2d');
-      canvas.width = normalizeDecimalNumber(width);
-      canvas.height = normalizeDecimalNumber(height);
-      context.fillStyle = options.fillColor || 'transparent';
-      context.fillRect(0, 0, width, height);
-      var _options$imageSmoothi = options.imageSmoothingEnabled,
-        imageSmoothingEnabled = _options$imageSmoothi === void 0 ? true : _options$imageSmoothi,
-        imageSmoothingQuality = options.imageSmoothingQuality;
-      context.imageSmoothingEnabled = imageSmoothingEnabled;
-      if (imageSmoothingQuality) {
-        context.imageSmoothingQuality = imageSmoothingQuality;
-      }
-
-      // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D.drawImage
-      var sourceWidth = source.width;
-      var sourceHeight = source.height;
-
-      // Source canvas parameters
-      var srcX = initialX;
-      var srcY = initialY;
-      var srcWidth;
-      var srcHeight;
-
-      // Destination canvas parameters
-      var dstX;
-      var dstY;
-      var dstWidth;
-      var dstHeight;
-      if (srcX <= -initialWidth || srcX > sourceWidth) {
-        srcX = 0;
-        srcWidth = 0;
-        dstX = 0;
-        dstWidth = 0;
-      } else if (srcX <= 0) {
-        dstX = -srcX;
-        srcX = 0;
-        srcWidth = Math.min(sourceWidth, initialWidth + srcX);
-        dstWidth = srcWidth;
-      } else if (srcX <= sourceWidth) {
-        dstX = 0;
-        srcWidth = Math.min(initialWidth, sourceWidth - srcX);
-        dstWidth = srcWidth;
-      }
-      if (srcWidth <= 0 || srcY <= -initialHeight || srcY > sourceHeight) {
-        srcY = 0;
-        srcHeight = 0;
-        dstY = 0;
-        dstHeight = 0;
-      } else if (srcY <= 0) {
-        dstY = -srcY;
-        srcY = 0;
-        srcHeight = Math.min(sourceHeight, initialHeight + srcY);
-        dstHeight = srcHeight;
-      } else if (srcY <= sourceHeight) {
-        dstY = 0;
-        srcHeight = Math.min(initialHeight, sourceHeight - srcY);
-        dstHeight = srcHeight;
-      }
-      var params = [srcX, srcY, srcWidth, srcHeight];
-
-      // Avoid "IndexSizeError"
-      if (dstWidth > 0 && dstHeight > 0) {
-        var scale = width / initialWidth;
-        params.push(dstX * scale, dstY * scale, dstWidth * scale, dstHeight * scale);
-      }
-
-      // All the numerical parameters should be integer for `drawImage`
-      // https://github.com/fengyuanchen/cropper/issues/476
-      context.drawImage.apply(context, [source].concat(_toConsumableArray(params.map(function (param) {
-        return Math.floor(normalizeDecimalNumber(param));
-      }))));
-      return canvas;
-    },
-    /**
-     * Change the aspect ratio of the crop box.
-     * @param {number} aspectRatio - The new aspect ratio.
-     * @returns {Cropper} this
-     */
-    setAspectRatio: function setAspectRatio(aspectRatio) {
-      var options = this.options;
-      if (!this.disabled && !isUndefined(aspectRatio)) {
-        // 0 -> NaN
-        options.aspectRatio = Math.max(0, aspectRatio) || NaN;
-        if (this.ready) {
-          this.initCropBox();
-          if (this.cropped) {
-            this.renderCropBox();
-          }
-        }
-      }
-      return this;
-    },
-    /**
-     * Change the drag mode.
-     * @param {string} mode - The new drag mode.
-     * @returns {Cropper} this
-     */
-    setDragMode: function setDragMode(mode) {
-      var options = this.options,
-        dragBox = this.dragBox,
-        face = this.face;
-      if (this.ready && !this.disabled) {
-        var croppable = mode === DRAG_MODE_CROP;
-        var movable = options.movable && mode === DRAG_MODE_MOVE;
-        mode = croppable || movable ? mode : DRAG_MODE_NONE;
-        options.dragMode = mode;
-        setData(dragBox, DATA_ACTION, mode);
-        toggleClass(dragBox, CLASS_CROP, croppable);
-        toggleClass(dragBox, CLASS_MOVE, movable);
-        if (!options.cropBoxMovable) {
-          // Sync drag mode to crop box when it is not movable
-          setData(face, DATA_ACTION, mode);
-          toggleClass(face, CLASS_CROP, croppable);
-          toggleClass(face, CLASS_MOVE, movable);
-        }
-      }
-      return this;
-    }
-  };
-
-  var AnotherCropper = WINDOW.Cropper;
-  var Cropper = /*#__PURE__*/function () {
-    /**
-     * Create a new Cropper.
-     * @param {Element} element - The target element for cropping.
-     * @param {Object} [options={}] - The configuration options.
-     */
-    function Cropper(element) {
-      var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-      _classCallCheck(this, Cropper);
-      if (!element || !REGEXP_TAG_NAME.test(element.tagName)) {
-        throw new Error('The first argument is required and must be an <img> or <canvas> element.');
-      }
-      this.element = element;
-      this.options = assign({}, DEFAULTS, isPlainObject(options) && options);
-      this.cropped = false;
-      this.disabled = false;
-      this.pointers = {};
-      this.ready = false;
-      this.reloading = false;
-      this.replaced = false;
-      this.sized = false;
-      this.sizing = false;
-      this.init();
-    }
-    _createClass(Cropper, [{
-      key: "init",
-      value: function init() {
-        var element = this.element;
-        var tagName = element.tagName.toLowerCase();
-        var url;
-        if (element[NAMESPACE]) {
-          return;
-        }
-        element[NAMESPACE] = this;
-        if (tagName === 'img') {
-          this.isImg = true;
-
-          // e.g.: "img/picture.jpg"
-          url = element.getAttribute('src') || '';
-          this.originalUrl = url;
-
-          // Stop when it's a blank image
-          if (!url) {
-            return;
-          }
-
-          // e.g.: "https://example.com/img/picture.jpg"
-          url = element.src;
-        } else if (tagName === 'canvas' && window.HTMLCanvasElement) {
-          url = element.toDataURL();
-        }
-        this.load(url);
-      }
-    }, {
-      key: "load",
-      value: function load(url) {
-        var _this = this;
-        if (!url) {
-          return;
-        }
-        this.url = url;
-        this.imageData = {};
-        var element = this.element,
-          options = this.options;
-        if (!options.rotatable && !options.scalable) {
-          options.checkOrientation = false;
-        }
-
-        // Only IE10+ supports Typed Arrays
-        if (!options.checkOrientation || !window.ArrayBuffer) {
-          this.clone();
-          return;
-        }
-
-        // Detect the mime type of the image directly if it is a Data URL
-        if (REGEXP_DATA_URL.test(url)) {
-          // Read ArrayBuffer from Data URL of JPEG images directly for better performance
-          if (REGEXP_DATA_URL_JPEG.test(url)) {
-            this.read(dataURLToArrayBuffer(url));
-          } else {
-            // Only a JPEG image may contains Exif Orientation information,
-            // the rest types of Data URLs are not necessary to check orientation at all.
-            this.clone();
-          }
-          return;
-        }
-
-        // 1. Detect the mime type of the image by a XMLHttpRequest.
-        // 2. Load the image as ArrayBuffer for reading orientation if its a JPEG image.
-        var xhr = new XMLHttpRequest();
-        var clone = this.clone.bind(this);
-        this.reloading = true;
-        this.xhr = xhr;
-
-        // 1. Cross origin requests are only supported for protocol schemes:
-        // http, https, data, chrome, chrome-extension.
-        // 2. Access to XMLHttpRequest from a Data URL will be blocked by CORS policy
-        // in some browsers as IE11 and Safari.
-        xhr.onabort = clone;
-        xhr.onerror = clone;
-        xhr.ontimeout = clone;
-        xhr.onprogress = function () {
-          // Abort the request directly if it not a JPEG image for better performance
-          if (xhr.getResponseHeader('content-type') !== MIME_TYPE_JPEG) {
-            xhr.abort();
-          }
-        };
-        xhr.onload = function () {
-          _this.read(xhr.response);
-        };
-        xhr.onloadend = function () {
-          _this.reloading = false;
-          _this.xhr = null;
-        };
-
-        // Bust cache when there is a "crossOrigin" property to avoid browser cache error
-        if (options.checkCrossOrigin && isCrossOriginURL(url) && element.crossOrigin) {
-          url = addTimestamp(url);
-        }
-
-        // The third parameter is required for avoiding side-effect (#682)
-        xhr.open('GET', url, true);
-        xhr.responseType = 'arraybuffer';
-        xhr.withCredentials = element.crossOrigin === 'use-credentials';
-        xhr.send();
-      }
-    }, {
-      key: "read",
-      value: function read(arrayBuffer) {
-        var options = this.options,
-          imageData = this.imageData;
-
-        // Reset the orientation value to its default value 1
-        // as some iOS browsers will render image with its orientation
-        var orientation = resetAndGetOrientation(arrayBuffer);
-        var rotate = 0;
-        var scaleX = 1;
-        var scaleY = 1;
-        if (orientation > 1) {
-          // Generate a new URL which has the default orientation value
-          this.url = arrayBufferToDataURL(arrayBuffer, MIME_TYPE_JPEG);
-          var _parseOrientation = parseOrientation(orientation);
-          rotate = _parseOrientation.rotate;
-          scaleX = _parseOrientation.scaleX;
-          scaleY = _parseOrientation.scaleY;
-        }
-        if (options.rotatable) {
-          imageData.rotate = rotate;
-        }
-        if (options.scalable) {
-          imageData.scaleX = scaleX;
-          imageData.scaleY = scaleY;
-        }
-        this.clone();
-      }
-    }, {
-      key: "clone",
-      value: function clone() {
-        var element = this.element,
-          url = this.url;
-        var crossOrigin = element.crossOrigin;
-        var crossOriginUrl = url;
-        if (this.options.checkCrossOrigin && isCrossOriginURL(url)) {
-          if (!crossOrigin) {
-            crossOrigin = 'anonymous';
-          }
-
-          // Bust cache when there is not a "crossOrigin" property (#519)
-          crossOriginUrl = addTimestamp(url);
-        }
-        this.crossOrigin = crossOrigin;
-        this.crossOriginUrl = crossOriginUrl;
-        var image = document.createElement('img');
-        if (crossOrigin) {
-          image.crossOrigin = crossOrigin;
-        }
-        image.src = crossOriginUrl || url;
-        image.alt = element.alt || 'The image to crop';
-        this.image = image;
-        image.onload = this.start.bind(this);
-        image.onerror = this.stop.bind(this);
-        addClass(image, CLASS_HIDE);
-        element.parentNode.insertBefore(image, element.nextSibling);
-      }
-    }, {
-      key: "start",
-      value: function start() {
-        var _this2 = this;
-        var image = this.image;
-        image.onload = null;
-        image.onerror = null;
-        this.sizing = true;
-
-        // Match all browsers that use WebKit as the layout engine in iOS devices,
-        // such as Safari for iOS, Chrome for iOS, and in-app browsers.
-        var isIOSWebKit = WINDOW.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(WINDOW.navigator.userAgent);
-        var done = function done(naturalWidth, naturalHeight) {
-          assign(_this2.imageData, {
-            naturalWidth: naturalWidth,
-            naturalHeight: naturalHeight,
-            aspectRatio: naturalWidth / naturalHeight
-          });
-          _this2.initialImageData = assign({}, _this2.imageData);
-          _this2.sizing = false;
-          _this2.sized = true;
-          _this2.build();
-        };
-
-        // Most modern browsers (excepts iOS WebKit)
-        if (image.naturalWidth && !isIOSWebKit) {
-          done(image.naturalWidth, image.naturalHeight);
-          return;
-        }
-        var sizingImage = document.createElement('img');
-        var body = document.body || document.documentElement;
-        this.sizingImage = sizingImage;
-        sizingImage.onload = function () {
-          done(sizingImage.width, sizingImage.height);
-          if (!isIOSWebKit) {
-            body.removeChild(sizingImage);
-          }
-        };
-        sizingImage.src = image.src;
-
-        // iOS WebKit will convert the image automatically
-        // with its orientation once append it into DOM (#279)
-        if (!isIOSWebKit) {
-          sizingImage.style.cssText = 'left:0;' + 'max-height:none!important;' + 'max-width:none!important;' + 'min-height:0!important;' + 'min-width:0!important;' + 'opacity:0;' + 'position:absolute;' + 'top:0;' + 'z-index:-1;';
-          body.appendChild(sizingImage);
-        }
-      }
-    }, {
-      key: "stop",
-      value: function stop() {
-        var image = this.image;
-        image.onload = null;
-        image.onerror = null;
-        image.parentNode.removeChild(image);
-        this.image = null;
-      }
-    }, {
-      key: "build",
-      value: function build() {
-        if (!this.sized || this.ready) {
-          return;
-        }
-        var element = this.element,
-          options = this.options,
-          image = this.image;
-
-        // Create cropper elements
-        var container = element.parentNode;
-        var template = document.createElement('div');
-        template.innerHTML = TEMPLATE;
-        var cropper = template.querySelector(".".concat(NAMESPACE, "-container"));
-        var canvas = cropper.querySelector(".".concat(NAMESPACE, "-canvas"));
-        var dragBox = cropper.querySelector(".".concat(NAMESPACE, "-drag-box"));
-        var cropBox = cropper.querySelector(".".concat(NAMESPACE, "-crop-box"));
-        var face = cropBox.querySelector(".".concat(NAMESPACE, "-face"));
-        this.container = container;
-        this.cropper = cropper;
-        this.canvas = canvas;
-        this.dragBox = dragBox;
-        this.cropBox = cropBox;
-        this.viewBox = cropper.querySelector(".".concat(NAMESPACE, "-view-box"));
-        this.face = face;
-        canvas.appendChild(image);
-
-        // Hide the original image
-        addClass(element, CLASS_HIDDEN);
-
-        // Inserts the cropper after to the current image
-        container.insertBefore(cropper, element.nextSibling);
-
-        // Show the hidden image
-        removeClass(image, CLASS_HIDE);
-        this.initPreview();
-        this.bind();
-        options.initialAspectRatio = Math.max(0, options.initialAspectRatio) || NaN;
-        options.aspectRatio = Math.max(0, options.aspectRatio) || NaN;
-        options.viewMode = Math.max(0, Math.min(3, Math.round(options.viewMode))) || 0;
-        addClass(cropBox, CLASS_HIDDEN);
-        if (!options.guides) {
-          addClass(cropBox.getElementsByClassName("".concat(NAMESPACE, "-dashed")), CLASS_HIDDEN);
-        }
-        if (!options.center) {
-          addClass(cropBox.getElementsByClassName("".concat(NAMESPACE, "-center")), CLASS_HIDDEN);
-        }
-        if (options.background) {
-          addClass(cropper, "".concat(NAMESPACE, "-bg"));
-        }
-        if (!options.highlight) {
-          addClass(face, CLASS_INVISIBLE);
-        }
-        if (options.cropBoxMovable) {
-          addClass(face, CLASS_MOVE);
-          setData(face, DATA_ACTION, ACTION_ALL);
-        }
-        if (!options.cropBoxResizable) {
-          addClass(cropBox.getElementsByClassName("".concat(NAMESPACE, "-line")), CLASS_HIDDEN);
-          addClass(cropBox.getElementsByClassName("".concat(NAMESPACE, "-point")), CLASS_HIDDEN);
-        }
-        this.render();
-        this.ready = true;
-        this.setDragMode(options.dragMode);
-        if (options.autoCrop) {
-          this.crop();
-        }
-        this.setData(options.data);
-        if (isFunction(options.ready)) {
-          addListener(element, EVENT_READY, options.ready, {
-            once: true
-          });
-        }
-        dispatchEvent(element, EVENT_READY);
-      }
-    }, {
-      key: "unbuild",
-      value: function unbuild() {
-        if (!this.ready) {
-          return;
-        }
-        this.ready = false;
-        this.unbind();
-        this.resetPreview();
-        var parentNode = this.cropper.parentNode;
-        if (parentNode) {
-          parentNode.removeChild(this.cropper);
-        }
-        removeClass(this.element, CLASS_HIDDEN);
-      }
-    }, {
-      key: "uncreate",
-      value: function uncreate() {
-        if (this.ready) {
-          this.unbuild();
-          this.ready = false;
-          this.cropped = false;
-        } else if (this.sizing) {
-          this.sizingImage.onload = null;
-          this.sizing = false;
-          this.sized = false;
-        } else if (this.reloading) {
-          this.xhr.onabort = null;
-          this.xhr.abort();
-        } else if (this.image) {
-          this.stop();
-        }
-      }
-
-      /**
-       * Get the no conflict cropper class.
-       * @returns {Cropper} The cropper class.
-       */
-    }], [{
-      key: "noConflict",
-      value: function noConflict() {
-        window.Cropper = AnotherCropper;
-        return Cropper;
-      }
-
-      /**
-       * Change the default options.
-       * @param {Object} options - The new default options.
-       */
-    }, {
-      key: "setDefaults",
-      value: function setDefaults(options) {
-        assign(DEFAULTS, isPlainObject(options) && options);
-      }
-    }]);
-    return Cropper;
-  }();
-  assign(Cropper.prototype, render, preview, events, handlers, change, methods);
-
-  return Cropper;
-
-}));
diff --git a/plugins/DateParser/date_parser.py b/plugins/DateParser/date_parser.py
deleted file mode 100644
index 908fc05e..00000000
--- a/plugins/DateParser/date_parser.py
+++ /dev/null
@@ -1,66 +0,0 @@
-import sys, json
-from pathlib import Path
-
-import stashapi.log as log
-from stashapi.stashapp import StashInterface
-import re
-from dateparser import parse
-from datetime import datetime
-
-def main():
-	global stash
-	global pattern
-
-	pattern = re.compile(r"\D(\d{4}|\d{1,2})[\._\- /\\](\d{1,2}|[a-zA-Z]{3,}\.*)[\._\- /\\](\d{4}|\d{1,2})\D")
-	json_input = json.loads(sys.stdin.read())
-	mode_arg = json_input['args']['mode']
-
-	stash = StashInterface(json_input["server_connection"])
-
-	if mode_arg == "gallery":
-		find_date_for_galleries()
-
-
-
-def find_date_for_galleries():
-
-	galleries = stash.find_galleries(f={
-		"is_missing": "date",
-		"path": {
-			"modifier": "MATCHES_REGEX",
-			"value": ".zip$"
-		},
-		"file_count": {
-			"modifier": "EQUALS",
-			"value": 1
-		}
-	})
-
-
-	total = len(galleries)
-
-	log.info(f"Found {total} galleries")
-
-	for i, gallery in enumerate(galleries):
-		log.progress(i/total)
-		acceptableDate = None
-		for file in gallery.get("files", []):
-			for match in pattern.finditer(file["path"]):
-				g1 = match.group(1)
-				g2 = match.group(2)
-				g3 =match.group(3)
-				temp = parse(g1+" "+g2+" "+g3)
-				if temp:
-					acceptableDate = temp.strftime("%Y-%m-%d")
-		if acceptableDate:
-			log.info("Gallery ID ("+gallery.get("id") + ") has matched the date : "+acceptableDate)
-			updateObject = {
-				"id":gallery.get("id"),
-				"date":acceptableDate
-			}
-			stash.update_gallery(updateObject)
-				
-
-
-if __name__ == '__main__':
-	main()
\ No newline at end of file
diff --git a/plugins/DateParser/date_parser.yml b/plugins/DateParser/date_parser.yml
deleted file mode 100644
index 82af58bc..00000000
--- a/plugins/DateParser/date_parser.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: Date Parser
-description: Find date in path or filename and add it
-version: 0.2
-exec:
-  - python
-  - "{pluginDir}/date_parser.py"
-interface: raw
-tasks:
-  - name: Find gallery dates
-    description: Add the date on galleries based on their path
-    defaultArgs:
-      mode: gallery
-
-      
diff --git a/plugins/DateParser/requirements.txt b/plugins/DateParser/requirements.txt
deleted file mode 100644
index 13896467..00000000
--- a/plugins/DateParser/requirements.txt
+++ /dev/null
@@ -1,14 +0,0 @@
-certifi>=2022.9.24
-charset-normalizer>=2.1.1
-dateparser>=1.1.3
-idna>=3.4
-python-dateutil>=2.8.2
-pytz>=2022.6
-pytz-deprecation-shim>=0.1.0.post0
-regex>=2022.3.2
-requests>=2.28.1
-six>=1.16.0
-stashapp-tools>=0.2.17
-tzdata>=2022.6
-tzlocal>=4.2
-urllib3>=1.26.12
diff --git a/plugins/GHScraper_Checker/GHScraper_Checker.py b/plugins/GHScraper_Checker/GHScraper_Checker.py
deleted file mode 100644
index b1e08f66..00000000
--- a/plugins/GHScraper_Checker/GHScraper_Checker.py
+++ /dev/null
@@ -1,208 +0,0 @@
-import json
-import os
-import re
-import sys
-import zipfile
-from datetime import datetime
-
-import requests
-
-import log
-
-FRAGMENT = json.loads(sys.stdin.read())
-FRAGMENT_SERVER = FRAGMENT["server_connection"]
-FRAGMENT_ARG = FRAGMENT['args']['mode']
-log.LogDebug("Starting Plugin: Github Scraper Checker")
-
-CHECK_LOG = False
-GET_NEW_FILE = False
-OVERWRITE = False
-
-if FRAGMENT_ARG == "CHECK":
-    CHECK_LOG = True
-if FRAGMENT_ARG == "NEWFILE":
-    GET_NEW_FILE = True
-if FRAGMENT_ARG == "OVERWRITE":
-    OVERWRITE = True
-
-# Don't write in log if the file don't exist locally.
-IGNORE_MISS_LOCAL = False
-
-def graphql_getScraperPath():
-    query = """
-    query Configuration {
-        configuration {
-            general {
-                scrapersPath
-            }
-        }
-    }
-    """
-    result = callGraphQL(query)
-    return result["configuration"]["general"]["scrapersPath"]
-
-
-def callGraphQL(query, variables=None):
-    # Session cookie for authentication
-    graphql_port = FRAGMENT_SERVER['Port']
-    graphql_scheme = FRAGMENT_SERVER['Scheme']
-    graphql_cookies = {
-        'session': FRAGMENT_SERVER.get('SessionCookie').get('Value')
-    }
-    graphql_headers = {
-        "Accept-Encoding": "gzip, deflate, br",
-        "Content-Type": "application/json",
-        "Accept": "application/json",
-        "Connection": "keep-alive",
-        "DNT": "1"
-    }
-    if FRAGMENT_SERVER.get('Domain'):
-        graphql_domain = FRAGMENT_SERVER['Domain']
-    else:
-        if FRAGMENT_SERVER.get('Host'):
-            graphql_domain = FRAGMENT_SERVER['Host']
-        else:
-            graphql_domain = 'localhost'
-    # Because i don't understand how host work...
-    graphql_domain = 'localhost'
-    # Stash GraphQL endpoint
-    graphql_url = graphql_scheme + "://" + \
-        graphql_domain + ":" + str(graphql_port) + "/graphql"
-
-    json = {'query': query}
-    if variables is not None:
-        json['variables'] = variables
-    try:
-        response = requests.post(
-            graphql_url, json=json, headers=graphql_headers, cookies=graphql_cookies, timeout=10)
-    except:
-        sys.exit("[FATAL] Error with the graphql request, are you sure the GraphQL endpoint ({}) is correct.".format(
-            graphql_url))
-    if response.status_code == 200:
-        result = response.json()
-        if result.get("error"):
-            for error in result["error"]["errors"]:
-                raise Exception("GraphQL error: {}".format(error))
-        if result.get("data"):
-            return result.get("data")
-    elif response.status_code == 401:
-        sys.exit("HTTP Error 401, Unauthorised.")
-    else:
-        raise ConnectionError("GraphQL query failed:{} - {}. Query: {}. Variables: {}".format(
-            response.status_code, response.content, query, variables))
-
-
-def file_getlastline(path):
-    with open(path, 'r', encoding="utf-8") as f:
-        for line in f:
-            u_match = re.search(r"^\s*#\s*last updated", line.lower())
-            if u_match:
-                return line.strip()
-    return None
-
-
-def get_date(line):
-    try:
-        date = datetime.strptime(re.sub(r".*#.*Last Updated\s*", "", line), "%B %d, %Y")
-    except:
-        return None
-    return date
-
-
-scraper_folder_path = graphql_getScraperPath()
-GITHUB_LINK = "https://github.com/stashapp/CommunityScrapers/archive/refs/heads/master.zip"
-
-try:
-    r = requests.get(GITHUB_LINK, timeout=10)
-except:
-    sys.exit("Failing to download the zip file.")
-zip_path = os.path.join(scraper_folder_path, "github.zip")
-log.LogDebug(zip_path)
-with open(zip_path, "wb") as zip_file:
-    zip_file.write(r.content)
-
-with zipfile.ZipFile(zip_path) as z:
-    change_detected = False
-
-    for filename in z.namelist():
-        #  Only care about the scrapers folders
-        if "/scrapers/" in filename and filename.endswith(".yml"):
-            # read the file
-            line = bytes()
-            # Filename abc.yml
-            gh_file = os.path.basename(filename)
-
-            # Filename /scrapers/<subdir>/abc.yml
-            if filename.endswith(f"/scrapers/{gh_file}") == False:
-                log.LogDebug("Subdirectory detected: " + filename)
-                subdir = re.findall('\/scrapers\/(.*)\/.*\.yml', filename)
-
-                if len(subdir) != 1:
-                    log.LogError(f"Unexpected number of matching subdirectories found. Expected 1. Found {len(subdir)}.")
-                    exit(1)
-
-                gh_file = subdir[0] + "/" + gh_file
-
-            log.LogDebug(gh_file)
-            path_local = os.path.join(scraper_folder_path, gh_file)
-            gh_line = None
-            yml_script = None
-            if OVERWRITE:
-                with z.open(filename) as f:
-                    scraper_content = f.read()
-                    with open(path_local, 'wb') as yml_file:
-                        yml_file.write(scraper_content)
-                        log.LogInfo("Replacing/Creating {}".format(gh_file))
-                        continue
-            with z.open(filename) as f:
-                for line in f:
-                    script_match = re.search(r"action:\sscript", line.decode().lower())
-                    update_match = re.search(r"^\s*#\s*last updated", line.decode().lower())
-                    if script_match:
-                        yml_script = True
-                    if update_match:
-                        gh_line = line.decode().strip()
-                        break
-            # Got last line
-            if gh_line is None:
-                log.LogError("[Github] Line Error ({}) ".format(gh_file))
-                continue
-            gh_date = get_date(gh_line)
-            if gh_date is None:
-                log.LogError("[Github] Date Error ({}) ".format(gh_file))
-                continue
-            elif os.path.exists(path_local):
-                # Local Part
-                local_line = file_getlastline(path_local)
-                if local_line is None:
-                    log.LogError("[Local] Line Error ({}) ".format(gh_file))
-                    continue
-                local_date = get_date(local_line.strip())
-                if local_date is None:
-                    log.LogError("[Local] Date Error ({}) ".format(gh_file))
-                    continue
-                if gh_date > local_date and CHECK_LOG:
-                    change_detected = True
-
-                    if yml_script:
-                        log.LogInfo("[{}] New version on github (Can be any of the related files)".format(gh_file))
-                    else:
-                        log.LogInfo("[{}] New version on github".format(gh_file))
-            elif GET_NEW_FILE:
-                change_detected = True
-                # File don't exist local so we take the github version.
-                with z.open(filename) as f:
-                    scraper_content = f.read()
-                    with open(path_local, 'wb') as yml_file:
-                        yml_file.write(scraper_content)
-                        log.LogInfo("Creating {}".format(gh_file))
-                        continue
-            elif CHECK_LOG and IGNORE_MISS_LOCAL == False:
-                change_detected = True
-
-                log.LogWarning("[{}] File don't exist locally".format(gh_file))
-
-if change_detected == False:
-    log.LogInfo("Scrapers appear to be in sync with GitHub version.")
-
-os.remove(zip_path)
diff --git a/plugins/GHScraper_Checker/GHScraper_Checker.yml b/plugins/GHScraper_Checker/GHScraper_Checker.yml
deleted file mode 100644
index 48188be4..00000000
--- a/plugins/GHScraper_Checker/GHScraper_Checker.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-name: GHScraper_Checker
-description: Check the community scraper repo.
-version: 0.1.1
-url: https://github.com/stashapp/CommunityScripts/tree/main/plugins/GHScraper_Checker
-exec:
-  - python
-  - "{pluginDir}/GHScraper_Checker.py"
-interface: raw
-tasks:
-  - name: 'Status Check'
-    description: "Show in log if you don't have the scraper or a new version is available."
-    defaultArgs:
-      mode: CHECK
-  - name: 'Getting new files'
-    description: "Download scraper that don't exist in your scraper folder."
-    defaultArgs:
-      mode: NEWFILE
-#  - name: 'Overwrite everything'
-#    description: 'Replace your scraper by github version. Overwrite anything existing.'
-#    defaultArgs:
-#      mode: OVERWRITE
diff --git a/plugins/GHScraper_Checker/log.py b/plugins/GHScraper_Checker/log.py
deleted file mode 100644
index f3812522..00000000
--- a/plugins/GHScraper_Checker/log.py
+++ /dev/null
@@ -1,52 +0,0 @@
-import sys
-
-
-# Log messages sent from a plugin instance are transmitted via stderr and are
-# encoded with a prefix consisting of special character SOH, then the log
-# level (one of t, d, i, w, e, or p - corresponding to trace, debug, info,
-# warning, error and progress levels respectively), then special character
-# STX.
-#
-# The LogTrace, LogDebug, LogInfo, LogWarning, and LogError methods, and their equivalent
-# formatted methods are intended for use by plugin instances to transmit log
-# messages. The LogProgress method is also intended for sending progress data.
-#
-
-def __prefix(level_char):
-	start_level_char = b'\x01'
-	end_level_char = b'\x02'
-
-	ret = start_level_char + level_char + end_level_char
-	return ret.decode()
-
-
-def __log(level_char, s):
-	if level_char == "":
-		return
-
-	print(__prefix(level_char) + s + "\n", file=sys.stderr, flush=True)
-
-
-def LogTrace(s):
-	__log(b't', s)
-
-
-def LogDebug(s):
-	__log(b'd', s)
-
-
-def LogInfo(s):
-	__log(b'i', s)
-
-
-def LogWarning(s):
-	__log(b'w', s)
-
-
-def LogError(s):
-	__log(b'e', s)
-
-
-def LogProgress(p):
-	progress = min(max(0, p), 1)
-	__log(b'p', str(progress))
diff --git a/plugins/StashBatchResultToggle/stashBatchResultToggle.js b/plugins/StashBatchResultToggle/stashBatchResultToggle.js
deleted file mode 100644
index f6c56981..00000000
--- a/plugins/StashBatchResultToggle/stashBatchResultToggle.js
+++ /dev/null
@@ -1,308 +0,0 @@
-(function() {
-    let running = false;
-    const buttons = [];
-    let maxCount = 0;
-
-    function resolveToggle(el) {
-        let button = null;
-        if (el?.classList.contains('optional-field-content')) {
-            button = el.previousElementSibling;
-        } else if (el?.tagName === 'SPAN' && el?.classList.contains('ml-auto')) {
-            button = el.querySelector('.optional-field button');
-        } else if (el?.parentElement?.classList.contains('optional-field-content')) {
-            button = el.parentElement.previousElementSibling;
-        }
-        const state = button?.classList.contains('text-success');
-        return {
-            button,
-            state
-        };
-    }
-
-    function toggleSearchItem(searchItem, toggleMode) {
-        const searchResultItem = searchItem.querySelector('li.search-result.selected-result.active');
-        if (!searchResultItem) return;
-
-        const {
-            urlNode,
-            url,
-            id,
-            data,
-            nameNode,
-            name,
-            queryInput,
-            performerNodes
-        } = stash.parseSearchItem(searchItem);
-
-        const {
-            remoteUrlNode,
-            remoteId,
-            remoteUrl,
-            remoteData,
-            urlNode: matchUrlNode,
-            detailsNode,
-            imageNode,
-            titleNode,
-            codeNode,
-            dateNode,
-            studioNode,
-            performerNodes: matchPerformerNodes,
-            matches
-        } = stash.parseSearchResultItem(searchResultItem);
-
-        const studioMatchNode = matches.find(o => o.matchType === 'studio')?.matchNode;
-        const performerMatchNodes = matches.filter(o => o.matchType === 'performer').map(o => o.matchNode);
-
-        const includeTitle = document.getElementById('result-toggle-title').checked;
-        const includeCode = document.getElementById('result-toggle-code').checked;
-        const includeDate = document.getElementById('result-toggle-date').checked;
-        const includeCover = document.getElementById('result-toggle-cover').checked;
-        const includeStashID = document.getElementById('result-toggle-stashid').checked;
-        const includeURL = document.getElementById('result-toggle-url').checked;
-        const includeDetails = document.getElementById('result-toggle-details').checked;
-        const includeStudio = document.getElementById('result-toggle-studio').checked;
-        const includePerformers = document.getElementById('result-toggle-performers').checked;
-
-        let options = [];
-
-        options.push(['title', includeTitle, titleNode, resolveToggle(titleNode)]);
-        options.push(['code', includeCode, codeNode, resolveToggle(codeNode)]);
-        options.push(['date', includeDate, dateNode, resolveToggle(dateNode)]);
-        options.push(['cover', includeCover, imageNode, resolveToggle(imageNode)]);
-        options.push(['stashid', includeStashID, remoteUrlNode, resolveToggle(remoteUrlNode)]);
-        options.push(['url', includeURL, matchUrlNode, resolveToggle(matchUrlNode)]);
-        options.push(['details', includeDetails, detailsNode, resolveToggle(detailsNode)]);
-        options.push(['studio', includeStudio, studioMatchNode, resolveToggle(studioMatchNode)]);
-        options = options.concat(performerMatchNodes.map(o => ['performer', includePerformers, o, resolveToggle(o)]));
-
-        for (const [optionType, optionValue, optionNode, {
-                button,
-                state
-            }] of options) {
-            let wantedState = optionValue;
-            if (toggleMode === 1) {
-                wantedState = true;
-            } else if (toggleMode === -1) {
-                wantedState = false;
-            }
-            if (optionNode && wantedState !== state) {
-                button.click();
-            }
-        }
-    }
-
-    function run() {
-        if (!running) return;
-        const button = buttons.pop();
-        stash.setProgress((maxCount - buttons.length) / maxCount * 100);
-        if (button) {
-            const searchItem = getClosestAncestor(button, '.search-item');
-            let toggleMode = 0;
-            if (btn === btnOn) {
-                toggleMode = 1;
-            } else if (btn === btnOff) {
-                toggleMode = -1;
-            } else if (btn === btnMixed) {
-                toggleMode = 0;
-            }
-            toggleSearchItem(searchItem, toggleMode);
-            setTimeout(run, 0);
-        } else {
-            stop();
-        }
-    }
-
-    const btnGroup = document.createElement('div');
-    const btnGroupId = 'batch-result-toggle';
-    btnGroup.setAttribute('id', btnGroupId);
-    btnGroup.classList.add('btn-group', 'ml-3');
-
-    const checkLabel = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16 fa-icon fa-fw" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"></path></svg>';
-    const timesLabel = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="times" class="svg-inline--fa fa-times fa-w-11 fa-icon fa-fw" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path fill="currentColor" d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"></path></svg>';
-    const startLabel = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle" class="svg-inline--fa fa-circle fa-w-16 fa-icon fa-fw" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"/></svg>';
-    let btn;
-
-    const btnOffId = 'batch-result-toggle-off';
-    const btnOff = document.createElement("button");
-    btnOff.setAttribute("id", btnOffId);
-    btnOff.title = 'Result Toggle All Off';
-    btnOff.classList.add('btn', 'btn-primary');
-    btnOff.innerHTML = timesLabel;
-    btnOff.onclick = () => {
-        if (running) {
-            stop();
-        } else {
-            btn = btnOff;
-            start();
-        }
-    };
-    btnGroup.appendChild(btnOff);
-
-    const btnMixedId = 'batch-result-toggle-mixed';
-    const btnMixed = document.createElement("button");
-    btnMixed.setAttribute("id", btnMixedId);
-    btnMixed.title = 'Result Toggle All';
-    btnMixed.classList.add('btn', 'btn-primary');
-    btnMixed.innerHTML = startLabel;
-    btnMixed.onclick = () => {
-        if (running) {
-            stop();
-        } else {
-            btn = btnMixed;
-            start();
-        }
-    };
-    btnGroup.appendChild(btnMixed);
-
-    const btnOnId = 'batch-result-toggle-on';
-    const btnOn = document.createElement("button");
-    btnOn.setAttribute("id", btnOnId);
-    btnOn.title = 'Result Toggle All On';
-    btnOn.classList.add('btn', 'btn-primary');
-    btnOn.innerHTML = checkLabel;
-    btnOn.onclick = () => {
-        if (running) {
-            stop();
-        } else {
-            btn = btnOn;
-            start();
-        }
-    };
-    btnGroup.appendChild(btnOn);
-
-    function start() {
-        // btn.innerHTML = stopLabel;
-        btn.classList.remove('btn-primary');
-        btn.classList.add('btn-danger');
-        btnMixed.disabled = true;
-        btnOn.disabled = true;
-        btnOff.disabled = true;
-        btn.disabled = false;
-        running = true;
-        stash.setProgress(0);
-        buttons.length = 0;
-        for (const button of document.querySelectorAll('.btn.btn-primary')) {
-            if (button.innerText === 'Search') {
-                buttons.push(button);
-            }
-        }
-        maxCount = buttons.length;
-        run();
-    }
-
-    function stop() {
-        // btn.innerHTML = startLabel;
-        btn.classList.remove('btn-danger');
-        btn.classList.add('btn-primary');
-        running = false;
-        stash.setProgress(0);
-        btnMixed.disabled = false;
-        btnOn.disabled = false;
-        btnOff.disabled = false;
-    }
-
-    stash.addEventListener('tagger:mutations:header', evt => {
-        const el = getElementByXpath("//button[text()='Scrape All']");
-        if (el && !document.getElementById(btnGroupId)) {
-            const container = el.parentElement;
-            container.appendChild(btnGroup);
-            sortElementChildren(container);
-            el.classList.add('ml-3');
-        }
-    });
-
-    const resultToggleConfigId = 'result-toggle-config';
-
-    stash.addEventListener('tagger:configuration', evt => {
-        const el = evt.detail;
-        if (!document.getElementById(resultToggleConfigId)) {
-            const configContainer = el.parentElement;
-            const resultToggleConfig = createElementFromHTML(`
-<div id="${resultToggleConfigId}" class="col-md-6 mt-4">
-<h5>Result Toggle ${startLabel} Configuration</h5>
-<div class="row">
-    <div class="align-items-center form-group col-md-6">
-        <div class="form-check">
-            <input type="checkbox" id="result-toggle-title" class="form-check-input" data-default="true">
-            <label title="" for="result-toggle-title" class="form-check-label">Title</label>
-        </div>
-    </div>
-    <div class="align-items-center form-group col-md-6">
-        <div class="form-check">
-            <input type="checkbox" id="result-toggle-code" class="form-check-input" data-default="true">
-            <label title="" for="result-toggle-code" class="form-check-label">Code</label>
-        </div>
-    </div>
-    <div class="align-items-center form-group col-md-6">
-        <div class="form-check">
-            <input type="checkbox" id="result-toggle-date" class="form-check-input" data-default="true">
-            <label title="" for="result-toggle-date" class="form-check-label">Date</label>
-        </div>
-    </div>
-    <div class="align-items-center form-group col-md-6">
-        <div class="form-check">
-            <input type="checkbox" id="result-toggle-cover" class="form-check-input" data-default="true">
-            <label title="" for="result-toggle-cover" class="form-check-label">Cover</label>
-        </div>
-    </div>
-    <div class="align-items-center form-group col-md-6">
-        <div class="form-check">
-            <input type="checkbox" id="result-toggle-stashid" class="form-check-input" data-default="true">
-            <label title="" for="result-toggle-stashid" class="form-check-label">Stash ID</label>
-        </div>
-    </div>
-    <div class="align-items-center form-group col-md-6">
-        <div class="form-check">
-            <input type="checkbox" id="result-toggle-url" class="form-check-input" data-default="true">
-            <label title="" for="result-toggle-url" class="form-check-label">URL</label>
-        </div>
-    </div>
-    <div class="align-items-center form-group col-md-6">
-        <div class="form-check">
-            <input type="checkbox" id="result-toggle-details" class="form-check-input" data-default="true">
-            <label title="" for="result-toggle-details" class="form-check-label">Details</label>
-        </div>
-    </div>
-    <div class="align-items-center form-group col-md-6">
-        <div class="form-check">
-            <input type="checkbox" id="result-toggle-studio" class="form-check-input" data-default="true">
-            <label title="" for="result-toggle-studio" class="form-check-label">Studio</label>
-        </div>
-    </div>
-    <div class="align-items-center form-group col-md-6">
-        <div class="form-check">
-            <input type="checkbox" id="result-toggle-performers" class="form-check-input" data-default="true">
-            <label title="" for="result-toggle-performers" class="form-check-label">Performers</label>
-        </div>
-    </div>
-</div>
-</div>
-            `);
-            configContainer.appendChild(resultToggleConfig);
-            loadSettings();
-        }
-    });
-
-    async function loadSettings() {
-        for (const input of document.querySelectorAll(`#${resultToggleConfigId} input`)) {
-            input.checked = await sessionStorage.getItem(input.id, input.dataset.default === 'true');
-            input.addEventListener('change', async () => {
-                await sessionStorage.setItem(input.id, input.checked);
-            });
-        }
-    }
-
-    stash.addEventListener('tagger:mutation:add:remoteperformer', evt => toggleSearchItem(getClosestAncestor(evt.detail.node, '.search-item'), 0));
-    stash.addEventListener('tagger:mutation:add:remotestudio', evt => toggleSearchItem(getClosestAncestor(evt.detail.node, '.search-item'), 0));
-    stash.addEventListener('tagger:mutation:add:local', evt => toggleSearchItem(getClosestAncestor(evt.detail.node, '.search-item'), 0));
-    stash.addEventListener('tagger:mutation:add:container', evt => toggleSearchItem(getClosestAncestor(evt.detail.node, '.search-item'), 0));
-    stash.addEventListener('tagger:mutation:add:subcontainer', evt => toggleSearchItem(getClosestAncestor(evt.detail.node, '.search-item'), 0));
-
-    function checkSaveButtonDisplay() {
-        const taggerContainer = document.querySelector('.tagger-container');
-        const saveButton = getElementByXpath("//button[text()='Save']", taggerContainer);
-        btnGroup.style.display = saveButton ? 'inline-block' : 'none';
-    }
-
-    stash.addEventListener('tagger:mutations:searchitems', checkSaveButtonDisplay);
-})();
diff --git a/plugins/StashBatchResultToggle/stashBatchResultToggle.yml b/plugins/StashBatchResultToggle/stashBatchResultToggle.yml
deleted file mode 100644
index a07558f7..00000000
--- a/plugins/StashBatchResultToggle/stashBatchResultToggle.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-name: Stash Batch Result Toggle.
-# requires: StashUserscriptLibrary
-description: In Scene Tagger, adds button to toggle all stashdb scene match result fields. Saves clicks when you only want to save a few metadata fields. Instead of turning off every field, you batch toggle them off, then toggle on the ones you want
-version: 1.0
-ui:
-  requires: 
-  - StashUserscriptLibrary
-  javascript:
-  - stashBatchResultToggle.js
diff --git a/plugins/comicInfoExtractor/README.md b/plugins/comicInfoExtractor/README.md
deleted file mode 100644
index 759952c3..00000000
--- a/plugins/comicInfoExtractor/README.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# Comic Archive Metadata Extractor
-Follows the Comicrack Standard for saving Comic Metadata in .cbz files by reading the ComicInfo.xml file in the archive and writing the result into the stash gallery.
-Use the config.py ImportList to define what XML names should be mapped to what.
-Currently, Bookmark and Type are recognized as chapters that are imported as well.
-The current Configuration will overwrite any value you try to set that is already set in the ComicInfo.xml. For a change in that, change the hook condition in the yml.
-
-### Installation 
-Move the `comicInfoExtractor` directory into Stash's plugins directory, reload plugins.
-
-### Tasks
-* Load all cbz Metadata - Fetch metadata for all galleries.
-* Post update hook - Fetch metadata for that gallery
diff --git a/plugins/comicInfoExtractor/comicInfoExtractor.py b/plugins/comicInfoExtractor/comicInfoExtractor.py
deleted file mode 100644
index 1fda7f1c..00000000
--- a/plugins/comicInfoExtractor/comicInfoExtractor.py
+++ /dev/null
@@ -1,124 +0,0 @@
-import stashapi.log as log
-from stashapi.stashapp import StashInterface
-import stashapi.marker_parse as mp
-import yaml
-import json
-import os
-import sys
-import xml.etree.ElementTree as ET
-import zipfile
-
-per_page = 100
-
-def processGallery(g):
-    #Read ComicInfo.xml File
-    if len(g["files"]) == 0:
-        log.info(g["id"] + " is not an archive. No scanning for Comic Metadata.")
-        return
-    comicInfo = False
-    with zipfile.ZipFile(g["files"][0]["path"], 'r') as archive:
-        archivecontent = [x.lower() for x in archive.namelist()]
-        for archivefile in archivecontent:
-            if archivefile.lower() == "comicinfo.xml":
-                comicInfo = ET.fromstring(archive.read("ComicInfo.xml"))
-    if not comicInfo:
-        log.info(g["files"][0]["path"] + " does not contain a ComicInfo.xml file. No scan will be triggered.")
-        return
-
-    #Adjust names for giving ids
-    for key in ImportList.keys():
-        if ImportList[key] == "tags":
-            ImportList[key] = "tag_ids"
-        if ImportList[key] == "performers":
-            ImportList[key] = "performer_ids"
-        if ImportList[key] == "studio":
-            ImportList[key] = "studio_id"
-
-    #Get Metadata from ComicInfo.xml
-    galleryData = {"id": g["id"]}
-    for item in ImportList.keys():
-        value = comicInfo.find(item)
-        if value != None:
-            galleryData[ImportList[item]] = value.text
-    chapterData = []
-    pageData = comicInfo.find("Pages")
-    if pageData:
-        for page in pageData:
-            if page.get("Bookmark"):
-                chapterData.append({"image_index": int(page.get("Image")) + 1, "title": page.get("Bookmark")})
-            if page.get("Type"):
-                chapterData.append({"image_index": int(page.get("Image")) + 1, "title": page.get("Type")})
-
-    #Adjust the retrieved data if necessary
-    for data in galleryData.keys():
-        if data in ["tag_ids", "performer_ids"]:
-            galleryData[data] = [x.strip() for x in galleryData[data].split(",")]
-        if data == "tag_ids":
-            tagids = []
-            for tag in galleryData[data]:
-                tagids.append(stash.find_tag(tag, create=True)["id"])
-            galleryData[data] = tagids
-        if data == "performer_ids":
-            performerids = []
-            for performer in galleryData[data]:
-                performerids.append(stash.find_performer(performer, create=True)["id"])
-            galleryData[data] = performerids
-        if data == "studio_id":
-            galleryData[data] = stash.find_studio(galleryData[data], create=True)["id"]
-        if data == "date":
-            galleryData[data] = galleryData[data] + "-01-01"
-        if data == "organized":
-            galleryData[data] = eval(galleryData[data].lower().capitalize())
-        if data == "rating100":
-            galleryData[data] = int(galleryData[data])
-
-    #Add Chapter if it does not exist and finally update Gallery Metadata
-    for chapter in chapterData:
-        addChapter = True
-        for existingChapter in g["chapters"]:
-            if existingChapter["title"] == chapter["title"] and existingChapter["image_index"]  == chapter["image_index"]:
-                addChapter = False
-        if addChapter:
-            stash.create_gallery_chapter({"title": chapter["title"], "image_index": chapter["image_index"], "gallery_id": g["id"]})
-    stash.update_gallery(galleryData)
-
-
-
-def processAll():
-    log.info('Getting gallery count')
-    count=stash.find_galleries(f={},filter={"per_page": 1},get_count=True)[0]
-    log.info(str(count)+' galleries to scan.')
-    for r in range(1,int(count/per_page)+1):
-        log.info('processing '+str(r*per_page)+ ' - '+str(count))
-        galleries=stash.find_galleries(f={},filter={"page":r,"per_page": per_page})
-        for g in galleries:
-            processGallery(g)
-
-
-
-#Start of the Program
-json_input = json.loads(sys.stdin.read())
-FRAGMENT_SERVER = json_input["server_connection"]
-stash = StashInterface(FRAGMENT_SERVER)
-
-#Load Config
-with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "config.yml"), "r") as f:
-  try:
-    config = yaml.safe_load(f)
-  except yaml.YAMLError as exc:
-    log.error("Could not load config.yml: " + str(exc))
-    sys.exit(1)
-try:
-    ImportList=config["ImportList"]
-except KeyError as key:
-    log.error(str(key) + " is not defined in config.yml, but is needed for this script to proceed")
-    sys.exit(1)
-
-if 'mode' in json_input['args']:
-    PLUGIN_ARGS = json_input['args']["mode"]
-    if 'process' in PLUGIN_ARGS:
-        processAll()
-elif 'hookContext' in json_input['args']:
-    id=json_input['args']['hookContext']['id']
-    gallery=stash.find_gallery(id)
-    processGallery(gallery)
diff --git a/plugins/comicInfoExtractor/comicInfoExtractor.yml b/plugins/comicInfoExtractor/comicInfoExtractor.yml
deleted file mode 100644
index f9cb7440..00000000
--- a/plugins/comicInfoExtractor/comicInfoExtractor.yml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: Comic Info Extractor
-description: Extract the metadata from cbz with the Comicrack standard (ComicInfo.xml)
-version: 0.1
-url: https://github.com/stashapp/CommunityScripts/
-exec:
-  - "/usr/bin/python3"
-  - "{pluginDir}/comicInfoExtractor.py"
-interface: raw
-hooks:
-  - name: Add Metadata to Gallery
-    description: Update Metadata for Gallery by evaluating the ComicInfo.xml.
-    triggeredBy:
-      - Gallery.Update.Post
-      - Gallery.Create.Post
-tasks:
-  - name: Load all cbz Metadata
-    description: Get Metadata for all Galleries by looking for ComicInfo.xml files in the Archive.
-    defaultArgs:
-      mode: process
diff --git a/plugins/comicInfoExtractor/config.yml b/plugins/comicInfoExtractor/config.yml
deleted file mode 100644
index 235e8524..00000000
--- a/plugins/comicInfoExtractor/config.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-#pkgignore
-#ImportList is a dictionary
-#that matches an xml Attribute from ComicInfo.xml to the according value in stash (using the graphql naming)
-#Fields that refer to different types of media are resolved by name and created if necessary (tags, studio, performers)
-#Fields that can contain multiple values (tags, performers) will be expected as a comma separated string, like
-#<Genre>Outdoor, Blonde</Genre>
-ImportList:
-  Genre: tags
-  Title: title
-  Writer: studio
-  Year: date
-  Summary: details
diff --git a/plugins/comicInfoExtractor/requirements.txt b/plugins/comicInfoExtractor/requirements.txt
deleted file mode 100644
index 4e5ec4c0..00000000
--- a/plugins/comicInfoExtractor/requirements.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-stashapp-tools
-pyyaml
diff --git a/plugins/defaultDataForPath/README.md b/plugins/defaultDataForPath/README.md
deleted file mode 100644
index 607fe51a..00000000
--- a/plugins/defaultDataForPath/README.md
+++ /dev/null
@@ -1,151 +0,0 @@
-# Path Default Tags
-Define default tags/performers/studio for Scenes, Images, and Galleries by file path.
-Big thanks to @WithoutPants - I based this entire script off of yours (markerTagToScene) and learned about Stash plugins during the process :)
-
-## Requirements
-- Stash
-
-## Installation
-
-- Download the whole folder 'defaultDataForPath' (defaultDataForPath.js, defaultDataForPath.yml)
-- Place it in your **plugins** folder
-- Reload plugins (Settings > Plugins)
-- Default Data For Path (1.0) should appear. 
-
-## Usage
-
-- This plugin will execute on Tasks->Scan. Any new file added to Stash will be created with the specified data if configured.
-
-## Configuration
-
-- Edit **_jsonData_** array. Refer to Examples.
-
-## Notes
-- Remember to escape file paths!
-- Note this script only works on NEWLY created Scenes/Images/Galleries. To run on existing content, the content will need to be removed from Stash and then rescanned.
-- There is NO validation of tags/performers/studios being performed. They must exist in Stash and be spelled exactly the same to work.  These values are not updated when they are updated in Stash. They will have to manually be configured. If there is a mismatch, an error will be logged and the affected file will not have any default data added. The Scan task will continue to execute however.
-- If you misconfigure the script, the Task->Scan will complete and files will be created, but you can remove those files from Stash, fix the script, and try again.
-- I recommend using VS Code but any text editor should do. I especially recommend an editor with collapse functionality as your config JSON grows.
-- This requires a decent bit of manual effort and verbosity to configure, but only needs to be maintained after that. 
-- This may slow down your Task->Scan. This script is probably sloppily written, I was not sober when I wrote it, and haven't looked much at it since it works ¯\\\_(ツ)_/¯ 
-
-## Examples
-
-> Here is a simple config Object. It defines data for any Scene/Image/Gallery found within the paths listed (it includes all subfolders). Matching files will be assigned Studio **'Brazzers'** and Tag **'Default_Data_For_Path_Tagged'** assuming that Studio and Tag exist in Stash and are spelled this way.
-<br>**_'name'_** is optional and not used by the script. Feel free to include it for the purposes of organization.
-<br>**_'paths'_** is optional and defines what file paths the current Object config should apply to. If it is not included, then no files will be matched to this config, unless **_'children'_** is used, in which case, those files in **_'children'_** will be matched to this config. See next example.
-<br>**_'studio'_** is optional and defines a Studio to apply to file matches. The Studio must exist in Stash and be spelled the same.
-<br>**_'tags'_** is optional and defines Tags to apply to file matches. The Tags must exist in Stash and be spelled the same.
-```
-var jsonData = [
-    {
-        "name": "OPTIONAL NAME - NOT USED IN SCRIPT",
-        "paths": [
-            "C:\\Users\\UserName\\Desktop\\NOTPORN\\Brazzers",
-            "D:\\SecretStorage\\Porn\\Brazzers"
-        ],
-        "studio": "Brazzers",
-        "tags": [
-            "Default_Data_For_Path_Tagged"
-        ]
-    }
-];
-```
-
-> This config introduces a new concept. Note the _'Instagram Root'_ config object has no paths. It defines a studio and then children. This means all child config object of this will recieve the Studio _'Instagram'_ (it will overwrite any child config object studio definitions if different). You may also specify Performers and Tags in this way, those will be appended to child config objects definitions. See the _'Celebrities_' config object is used in a similar way to add the tag _'PERFORMER - Celebrity_' to its underlying children (which also recieve the _Instagram_ studio as it is their ancestor). It saves you from having to add the tag to each config object seperately and allows for more logical config groupings to be created. 
-
-> If you also add a **_'paths'_** value to _'Instagram Root'_, then the data specified on _'Instagram Root'_ config object will be applied to files in that path as well. Data from children will not be carried over. For example, _'PornHub Root'_ applies studio PornHub to all files in **_"C:\\Users\\UserName\\Desktop\\Pornhub"_**, and has children objects with more specific config. Instagram Root does not have such a paths specification. So a file in path **_"C:\\Users\\UserName\\Desktop\\Pornhub\\SweetBunny"_** will have Studio PornHub added while a file in **_"C:\\Users\\UserName\\Desktop\\Instagram\\Kylie Jenner"_** will not have Studio Instagram added.
-
-> So say a file is scanned that has file path **_"C:\\Users\\UserName\\Desktop\\Instagram\\alexisfawx\\video1.mp4"_**. The data added will be:
-<br /> **Studio:** _Instagram_ - because the "Alexis Fawx" Config object is a descendant of the Instagram config object, and the scanned file matches "Alexis Fawx" Config object paths.
-<br /> **Tag:** _ORGANIZED - Unorganized_ - because the scanned file matches "Default Tag - Matches all scanned files" Config object paths.
-<br /> **Tag:** _PERFORMER - Pornstar_ - because the "Alexis Fawx" Config object is a child of the Pornstars config object, and the scanned file matches "Alexis Fawx" Config object paths.
-<br /> **Tag:** _PERFORMER - Caucasian_ - beacause the scanned file matches "Alexis Fawx" Config object paths.
-<br /> **Tag:** _PERFORMER - Fake Tits_ - beacause the scanned file matches "Alexis Fawx" Config object paths.
-<br /> **Performer:** _Alexis Fawx_ - beacause the scanned file matches "Alexis Fawx" Config object paths.
-<br />
-
-```
-var jsonData = [
-	{
-		"name": "Default Tag - Matches all scanned files",
-		"paths": [
-			""
-		],
-		"tags": [
-			"ORGANIZED - Unorganized"
-		]
-	},
-    	{
-		"name": "Instagram Root",
-        	"studio": "Instagram",
-		"children": [
-			{
-				"name": "Celebrities",
-				"tags": [
-					"PERFORMER - Celebrity"
-				],
-				"children": [
-					{
-						"name": "Kim Kardashian",
-						"paths": [
-							"C:\\Users\\UserName\\Desktop\\Instagram\\kimkardashian"
-						],
-						"performers": [
-							"Kim Kardashian"
-						],
-						"tags": [
-							"PERFORMER - Armenian",
-							"PERFORMER - Big Ass"
-						]
-					},
-					{
-						"name": "Katy Perry",
-						"paths": [
-							"C:\\Users\\UserName\\Desktop\\Instagram\\katyperry"
-						],
-						"performers": [
-							"Katy Perry"
-						],
-						"tags": [
-							"PERFORMER - Caucasian,
-							"PERFORMER - Big Tits"
-						]
-					}
-				]
-			},
-			{
-				"name": "Pornstars",
-				"tags": [
-					"PERFORMER - Pornstar
-				],
-				"children": [
-					{
-						"name": "Alexis Fawx",
-						"paths": [
-							"C:\\Users\\UserName\\Desktop\\Instagram\\alexisfawx"
-						],
-						"performers": [
-							"Alexis Fawx"
-						],
-						"tags": [
-							"PERFORMER - Caucasian",
-							"PERFORMER - Fake Tits"
-						]
-					}
-				]
-			}
-		]
-	},
-	{
-		"name": "PornHub Root",
-		"paths": [
-			"C:\\Users\\UserName\\Desktop\\PornHub"
-		]
-		"studio": "PornHub",
-		"children": [
-			(etc...)
-		]
-	}
-];
-```
diff --git a/plugins/defaultDataForPath/defaultDataForPath.js b/plugins/defaultDataForPath/defaultDataForPath.js
deleted file mode 100644
index 27f79454..00000000
--- a/plugins/defaultDataForPath/defaultDataForPath.js
+++ /dev/null
@@ -1,450 +0,0 @@
-var jsonData = [
-    {
-        "name": "OPTIONAL NAME - NOT USED IN SCRIPT",
-        "paths": [
-            "C:\\Users\\UserName\\Desktop\\NOTPORN\\Brazzers",
-            "D:\\SecretStorage\\Porn\\Brazzers"
-        ],
-        "studio": "Brazzers",
-        "tags": [
-            "Default_Data_For_Path_Tagged"
-        ]
-    }
-];
-
-function ok() {
-    return {
-        output: "ok"
-    };
-}
-
-function main() {
-    var hookContext = input.Args.hookContext;
-    var type = hookContext.type;
-    var ID = hookContext.ID;
-
-    if (!type || !ID) {
-        // just return
-        return ok();
-    }
-
-    var itemPath;
-    var name = "";
-    if (type === 'Scene.Create.Post') {
-        itemPath = getScenePath(ID);
-        name = "scene"
-    } else if (type === 'Gallery.Create.Post') {
-        itemPath = getGalleryPath(ID);
-        name = "gallery"
-    } else if(type === 'Image.Create.Post') {
-        itemPath = getImagePath(ID);
-        name = "image"
-    }
-
-    var defaultData = getDefaultData(itemPath)
-
-    // create tags
-    var defaultTags = [];
-    for(var p=0; p<defaultData.length; p++) {
-        var tags = defaultData[p].tags;
-        if(tags) {
-            for(var t=0; t<tags.length; t++) {
-                var tag = tags[t]
-                if(stringNotAlreadyPresent(tag, defaultTags))
-                    defaultTags.push(tag)
-            }
-        }
-    }
-
-    // create studio
-    var addStudio = false;
-    var defaultStudioId = null;
-    var defaultStudio;
-    for(var p=0; p<defaultData.length; p++) {
-        var studio = defaultData[p].studio;
-        if(studio) {
-            var studioId = getStudioId(studio)
-            if(studioId) {
-                defaultStudioId = studioId;
-                addStudio = true;
-                defaultStudio = studio;
-            }
-        }       
-    }
-
-    // create performers
-    var defaultPerformers = [];
-    for(var p=0; p<defaultData.length; p++) {
-        var performers = defaultData[p].performers;
-        if(performers) {
-            for(var t=0; t<performers.length; t++) {
-                var performer = performers[t];
-                if(stringNotAlreadyPresent(performer, defaultPerformers))
-                    defaultPerformers.push(performer)
-            }
-        }
-    }
-
-    // convert tags to tagIds
-    var addTags = false;
-    var defaultTagIds = [];
-    if(defaultTags) {
-        for(var i=defaultTags.length-1; i>=0; i--) {
-            var tagId = getTagId(defaultTags[i])
-            tagId ? defaultTagIds.push(tagId) : defaultTags.pop();
-        }
-        if(defaultTagIds && defaultTagIds.length != 0) {
-            addTags = true;
-        }
-    }
-
-    // convert performers to performerIds
-    var addPerformers = false;
-    var defaultPerformerIds = [];
-    if(defaultPerformers) {
-        for(var i=defaultPerformers.length-1; i>=0; i--) {
-            var tagId = getPerformerId(defaultPerformers[i])
-            tagId ? defaultPerformerIds.push(tagId) : defaultPerformers.pop();
-        }
-        if(defaultPerformerIds && defaultPerformerIds.length != 0) {
-            addPerformers = true;
-        }
-    }
-
-
-    // Apply all and log
-    var tags = addTags ? defaultTagIds : null;
-    var studio = addStudio ? defaultStudioId : null;
-    var performers = addPerformers ? defaultPerformerIds : null;
-
-    if (type === 'Scene.Create.Post') {
-        setSceneData(ID, tags, studio, performers)
-    } else if (type === 'Gallery.Create.Post') {
-        setGalleryData(ID, tags, studio, performers)
-    } else if(type === 'Image.Create.Post') {
-        setImageData(ID, tags, studio, performers)
-    }
-    
-
-    for(var o=0;o<defaultTags.length;o++) {
-       log.Info("[DefaultDataForPath]: Added tag " + defaultTags[o] + " to " + name + " " + ID);
-    }
-    for(var o=0;o<defaultPerformers.length;o++) {
-        log.Info("[DefaultDataForPath]: Added performer " + defaultPerformers[o] + " to " + name + " " + ID);
-     }
-    addStudio ? log.Info("[DefaultDataForPath]: Added studio " + defaultStudio + " to " + name + " " + ID) : "";
-    
-}
-
-function getScenePath(ID) {
-    var query = "\
-query findScene($id: ID) {\
-    findScene(id: $id) {\
-        path\
-    }\
-}";
-
-    var variables = {
-        id: ID
-    };
-
-    var result = gql.Do(query, variables);
-    var findScene = result.findScene;
-    if (!findScene) {
-        return null;
-    }
-
-    var path = findScene.path;
-    return path;
-}
-
-function getImagePath(ID) {
-    var query = "\
-query findImage($id: ID) {\
-    findImage(id: $id) {\
-        path\
-    }\
-}";
-
-    var variables = {
-        id: ID
-    };
-
-    var result = gql.Do(query, variables);
-    var findImage = result.findImage;
-    if (!findImage) {
-        return null;
-    }
-
-    var path = findImage.path;
-    return path;
-}
-
-function getGalleryPath(ID) {
-    var query = "\
-query findGallery($id: ID) {\
-    findGallery(id: $id) {\
-        path\
-    }\
-}";
-
-    var variables = {
-        id: ID
-    };
-
-    var result = gql.Do(query, variables);
-    var findGallery = result.findGallery;
-    if (!findGallery) {
-        return null;
-    }
-
-    var path = findGallery.path;
-    return path;
-}
-
-function getTagId(tagName) {
-    var query = "\
-    query findTagId($filter: FindFilterType!) {\
-        findTags(filter: $filter) {\
-            tags {\
-                id\
-            }\
-        }\
-    }";
-
-    var variables = {
-        filter: {
-            q: tagName
-        }
-    };
-
-    result = gql.Do(query, variables)
-    if(result.findTags.tags[0]) {
-        return result.findTags.tags[0].id;
-    }
-    else {
-        log.Error("TAG " + tagName + " DOES NOT EXIST IN STASH!")
-        return null;
-    }
-}
-
-function getPerformerId(performerName) {
-    var query = "\
-    query findPerformerId($filter: FindFilterType!) {\
-        findPerformers(filter: $filter) {\
-            performers {\
-                id\
-            }\
-        }\
-    }";
-
-    var variables = {
-        filter: {
-            q: performerName
-        }
-    };
-
-    result = gql.Do(query, variables)
-    if(result.findPerformers.performers[0]) {
-        return result.findPerformers.performers[0].id;
-    }
-    else {
-        log.Error("PERFORMER " + performerName + " DOES NOT EXIST IN STASH!")
-        return null;
-    }
-}
-
-function getStudioId(studioName) {
-    var query = "\
-    query findStudioId($filter: FindFilterType!) {\
-        findStudios(filter: $filter) {\
-            studios {\
-                id\
-            }\
-        }\
-    }";
-
-    var variables = {
-        filter: {
-            q: studioName
-        }
-    };
-
-    result = gql.Do(query, variables)
-    if(result.findStudios.studios[0]) {
-        return result.findStudios.studios[0].id
-    }
-    else {
-        log.Error("STUDIO " + studioName + " DOES NOT EXIST IN STASH!")
-        return null;
-    }
-}
-
-function stringNotAlreadyPresent(text, itemArray) {
-    for(var i=0;i < itemArray.length; i++) {
-        if(itemArray[i] === text) {
-            return false;
-        }
-    }
-    return true;
-}
-
-function addAllData(obj, lowerItemPath, defaultData, pTags, pPerformers, pStudio) {
-    if(obj) {
-        if(obj.paths) {
-            var paths = obj.paths;
-            if(containsPath(paths, lowerItemPath)) {
-                // inject data from parent if avail
-                if(pTags) {
-			if(!obj.tags) {
-				obj.tags = [];	
-			}
-                    obj.tags = obj.tags.concat(pTags)
-                }
-                if(pPerformers) {
-			if(!obj.performers) {
-				obj.performers = [];	
-			}
-                    obj.performers = obj.performers.concat(pPerformers)
-                }
-                if(pStudio) {
-                    obj.studio = pStudio
-                }
-                defaultData.push(obj)
-            }
-        }
-        else {
-            // add defaults to children
-            if(obj.tags) {
-                if(!pTags) {
-                    pTags = obj.tags;
-                }
-                else {
-                    pTags = pTags.concat(obj.tags)
-                }  
-            }
-            if(obj.performers) {
-                if(!pPerformers) {
-                    pPerformers = obj.performers
-                }
-                else {
-                    pPerformers = pPerformers.concat(obj.performers)
-                }
-            }
-            if(obj.studio) {
-                pStudio = obj.studio;
-            }
-        }
-        if(obj.children) {
-            for(var o=0;o<obj.children.length;o++) {
-                defaultData = addAllData(obj.children[o], lowerItemPath, defaultData, pTags, pPerformers, pStudio)
-            }
-        }
-    }
-    return defaultData
-}
-
-function getDefaultData(itemPath) {
-    var defaultData = [];
-    var lowerItemPath = itemPath.toLowerCase();
-    for(var i=0;i<jsonData.length;i++) {
-        var obj = jsonData[i];
-        defaultData = addAllData(obj, lowerItemPath, defaultData, null, null, null)
-    }
-
-    return defaultData;
-}
-
-function containsPath(paths, inputPath) {
-    for(var p=0;p<paths.length;p++) {
-        var path = paths[p].toLowerCase() + '';
-        if(stringContains(inputPath, path)) {
-            log.Info("[DefaultDataForPath]: " + inputPath + " MATCH " + path)
-            return true;
-        }
-    }
-    return false;
-}
-
-function stringContains(value, searchFor)
-{
-	var v = (value || '').toLowerCase();
-	var v2 = searchFor;
-	if (v2) {
-		v2 = v2.toLowerCase();
-	}
-	return v.indexOf(v2) > -1;
-}
-
-
-function containsElem(items, elem) {
-    for(var i=0;i<items.length;i++) {
-        var item = items[i].toLowerCase();
-        if(item.equals(elem)) {
-            return true;
-        }
-    }
-    return false;
-}
-
-function setSceneData(sceneID, tagIDs, studioID, performerIds) {
-    var mutation = "\
-mutation sceneUpdate($input: SceneUpdateInput!) {\
-  sceneUpdate(input: $input) {\
-    id\
-  }\
-}";
-
-    var variables = {
-        input: {
-            id: sceneID,
-            tag_ids: tagIDs,
-            studio_id: studioID,
-            performer_ids: performerIds
-        }
-    };
-
-    gql.Do(mutation, variables);
-}
-
-function setImageData(sceneID, tagIDs, studioID, performerIds) {
-    var mutation = "\
-mutation imageUpdate($input: ImageUpdateInput!) {\
-    imageUpdate(input: $input) {\
-    id\
-  }\
-}";
-
-    var variables = {
-        input: {
-            id: sceneID,
-            tag_ids: tagIDs,
-            studio_id: studioID,
-            performer_ids: performerIds
-        }
-    };
-
-    gql.Do(mutation, variables);
-}
-
-function setGalleryData(sceneID, tagIDs, studioID, performerIds) {
-    var mutation = "\
-mutation galleryUpdate($input: GalleryUpdateInput!) {\
-    galleryUpdate(input: $input) {\
-    id\
-  }\
-}";
-
-    var variables = {
-        input: {
-            id: sceneID,
-            tag_ids: tagIDs,
-            studio_id: studioID,
-            performer_ids: performerIds
-        }
-    };
-
-    gql.Do(mutation, variables);
-}
-
-main();
diff --git a/plugins/defaultDataForPath/defaultDataForPath.yml b/plugins/defaultDataForPath/defaultDataForPath.yml
deleted file mode 100644
index da88460b..00000000
--- a/plugins/defaultDataForPath/defaultDataForPath.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-# example plugin config
-name: Default Data For Path
-description: Adds configured Tags, Performers and/or Studio to all newly scanned Scenes, Images and Galleries.
-url: https://github.com/stashapp/CommunityScripts
-version: 1.1
-exec:
-  - defaultDataForPath.js
-interface: js
-hooks:
-  - name: Add Configured Data on Scan
-    description: Adds configured tags/performers/studio on Task->Scan creation.
-    triggeredBy: 
-      - Scene.Create.Post
-      - Gallery.Create.Post
-      - Image.Create.Post
diff --git a/plugins/dupeMarker/README.md b/plugins/dupeMarker/README.md
deleted file mode 100644
index 47d53794..00000000
--- a/plugins/dupeMarker/README.md
+++ /dev/null
@@ -1,8 +0,0 @@
-Marks duplicate markers with a tag: `[Marker: Duplicate]`
-
-Tasks -> Search for duplicate markers
-
-It will add the tag to any markers that have an **exact** match for title, time **and** primary tag.  
-It will only add to existing markers, it is up to the user to go to the tag and navigate to the scene where the duplicates will be highlighted with the tag.
-
-(it's technically a Dupe Marker Marker)
\ No newline at end of file
diff --git a/plugins/dupeMarker/dupeMarker.py b/plugins/dupeMarker/dupeMarker.py
deleted file mode 100644
index d90c6720..00000000
--- a/plugins/dupeMarker/dupeMarker.py
+++ /dev/null
@@ -1,69 +0,0 @@
-import json
-import sys
-import re
-import datetime as dt
-import stashapi.log as log
-from stashapi.tools import human_bytes
-from stashapi.stash_types import PhashDistance
-from stashapi.stashapp import StashInterface
-
-FRAGMENT = json.loads(sys.stdin.read())
-MODE = FRAGMENT['args']['mode']
-stash = StashInterface(FRAGMENT["server_connection"])
-dupe_marker_tag = stash.find_tag('[Marker: Duplicate]', create=True).get("id")
-
-def findScenesWithMarkers():
-  totalDupes = 0
-  scenes = stash.find_scenes(f={"has_markers": "true"},fragment="id")
-  for scene in scenes:
-    totalDupes += checkScene(scene)
-  log.info("Found %d duplicate markers across %d scenes" % (totalDupes, len(scenes)))
-
-def addMarkerTag(marker):
-  query = """
-      mutation SceneMarkerUpdate($input:SceneMarkerUpdateInput!) {
-          sceneMarkerUpdate(input: $input) {
-              id
-          }
-      }
-  """
-  oldTags = [tag["id"] for tag in marker["tags"]]
-  if dupe_marker_tag in oldTags:
-    return
-  oldTags.append(dupe_marker_tag)
-  newMarker = {
-    "id": marker["id"],
-    "tag_ids": oldTags
-  }
-  stash._callGraphQL(query, {"input": newMarker })
-  #stash.update_scene_marker(newMarker, "id")
-
-def checkScene(scene):
-  seen = set()
-  dupes = []
-  markers = stash.find_scene_markers(scene['id'])
-  # find duplicate pairs
-  for marker in markers:
-    sortidx = ";".join([
-      str(marker["title"]),
-      str(marker["seconds"]),
-      str(marker["primary_tag"]["id"])
-    ])
-    if sortidx not in seen:
-      seen.add(sortidx)
-    else:
-      dupes.append(marker)
-  # add tag
-  if dupes:
-    log.debug("Found %d duplicate markers in scene %s" % (len(dupes), scene['id']))
-    for dupe in dupes:
-      addMarkerTag(dupe)
-  return len(dupes)
-
-def main():
-  if MODE == "search":
-    findScenesWithMarkers()
-  log.exit("Plugin exited normally.")
-
-if __name__ == '__main__':
-  main()
\ No newline at end of file
diff --git a/plugins/dupeMarker/dupeMarker.yml b/plugins/dupeMarker/dupeMarker.yml
deleted file mode 100644
index d043b972..00000000
--- a/plugins/dupeMarker/dupeMarker.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-name: Dupe Marker Detector
-description: Finds and marks duplicate markers
-version: 0.1
-url: https://github.com/stashapp/CommunityScripts/
-exec:
-  - python
-  - "{pluginDir}/dupeMarker.py"
-interface: raw
-tasks:
-  - name: 'Search'
-    description: Search for duplicate markers
-    defaultArgs:
-      mode: search
\ No newline at end of file
diff --git a/plugins/dupeMarker/requirements.txt b/plugins/dupeMarker/requirements.txt
deleted file mode 100644
index 5bda5826..00000000
--- a/plugins/dupeMarker/requirements.txt
+++ /dev/null
@@ -1 +0,0 @@
-stashapp-tools
\ No newline at end of file
diff --git a/plugins/filenameParser/filenameParser.js b/plugins/filenameParser/filenameParser.js
deleted file mode 100644
index c6e94b50..00000000
--- a/plugins/filenameParser/filenameParser.js
+++ /dev/null
@@ -1,398 +0,0 @@
-function ok() {
-    return {
-        output: "ok"
-    };
-}
-
-function main() {
-    var hookContext = input.Args.hookContext;
-    var type = hookContext.type;
-    var ID = hookContext.ID;
-
-    if (!ID) {
-        return ok();
-    }
-
-    var filenameFetcher;
-    var saver;
-    if (type === 'Scene.Create.Post') {
-        filenameFetcher = getSceneFilename;
-        saver = updateScene;
-    } else if (type === 'Gallery.Create.Post') {
-        filenameFetcher = getGalleryFilename;
-        saver = updateGallery;
-    } else {
-        return ok();
-    }
-
-    var filename = filenameFetcher(ID);
-    if (!filename) {
-        return ok();
-    }
-
-    filename = cleanFilename(filename);
-    var parseResult = parseFilename(filename);
-
-    saver(ID, parseResult);
-
-    return ok();
-}
-
-function getSceneFilename(sceneID) {
-    var query = "\
-query findScene($id: ID) {\
-    findScene(id: $id) {\
-        path\
-    }\
-}";
-
-    var variables = {
-        id: sceneID
-    };
-
-    var result = gql.Do(query, variables);
-    var findScene = result.findScene;
-    if (!findScene) {
-        return null;
-    }
-
-    var path = findScene.path;
-    return path.substring(path.lastIndexOf('/') + 1);
-}
-
-function updateScene(sceneID, parseResult) {
-    var query = "\
-mutation SceneUpdate($input: SceneUpdateInput!) {\
-    sceneUpdate(input: $input) {\
-        id\
-    }\
-}";
-
-    var variables = {
-        input: parseResult
-    };
-
-    variables.input.id = sceneID;
-
-    gql.Do(query, variables);
-}
-
-function getGalleryFilename(galleryID) {
-    var query = "\
-query findGallery($id: ID!) {\
-    findGallery(id: $id) {\
-        path\
-    }\
-}";
-
-    var variables = {
-        id: galleryID
-    };
-
-    var result = gql.Do(query, variables);
-    var findGallery = result.findGallery;
-    if (!findGallery) {
-        return null;
-    }
-
-    var path = findGallery.path;
-    return path.substring(path.lastIndexOf('/') + 1);
-}
-
-function updateGallery(galleryID, parseResult) {
-    var query = "\
-mutation GalleryUpdate($input: GalleryUpdateInput!) {\
-    galleryUpdate(input: $input) {\
-        id\
-    }\
-}";
-
-    var variables = {
-        input: parseResult
-    };
-
-    variables.input.id = galleryID;
-
-    gql.Do(query, variables);
-}
-
-function matchNames(parts, name, aliases) {
-    var names = [name].concat(aliases);
-
-    var partRegexes = [];
-
-    for (var i = 0; i < parts.length; i++) {
-        partRegexes[i] = new RegExp('^' + parts[i].toLowerCase() + '[. \\-_]*');
-    }
-
-    var cleanRegex = /[. \-_]/g;
-    var longestMatch = 0;
-    for (var i = 0; i < names.length; i++) {
-        var name = names[i].replace(cleanRegex, '').toLowerCase();
-        for (var j = 0; j < partRegexes.length; j++) {
-            if (!partRegexes[j].test(name)) {
-                break;
-            }
-
-            name = name.replace(partRegexes[j], '');
-
-            if (name.length === 0) {
-                if (j + 1 > longestMatch) {
-                    longestMatch = j + 1;
-                }
-            }
-        }
-    }
-
-    return longestMatch;
-}
-
-function cleanFilename(name) {
-    name = name
-        // remove imageset-...[rarbg]
-        .replace(/imageset-[\w\d]+\[rarbg]/i, '')
-        // replace [...] with just ...
-        .replace(/\[(.*?)]/g, '$1')
-        // replace (...) with just ...
-        .replace(/\((.*?)\)/g, '$1')
-        // replace {...} with just ...
-        .replace(/{(.*?)}/g, '$1')
-    ;
-
-    var blockList = [
-        'mp4',
-        'mov',
-        'zip',
-        'xxx',
-        '4k',
-        '4096x2160',
-        '3840x2160',
-        '2160p',
-        '1080p',
-        '1920x1080',
-        '60fps',
-        '30fps',
-        'repack',
-        'ktr',
-    ];
-    var regExp = new RegExp('(_|[^\\w\\d]|^)(' + blockList.join('|') + ')(_|[^\\w\\d]|$)', 'i');
-    while (regExp.test(name)) {
-        name = name.replace(regExp, '$1$3');
-    }
-
-    // If name starts with <...>.com remove the .com (sometimes names include studio name as site/domain)
-    name = name.replace(/^([\w\d-]+?)\.com/, '$1');
-
-    name = name
-        // Remove everything except letters and digits at the start
-        .replace(/^(_|[^\w\d])+/, '')
-        // Remove everything except letters and digits at the end
-        .replace(/(_|[^\w\d])+$/, '')
-    ;
-
-    return name;
-}
-
-function matchStudio(parts, result) {
-    var query = "\
-query findStudios($studio_filter: StudioFilterType, $filter: FindFilterType!) {\
-    findStudios(studio_filter: $studio_filter, filter: $filter) {\
-        studios {\
-            id\
-            name\
-            aliases\
-        }\
-    }\
-}";
-
-    var searchTerm = parts[0].substring(0, 2);
-    if (parts[0].substring(0, 1) === 'a') {
-        searchTerm = parts[0].substring(1, 3);
-    }
-    var variables = {
-        filter: {
-            per_page: -1,
-        },
-        studio_filter: {
-            name: {
-                modifier: "INCLUDES",
-                value: searchTerm
-            },
-            OR: {
-                aliases: {
-                    modifier: "INCLUDES",
-                    value: searchTerm
-                }
-            }
-        }
-    };
-
-    var queryResult = gql.Do(query, variables);
-    var studios = queryResult.findStudios.studios;
-    if (!studios.length && parts[0].substring(0, 1) === 'a') {
-        variables.studio_filter.name.value = variables.studio_filter.OR.aliases.value = parts[0].substring(1, 3);
-        queryResult = gql.Do(query, variables);
-        studios = queryResult.findStudios.studios;
-    }
-
-    var matchingParts = 0;
-    for (var i = 0; i < studios.length; i++) {
-        var studio = studios[i];
-        matchingParts = matchNames(parts, studio.name, studio.aliases);
-        if (matchingParts === 0) {
-            continue;
-        }
-
-        result.studio_id = studio.id;
-
-        break;
-    }
-
-    return matchingParts;
-}
-
-function matchDate(parts, result) {
-    if (
-        parts.length < 3 ||
-        !/^(\d{2}|\d{4})$/.test(parts[0]) ||
-        !/^\d{2}$/.test(parts[1]) ||
-        !/^\d{2}$/.test(parts[2])
-    ) {
-        return 0;
-    }
-
-    var year = parseInt(parts[0], 10);
-    var month = parseInt(parts[1], 10);
-    var day = parseInt(parts[2], 10);
-
-    if (year < 100) {
-        year += 2000;
-    }
-
-    if (
-        year < 2000 || year > 2100 ||
-        month < 1 || month > 12 ||
-        day < 1 || day > 31
-    ) {
-        return 0;
-    }
-
-    result.date = year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : day);
-
-    return 3;
-}
-
-function matchPerformers(parts, result) {
-    var query = "\
-query findPerformers($performer_filter: PerformerFilterType, $filter: FindFilterType!) {\
-    findPerformers(performer_filter: $performer_filter, filter: $filter) {\
-        performers {\
-            id\
-            name\
-            aliases\
-        }\
-    }\
-}"
-    var variables = {
-        filter: {
-            per_page: -1
-        },
-        performer_filter: {
-            name: {
-                modifier: "INCLUDES"
-            },
-            OR: {
-                aliases: {
-                    modifier: "INCLUDES"
-                }
-            }
-        }
-    };
-
-    var totalMatchingParts = 0;
-    result.performer_ids = [];
-    do {
-        variables.performer_filter.name.value = variables.performer_filter.OR.aliases.value = parts[0].substring(0, 2);
-
-        var queryResult = gql.Do(query, variables);
-        var performers = queryResult.findPerformers.performers;
-        if (!performers.length) {
-            parts.shift();
-            continue;
-        }
-
-        var maxMatchLength = 0;
-        var matches = [];
-        for (var i = 0; i < performers.length; i++) {
-            var performer = performers[i];
-            var aliases = performer.aliases ? performer.aliases.split(/\s*[,;]+\s*/) : [];
-            var matchingParts = matchNames(parts, performer.name, aliases);
-            if (matchingParts === 0) {
-                continue;
-            }
-
-            if (matchingParts > maxMatchLength) {
-                maxMatchLength = matchingParts;
-                matches = [performer.id];
-            } else if (matchingParts === maxMatchLength) {
-                matches.push(performer.id);
-            }
-        }
-
-        if (maxMatchLength === 0) {
-            break;
-        }
-
-        result.performer_ids = result.performer_ids.concat(matches);
-
-        totalMatchingParts += maxMatchLength;
-
-        parts = parts.slice(maxMatchLength);
-        while (parts.length > 0 && (parts[0].toLowerCase() === 'and' || parts[0] === '&')) {
-            parts.shift();
-            totalMatchingParts += 1;
-        }
-    } while (parts.length > 0);
-
-    return totalMatchingParts;
-}
-
-function parseFilename(name) {
-    var parts = name.split(/[. \-_,]+/);
-
-    var matchers = [
-        matchStudio,
-        matchDate,
-        matchPerformers,
-    ];
-
-    var result = {};
-    var hasMatched = false;
-    for (var matchTries = 0; matchTries < 3 && !hasMatched && parts.length; matchTries++) {
-        for (var i = 0; i < matchers.length && parts.length > 0; i++) {
-            var matchedParts = matchers[i](parts, result);
-
-            if (matchedParts > 0) {
-                hasMatched = true;
-                parts = parts.slice(matchedParts);
-            }
-        }
-
-        // If no matchers worked remove a part. Maybe the format is correct but studio isn't found? etc
-        if (!hasMatched) {
-            parts.shift();
-        }
-    }
-
-    if (hasMatched && parts.length > 0) {
-        var title = parts.join(' ');
-        // Look behind assertions are not supported, so can't use `replace(/(?<=.)([A-Z]/g, ' $1')` so instead have to do a loop. Otherwise for example 'FooABar' will become 'Foo ABar' instead of 'Foo A Bar'
-        while (/[^\s][A-Z]/.test(title)) {
-            title = title.replace(/([^\s])([A-Z])/g, '$1 $2');
-        }
-        result.title = title.trim();
-    }
-    return result;
-}
-
-main();
diff --git a/plugins/filenameParser/filenameParser.yml b/plugins/filenameParser/filenameParser.yml
deleted file mode 100644
index 2d4e47c9..00000000
--- a/plugins/filenameParser/filenameParser.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-name: Filename parser
-description: Parses filename into studio, date, performers and title
-url:
-version: 0.1
-exec:
-  - filenameParser.js
-interface: js
-hooks:
-  - name: Prepopulates data based on filename
-    description:
-    triggeredBy:
-      - Scene.Create.Post
-      - Gallery.Create.Post
diff --git a/plugins/markerTagToScene/markerTagToScene.js b/plugins/markerTagToScene/markerTagToScene.js
deleted file mode 100644
index 77ceecca..00000000
--- a/plugins/markerTagToScene/markerTagToScene.js
+++ /dev/null
@@ -1,81 +0,0 @@
-function ok() {
-    return {
-        output: "ok"
-    };
-}
-
-function main() {
-    var hookContext = input.Args.hookContext;
-    var opInput = hookContext.input;
-    var primaryTagID = opInput.primary_tag_id;
-    var sceneID = opInput.scene_id;
-
-    // we can't currently find scene markers. If it's not in the input
-    // then just return
-    if (!primaryTagID || !sceneID) {
-        // just return
-        return ok();
-    }
-
-    // get the existing scene tags
-    var sceneTags = getSceneTags(sceneID);
-    var tagIDs = [];
-    for (var i = 0; i < sceneTags.length; ++i) {
-        var tagID = sceneTags[i].id;
-        if (tagID == primaryTagID) {
-            log.Debug("primary tag already exists on scene");
-            return;
-        }
-
-        tagIDs.push(tagID);
-    }
-
-    // set the tag on the scene if not present
-    tagIDs.push(primaryTagID);
-
-    setSceneTags(sceneID, tagIDs);
-    log.Info("added primary tag " + primaryTagID + " to scene " + sceneID);
-}
-
-function getSceneTags(sceneID) {
-    var query = "\
-query findScene($id: ID) {\
-  findScene(id: $id) {\
-    tags {\
-      id\
-    }\
-  }\
-}";
-
-    var variables = {
-        id: sceneID
-    };
-
-    var result = gql.Do(query, variables);
-    var findScene = result.findScene;
-    if (findScene) {
-        return findScene.tags;
-    }
-
-    return [];
-}
-
-function setSceneTags(sceneID, tagIDs) {
-    var mutation = "\
-mutation sceneUpdate($input: SceneUpdateInput!) {\
-  sceneUpdate(input: $input) {\
-    id\
-  }\
-}";
-
-    var variables = {
-        input: {
-            id: sceneID,
-            tag_ids: tagIDs
-        }
-    };
-
-    gql.Do(mutation, variables);
-}
-
-main();
\ No newline at end of file
diff --git a/plugins/markerTagToScene/markerTagToScene.yml b/plugins/markerTagToScene/markerTagToScene.yml
deleted file mode 100644
index 2dcb10e7..00000000
--- a/plugins/markerTagToScene/markerTagToScene.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-# example plugin config
-name: Scene Marker Tags to Scene
-description: Adds primary tag of Scene Marker to the Scene on marker create/update.
-url: https://github.com/stashapp/CommunityScripts
-version: 1.0
-exec:
-  - markerTagToScene.js
-interface: js
-hooks:
-  - name: Update scene with scene marker tag
-    description: Adds primary tag of Scene Marker to the Scene on marker create/update.
-    triggeredBy: 
-      - SceneMarker.Create.Post
-      - SceneMarker.Update.Post
diff --git a/plugins/pathParser/README.md b/plugins/pathParser/README.md
deleted file mode 100644
index 1d989a48..00000000
--- a/plugins/pathParser/README.md
+++ /dev/null
@@ -1,229 +0,0 @@
-# Path Parser
-
-Updates scene info based on the file path.
-
-## Contents
-* [Hooks](#hooks)
-* [Triggers](#triggers)
-* [Rules](#rules)
-* [Patterns](#patterns)
-* [Fields](#fields)
-* [Examples](#examples)
-
-## Hooks
-
-### Run Rules on scan
-
-Updates scene info whenever a new scene is added.
-
-You can disable this hook by deleting the following section from `pathParser.yml`:
-
-```yml
-hooks:
-  - name: Run Rules on scan
-    description: Updates scene info whenever a new scene is added.
-    triggeredBy: 
-      - Scene.Create.Post
-```
-
-## Triggers
-
-### Create Tags
-
-Adds the \[Run\] and \[Test\] tags (configurable from pathParser.yml).
-
-You can remove this trigger by deleting the following section from `pathParser.yml`:
-
-```yml
-  - name: Create Tags
-    description: Create tags used by the path parser tasks.
-    defaultArgs:
-      task: createTags
-      runTag: '[Run]'
-      testTag: '[Test]'
-```
-
-### Remove Tags
-
-Removes the \[Run\] and \[Test\] tags (configurable from pathParser.yml).
-
-You can remove this trigger by deleting the following section from `pathParser.yml`:
-
-```yml
-  - name: Remove Tags
-    description: Remove tags used by the path parser tasks.
-    defaultArgs:
-      task: removeTags
-      runTag: '[Run]'
-      testTag: '[Test]'
-```
-
-### Run Rules
-
-Run rules for scenes containing the \[Run\] tag (configurable from pathParser.yml).
-
-You can remove this trigger by deleting the following section from `pathParser.yml`:
-
-```yml
-  - name: Run Rules
-    description: Run rules for scenes containing the run tag.
-    defaultArgs:
-      task: runRules
-      runTag: '[Run]'
-```
-
-### Test Rules
-
-Test rules for scenes containing the \[Test\] tag (configurable from pathParser.yml).
-
-You can remove this trigger by deleting the following section from `pathParser.yml`:
-
-```yml
-  - name: Test Rules
-    description: Test rules for scenes containing the test tag.
-    defaultArgs:
-      task: testRules
-      testTag: '[Test]'
-```
-
-## Rules
-
-A single rule must have a name, pattern, and fields:
-
-```jsonc
-{
-  name: 'Your Rule',
-
-  // This pattern would match a scene with the path: folder/folder/file.mp4
-  pattern: [
-    'folder',
-    'folder',
-    'file'
-  ],
-
-  // The matched scene would update it's title and studio
-  fields: {
-    title: 'Scene Title',
-    studio: 'Studio'
-  }
-}
-```
-
-## Patterns
-
-Each entry in pattern will match a folder or the filename (without extension).
-
-Patterns behave differently depending on the type:
-
-| Type     | Format                             | Description                                |
-|:---------|:-----------------------------------|:-------------------------------------------|
-| null     | `null`                             | Matches any value                          |
-| String   | `'string'`                         | Matches a specific value exactly           |
-| RegExp   | `/regex/`                          | Match using a regex<sup>1</sup>            |
-| Array    | `['string1', 'string2', /regex/]`  | Match any one of the sub-patterns          |
-| Function | `function (path) { return path; }` | Match if function returns a non-null value |
-
-1. Parenthesis matches in the regex are able to be used in [field](#fields) replacements.
-
-## Fields
-
-The first matching rule will update the scene with the fields indicated:
-
-| Field       | Format                            |
-| :-----------|:----------------------------------|
-| title       | `'New Title'`                     |
-| studio      | `'Studio Name'`                   |
-| movie_title | `'Movie Name'`                    |
-| scene_index | `'1'`                             |
-| performers  | `'Performer 1, Performer 2, ...'` |
-| tags        | `'Tag 1, Tag 2, ...'`             |
-
-Matched patterns can be inserted into any field by referencing their indexed value ([see examples](#examples) below).
-
-## Examples
-
-### Specific studio folders with scenes
-
-```js
-{
-  name: 'Studio/Scene',
-  pattern: [
-    ['Specific Studio', 'Another Studio'], // A specific studio name
-    null // Any filename
-  ],
-  fields: {
-    title: '#1', // 1 refers to the second pattern (filename)
-    studio: '#0' // 0 refers to the first pattern (folder)
-  }
-}
-```
-
-Input: `X:\DCE\Black Adam.mp4`
-
-Output:
-
-0. DCE
-1. Black Adam
-
-### Studio with movie sub-folder and scenes
-
-```js
-{
-  name: 'Studio/Movie (YEAR)/Scene - Scene #',
-  pattern: [
-    null, // Any studio name
-    /(.+) \(\d{4}\)/, // A sub-folder with 'Movie Title (2022)'
-    /(.+) - \w+ ({d})/, // A filename with 'Scene Title - Scene 1'
-  ],
-  fields: {
-    title: '#2',
-    studio: '#0',
-    movie_title: '#1',
-    scene_index: '#3'
-  }
-}
-```
-
-Input: `X:\HBO\House of the Dragon (2022)\House of the Dragon - Episode 1.mp4`
-
-Output:
-
-0. HBO
-1. House of the Dragon
-2. House of the Dragon
-3. 1
-
-### Filename with performers using function
-
-```js
-
-{
-  name: 'Studio/Scene.Performers.S##E##',
-  pattern: [
-    null, // Any studio name
-    function (path) {
-      var parts = path.split('.');
-      var performers = parts[1].split('&').map(function (performer) { return performer.trim() }).join(',');
-      var series = /S(\d{2})E(\d{2})/.exec(parts[2]);
-      return [parts[0], performers, parseInt(series[1]), parseInt(series[2])];
-    }
-  ],
-  fields: {
-    title: '#1',
-    studio: '#0',
-    performers: '#2',
-    movie_title: '#1 - Season #3',
-    scene_index: '#4'
-  }
-}
-```
-
-Input: `X:\Prime\The Boys.Karl Urban & Jack Quaid.S06E09.mp4`
-
-Output:
-
-0. Prime
-1. The Boys
-2. Karl Urban,Jack Quaid
-3. 6
-4. 9
\ No newline at end of file
diff --git a/plugins/pathParser/pathParser.js b/plugins/pathParser/pathParser.js
deleted file mode 100644
index bdef3498..00000000
--- a/plugins/pathParser/pathParser.js
+++ /dev/null
@@ -1,748 +0,0 @@
-// Common Patterns
-var patterns = {
-  movieTitleAndYear: /(.+) \(\d{4}\)/,
-  sceneTitleAndPerformers: /(.+) - ([A-zÀ-ú, ]+)/
-}
-
-var rules = [
-  {
-    name: 'Rule 1',
-    pattern: [
-      'Specific Studio',
-      null,
-      null
-    ],
-    fields: {
-      studio: '#0',
-      title: '#2',
-    }
-  },
-  {
-    name: 'Rule 2',
-    pattern: [
-      ['One Studio', 'Another Studio'],
-      patterns.movieTitleAndYear,
-      patterns.sceneTitleAndPerformers
-    ],
-    fields: {
-      title: '#2',
-      studio: '#0',
-      performers: '#3'
-    }
-  },
-];
-
-/* ----------------------------------------------------------------------------
-// DO NOT EDIT BELOW!
----------------------------------------------------------------------------- */
-function main()
-{
-  try
-  {
-    switch (getTask(input.Args))
-    {
-      case 'createTags':
-        var runTag = getArg(input.Args, 'runTag');
-        var testTag = getArg(input.Args, 'testTag');
-        createTags([runTag, testTag]);
-        break;
-
-      case 'removeTags':
-        var runTag = getArg(input.Args, 'runTag');
-        var testTag = getArg(input.Args, 'testTag');
-        removeTags([runTag, testTag]);
-        break;
-
-      case 'runRules':
-        var runTag = getArg(input.Args, 'runTag');
-        initBasePaths();
-        runRules(runTag);
-        break;
-
-      case 'testRules':
-        DEBUG = true;
-        var testTag = getArg(input.Args, 'testTag');
-        initBasePaths();
-        runRules(testTag);
-        break;
-
-      case 'scene':
-        var id = getId(input.Args);
-        initBasePaths();
-        matchRuleWithSceneId(id, applyRule);
-        break;
-
-      case 'image':
-        var id = getId(input.Args);
-        initBasePaths();
-        break;
-
-      default:
-        throw 'Unsupported task';
-    }
-  }
-  catch (e)
-  {
-    return { Output: 'error', Error: e };
-  }
-
-  return { Output: 'ok' };
-}
-
-// Get an input arg
-function getArg(inputArgs, arg)
-{
-  if (inputArgs.hasOwnProperty(arg))
-  {
-    return inputArgs[arg];
-  }
-
-  throw 'Input is missing ' + arg;
-}
-
-// Determine task based on input args
-function getTask(inputArgs)
-{
-  if (inputArgs.hasOwnProperty('task'))
-  {
-    return inputArgs.task;
-  }
-  
-  if (!inputArgs.hasOwnProperty('hookContext'))
-  {
-    return;
-  }
-
-  switch (inputArgs.hookContext.type)
-  {
-    case 'Scene.Create.Post':
-      return 'scene';
-    
-    case 'Image.Create.Post':
-      return 'image';
-  }
-}
-
-// Get stash paths from configuration
-function initBasePaths()
-{
-  var query ='\
-  query Query {\
-    configuration {\
-      general {\
-        stashes {\
-          path\
-        }\
-      }\
-    }\
-  }';
-
-  var result = gql.Do(query);
-  if (!result.configuration)
-  {
-    throw 'Unable to get library paths';
-  }
-
-  BASE_PATHS = result.configuration.general.stashes.map(function (stash)
-  {
-    return stash.path;
-  });
-
-  if (BASE_PATHS == null || BASE_PATHS.length == 0)
-  {
-    throw 'Unable to get library paths';
-  }
-}
-
-// Create tag if it does not already exist
-function createTags(tags)
-{
-  var query ='\
-  mutation TagCreate($input: TagCreateInput!) {\
-    tagCreate(input: $input) {\
-      id\
-    }\
-  }';
-
-  tags.forEach(function (tag)
-  {
-    if (tryGetTag(tag) !== null)
-    {
-      return;
-    }
-
-    var variables = {
-      input: {
-        name: tag
-      }
-    };
-
-    var result = gql.Do(query, variables);
-    if (!result.tagCreate)
-    {
-      throw 'Could not create tag ' + tag;
-    }
-  });
-}
-
-// Remove tags if it already exists
-function removeTags(tags)
-{
-  tags.forEach(function (tag)
-  {
-    var tagId = tryGetTag(tag);
-    if (tagId === null)
-    {
-      return;
-    }
-
-    var query = '\
-    mutation TagsDestroy($ids: [ID!]!) {\
-      tagsDestroy(ids: $ids)\
-    }';
-
-    var variables = {
-      ids: [ tagId ]
-    };
-
-    var result = gql.Do(query, variables);
-    if (!result.tagsDestroy)
-    {
-      throw 'Unable to remove tag ' + tag;
-    }
-  });
-}
-
-// Run rules for scenes containing tag
-function runRules(tag)
-{
-  var tagId = tryGetTag(tag);
-  if (tagId === null)
-  {
-    throw 'Tag ' + tag + ' does not exist';
-  }
-
-  var query = '\
-  query FindScenes($sceneFilter: SceneFilterType) {\
-    findScenes(scene_filter: $sceneFilter) {\
-      scenes {\
-        id\
-      }\
-    }\
-  }';
-
-  var variables = {
-    sceneFilter: {
-      tags: {
-        value: tagId,
-        modifier: 'INCLUDES'
-      }
-    }
-  };
-
-  var result = gql.Do(query, variables);
-  if (!result.findScenes || result.findScenes.scenes.length == 0)
-  {
-    throw 'No scenes found with tag ' + tag;
-  }
-
-  result.findScenes.scenes.forEach(function (scene)
-  {
-    matchRuleWithSceneId(scene.id, applyRule);
-  });
-}
-
-// Get scene/image id from input args
-function getId(inputArgs)
-{
-  if ((id = inputArgs.hookContext.id) == null)
-  {
-    throw 'Input is missing id';
-  }
-
-  return id;
-}
-
-// Apply callback function to first matching rule for id
-function matchRuleWithSceneId(sceneId, cb)
-{
-  var query = '\
-  query FindScene($findSceneId: ID) {\
-    findScene(id: $findSceneId) {\
-      files {\
-        path\
-      }\
-    }\
-  }';
-
-  var variables = {
-    findSceneId: sceneId
-  }
-
-  var result = gql.Do(query, variables);
-  if (!result.findScene || result.findScene.files.length == 0)
-  {
-    throw 'Missing scene for id: ' + sceneId;
-  }
-
-  for (var i = 0; i < result.findScene.files.length; i++)
-  {
-    try
-    {
-      matchRuleWithPath(sceneId, result.findScene.files[i].path, cb);
-      
-      if (DEBUG && bufferedOutput !== null && bufferedOutput !== '')
-      {
-        log.Info('[PathParser] ' + bufferedOutput);
-      }
-
-      return;
-    }
-    catch (e)
-    {
-      continue;
-    }
-  }
-  
-  if (DEBUG && bufferedOutput !== null && bufferedOutput !== '')
-  {
-    log.Info('[PathParser] ' + bufferedOutput);
-  }
-
-  throw 'No rule matches id: ' + sceneId;
-}
-
-// Apply callback to first matching rule for path
-function matchRuleWithPath(sceneId, path, cb)
-{
-  // Remove base path
-  for (var i = 0; i < BASE_PATHS.length; i++)
-  {
-    if (path.slice(0, BASE_PATHS[i].length) === BASE_PATHS[i])
-    {
-      path = path.slice(BASE_PATHS[i].length);
-    }
-  }
-
-  if (DEBUG)
-  {
-    bufferedOutput = path + '\n';
-  }
-
-  // Split paths into parts
-  var parts = path.split(/[\\/]/);
-
-  // Remove extension from filename
-  parts[parts.length - 1] = parts[parts.length - 1].slice(0, parts[parts.length - 1].lastIndexOf('.'));
-
-  for (var i = 0; i < rules.length; i++)
-  {
-    var sceneData = testRule(rules[i].pattern, parts);
-    if (sceneData !== null)
-    {
-      if (DEBUG)
-      {
-        bufferedOutput += 'Rule: ' + rules[i].name + '\n';
-      }
-
-      log.Debug('[PathParser] Rule: ' + rules[i].name + '\nPath: ' + path);
-      cb(sceneId, rules[i].fields, sceneData);
-      return;
-    }
-  }
-
-  bufferedOutput += 'No matching rule!';
-  throw 'No matching rule for path: ' + path;
-}
-
-// Test single rule
-function testRule(pattern, parts)
-{
-  if (pattern.length !== parts.length)
-  {
-    return null;
-  }
-
-  var matchedParts = [];
-  for (var i = 0; i < pattern.length; i++)
-  {
-    if ((subMatches = testPattern(pattern[i], parts[i])) == null)
-    {
-      return null;
-    }
-
-    matchedParts = [].concat(matchedParts, subMatches);
-  }
-
-  return matchedParts;
-}
-
-function testPattern(pattern, part)
-{
-  // Match anything
-  if (pattern == null)
-  {
-    return [part];
-  }
-
-  // Simple match
-  if (typeof pattern === 'string')
-  {
-    if (pattern === part)
-    {
-      return [part];
-    }
-
-    return null;
-  }
-
-  // Predicate match
-  if (typeof pattern == 'function')
-  {
-    try
-    {
-      var results = pattern(part);
-      if (results !== null)
-      {
-        return results;
-      }
-    }
-    catch (e)
-    {
-      throw e;
-    }
-
-    return null;
-  }
-
-  // Array match
-  if (pattern instanceof Array)
-  {
-    for (var i = 0; i < pattern.length; i++)
-    {
-      if ((results = testPattern(pattern[i], part)) != null)
-      {
-        return results;
-      }
-    }
-
-    return null;
-  }
-
-  // RegExp match
-  if (pattern instanceof RegExp)
-  {
-    var results = pattern.exec(part);
-    if (results === null)
-    {
-      return null;
-    }
-
-    return results.slice(1);
-  }
-}
-
-// Apply rule
-function applyRule(sceneId, fields, data)
-{
-  var any = false;
-  var variables = {
-    input: {
-      id: sceneId
-    }
-  };
-
-  if (DEBUG)
-  {
-    for (var i = 0; i < data.length; i++)
-    {
-      bufferedOutput += '#' + i + ': ' + data[i] + '\n';
-    }
-  }
-
-  for (var field in fields)
-  {
-    var value = fields[field];
-    for (var i = data.length - 1; i >= 0; i--)
-    {
-      value = value.replace('#' + i, data[i]);
-    }
-
-    switch (field)
-    {
-      case 'title':
-        if (DEBUG)
-        {
-          bufferedOutput += field + ': ' + value + '\n';
-        }
-
-        variables.input['title'] = value;
-        any = true;
-        continue;
-
-      case 'studio':
-        var studioId = tryGetStudio(value);
-        if (studioId == null)
-        {
-          continue;
-        }
-
-        if (DEBUG)
-        {
-          bufferedOutput += field + ': ' + value + '\n';
-          bufferedOutput += 'studio_id: ' + studioId + '\n';
-        }
-
-        variables.input['studio_id'] = studioId;
-        any = true;
-        continue;
-
-        case 'movie_title':
-          var movie_title = value.split(' ').join('[\\W]*');
-          var movieId = tryGetMovie(movie_title);
-          if (movieId == null)
-          {
-            continue;
-          }
-
-          if (!variables.input.hasOwnProperty('movies'))
-          {
-            variables.input['movies'] = [{}];
-          }
-
-          if (DEBUG)
-          {
-            bufferedOutput += field + ': ' + value + '\n';
-            bufferedOutput += 'movie_id: ' + movieId + '\n';
-          }
-
-          variables.input['movies'][0]['movie_id'] = movieId;
-          any = true;
-          continue;
-      
-      case 'scene_index':
-        var sceneIndex = parseInt(value);
-        if (isNaN(sceneIndex))
-        {
-          continue;
-        }
-
-        if (!variables.input.hasOwnProperty('movies'))
-        {
-          variables.input['movies'] = [{}];
-        }
-
-        if (DEBUG)
-        {
-          bufferedOutput += 'scene_index: ' + sceneIndex + '\n';
-        }
-
-        variables.input['movies'][0]['scene_index'] = sceneIndex;
-        continue;
-
-      case 'performers':
-        var performers = value.split(',').map(tryGetPerformer).filter(notNull);
-        if (performers.length == 0)
-        {
-          continue;
-        }
-
-        if (DEBUG)
-        {
-          bufferedOutput += field + ': ' + value + '\n';
-          bufferedOutput += 'performer_ids: ' + performers.join(', ') + '\n';
-        }
-
-        variables.input['performer_ids'] = performers;
-        any = true;
-        continue;
-
-      case 'tags':
-        var tags = value.split(',').map(tryGetTag).filter(notNull);
-        if (tags.length == 0)
-        {
-          continue;
-        }
-
-        if (DEBUG)
-        {
-          bufferedOutput += field + ': ' + value + '\n';
-          bufferedOutput += 'tag_ids: ' + tags.join(', ') + '\n';
-        }
-
-        variables.input['tag_ids'] = tags;
-        any = true;
-        continue;
-    }
-  }
-
-  // Test only
-  if (DEBUG)
-  {
-    if (!any)
-    {
-      bufferedOutput += 'No fields to update!\n';
-    }
-
-    return;
-  }
-
-  // Remove movies if movie_id is missing
-  if (variables.input.hasOwnProperty('movies') && !variables.input['movies'][0].hasOwnProperty('movie_id'))
-  {
-    delete variables.input['movies'];
-  }
-
-  // Apply updates
-  var query = '\
-  mutation Mutation($input: SceneUpdateInput!) {\
-    sceneUpdate(input: $input) {\
-      id\
-    }\
-  }';
-
-  if (!any)
-  {
-    throw 'No fields to update for scene ' + sceneId;
-  }
-
-  var result = gql.Do(query, variables);
-  if (!result.sceneUpdate)
-  {
-    throw 'Unable to update scene ' + sceneId;
-  }
-}
-
-// Returns true for not null elements
-function notNull(ele)
-{
-  return ele != null;
-}
-
-// Get studio id from studio name
-function tryGetStudio(studio)
-{
-  var query = '\
-  query FindStudios($studioFilter: StudioFilterType) {\
-    findStudios(studio_filter: $studioFilter) {\
-      studios {\
-        id\
-      }\
-      count\
-    }\
-  }';
-
-  var variables = {
-    studioFilter: {
-      name: {
-        value: studio.trim(),
-        modifier: 'EQUALS'
-      }
-    }
-  };
-
-  var result = gql.Do(query, variables);
-  if (!result.findStudios || result.findStudios.count == 0)
-  {
-    return;
-  }
-
-  return result.findStudios.studios[0].id;
-}
-
-function tryGetMovie(movie_title)
-{
-  var query = '\
-  query FindMovies($movieFilter: MovieFilterType) {\
-    findMovies(movie_filter: $movieFilter) {\
-      movies {\
-        id\
-      }\
-      count\
-    }\
-  }';
-
-  var variables = {
-    movieFilter: {
-      name: {
-        value: movie_title.trim(),
-        modifier: 'MATCHES_REGEX'
-      }
-    }
-  };
-
-  var result = gql.Do(query, variables);
-  if (!result.findMovies || result.findMovies.count == 0)
-  {
-    return;
-  }
-
-  return result.findMovies.movies[0].id;
-}
-
-// Get performer id from performer name
-function tryGetPerformer(performer)
-{
-  var query = '\
-  query FindPerformers($performerFilter: PerformerFilterType) {\
-    findPerformers(performer_filter: $performerFilter) {\
-      performers {\
-        id\
-      }\
-      count\
-    }\
-  }';
-
-  var variables = {
-    performerFilter: {
-      name: {
-        value: performer.trim(),
-        modifier: 'EQUALS'
-      }
-    }
-  };
-
-  var result = gql.Do(query, variables);
-  if (!result.findPerformers || result.findPerformers.count == 0)
-  {
-    return;
-  }
-
-  return result.findPerformers.performers[0].id;
-}
-
-// Get tag id from tag name
-function tryGetTag(tag)
-{
-  var query ='\
-  query FindTags($tagFilter: TagFilterType) {\
-    findTags(tag_filter: $tagFilter) {\
-      tags {\
-        id\
-      }\
-      count\
-    }\
-  }';
-
-  var variables = {
-    tagFilter: {
-      name: {
-        value: tag.trim(),
-        modifier: 'EQUALS'
-      }
-    }
-  };
-
-  var result = gql.Do(query, variables);
-  if (!result.findTags || result.findTags.count == 0)
-  {
-    return;
-  }
-
-  return result.findTags.tags[0].id;
-}
-
-var DEBUG = false;
-var BASE_PATHS = [];
-var bufferedOutput = '';
-main();
\ No newline at end of file
diff --git a/plugins/pathParser/pathParser.yml b/plugins/pathParser/pathParser.yml
deleted file mode 100644
index 9ef17dc6..00000000
--- a/plugins/pathParser/pathParser.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-# example plugin config
-name: Path Parser
-description: Updates scene info based on the file path.
-version: 1.0
-exec:
-  - pathParser.js
-interface: js
-hooks:
-  - name: Run Rules on scan
-    description: Updates scene info whenever a new scene is added.
-    triggeredBy: 
-      - Scene.Create.Post
-tasks:
-  - name: Create Tags
-    description: Create tags used by the path parser tasks.
-    defaultArgs:
-      task: createTags
-      runTag: '[Run]'
-      testTag: '[Test]'
-  - name: Remove Tags
-    description: Remove tags used by the path parser tasks.
-    defaultArgs:
-      task: removeTags
-      runTag: '[Run]'
-      testTag: '[Test]'
-  - name: Run Rules
-    description: Run rules for scenes containing the run tag.
-    defaultArgs:
-      task: runRules
-      runTag: '[Run]'
-  - name: Test Rules
-    description: Test rules for scenes containing the test tag.
-    defaultArgs:
-      task: testRules
-      testTag: '[Test]'
\ No newline at end of file
diff --git a/plugins/phashDuplicateTagger/README.md b/plugins/phashDuplicateTagger/README.md
deleted file mode 100644
index 4af7b3c2..00000000
--- a/plugins/phashDuplicateTagger/README.md
+++ /dev/null
@@ -1,49 +0,0 @@
-This plugin has four functions:
-
-# PHASH Duplicate Tagger
-
-## Requirements
- * python >= 3.10.X
- * `pip install -r requirements.txt`
-
-
-## Title Syntax
-
-This plugin will change the titles of scenes that are matched as duplicates in the following format
-
-`[PDT: 0.0GB|<group_id><keep_flag>] <Scene Title>`
-
-group_id: usually the scene ID of the scene that was selected to Keep
-keep_flag: K=Keep R=remove U=Unknown
-
-
-## Tags
-various tags may be created by this plugin 
-* Keep - Applied on scenes that are determined to be the "best"
-* Remove - Applied to the scenes that determined to be the "worst"
-* Unknown - Applied to scenes where a best scene could not be determined
-* Ignore - Applied to scenes by user to ignore known duplicates
-* Reason -  These tags are applied to remove scenes, they will have a category that will match the determining factor on why a scene was chosen to be removed
-
-## Tasks
-### Tag Dupes (EXACT/HIGH/MEDIUM)
-These tasks will search for scenes with similar PHASHs within stash the closeness (distance) of the hashes to each other depends on which option you select
-
-* EXACT - Matches have a distance of 0 and should be exact matches
-* HIGH - Matches have a distance of 3 and are very similar to each other
-* MEDIUM - Matches have a distance of 6 and resemble each other
-
-### Delete Managed Tags
-remove any generated tags within stash created by the plugin, excluding the `Ignore` tag this may be something you want to retain
-
-### Scene Cleanup
-cleanup changes made to scene titles and tags back to before they were tagged
-
-### Generate Scene PHASHs
-Start a generate task within stash to generate PHASHs
-
-## Custom Compare Functions
-
-you can create custom compare functions inside config.py all current compare functions are provided custom functions must return two values when a better file is determined, the better object and a message string, optionally you can set `remove_reason` on the worse file and it will be tagged with that reason
-
-custom functions must start with "compare_" otherwise they will not be detected, make sure to add your function name to the PRIORITY list
\ No newline at end of file
diff --git a/plugins/phashDuplicateTagger/config.py b/plugins/phashDuplicateTagger/config.py
deleted file mode 100644
index f8ca6a9a..00000000
--- a/plugins/phashDuplicateTagger/config.py
+++ /dev/null
@@ -1,110 +0,0 @@
-import stashapi.log as log
-from stashapi.tools import human_bytes, human_bits
-
-PRIORITY = ['bitrate_per_pixel','resolution', 'bitrate', 'encoding', 'size', 'age']
-CODEC_PRIORITY = {'AV1':0,'H265':1,'HEVC':1,'H264':2,'MPEG4':3,'MPEG1VIDEO':3,'WMV3':4,'WMV2':5,'VC1':6,'SVQ3':7}
-
-KEEP_TAG_NAME = "[PDT: Keep]"
-REMOVE_TAG_NAME = "[PDT: Remove]"
-UNKNOWN_TAG_NAME = "[PDT: Unknown]"
-IGNORE_TAG_NAME = "[PDT: Ignore]"
-
-	
-def compare_bitrate_per_pixel(self, other):
-
-    try:
-        self_bpp = self.bitrate / (self.width * self.height * self.frame_rate)
-    except ZeroDivisionError:
-        log.warning(f'scene {self.id} has 0 in file value ({self.width}x{self.height} {self.frame_rate}fps)')
-        return
-    try:    
-        other_bpp = other.bitrate / (other.width * other.height * other.frame_rate)
-    except ZeroDivisionError:
-        log.warning(f'scene {other.id} has 0 in file value ({other.width}x{other.height} {other.frame_rate}fps)')
-        return
-
-    bpp_diff = abs(self_bpp-other_bpp)
-    if bpp_diff <= 0.01:
-        return
-    
-    if self_bpp > other_bpp:
-        better_bpp, worse_bpp = self_bpp, other_bpp
-        better, worse = self, other
-    else:
-        worse_bpp, better_bpp = self_bpp, other_bpp
-        worse, better = self, other
-    worse.remove_reason = "bitrate_per_pxl"
-    message = f'bitrate/pxl {better_bpp:.3f}bpp > {worse_bpp:.3f}bpp Δ:{bpp_diff:.3f}'
-    return better, message
-
-def compare_frame_rate(self, other):
-    if not self.frame_rate:
-        log.warning(f'scene {self.id} has no value for frame_rate')
-    if not other.frame_rate:
-        log.warning(f'scene {other.id} has no value for frame_rate')
-
-    if abs(self.frame_rate-other.frame_rate) < 5:
-        return
-    
-    if self.frame_rate > other.frame_rate:
-        better, worse = self, other
-    else:
-        worse, better = self, other
-    worse.remove_reason = "frame_rate"
-    return better, f'Better FPS {better.frame_rate} vs {worse.frame_rate}'
-
-def compare_resolution(self, other):
-    if self.height == other.height:
-        return
-    if self.height > other.height:
-        better, worse = self, other
-    else:
-        worse, better = self, other
-    worse.remove_reason = "resolution"
-    return better, f"Better Resolution {better.id}:{better.height}p > {worse.id}:{worse.height}p"
-
-def compare_bitrate(self, other):
-    if self.bitrate == other.bitrate:
-        return
-    if self.bitrate > other.bitrate:
-        better, worse = self, other
-    else:
-        worse, better = self, other
-    worse.remove_reason = "bitrate"
-    return better, f"Better Bitrate {human_bits(better.bitrate)}ps > {human_bits(worse.bitrate)}ps Δ:({human_bits(better.bitrate-other.bitrate)}ps)"
-    
-def compare_size(self, other):
-    if abs(self.size-other.size) <= 100000: # diff is <= than 0.1 Mb
-        return
-    if self.size > other.size:
-        better, worse = self, other
-    else:
-        worse, better = self, other
-    worse.remove_reason = "file_size"
-    return better, f"Better Size {human_bytes(better.size)} > {human_bytes(worse.size)} Δ:({human_bytes(better.size-worse.size)})"
-    
-def compare_age(self, other):
-    if not (self.mod_time and other.mod_time):
-        return
-    if self.mod_time == other.mod_time:
-        return
-    if self.mod_time < other.mod_time:
-        better, worse = self, other
-    else:
-        worse, better = self, other
-    worse.remove_reason = "age"
-    return better, f"Choose Oldest: Δ:{worse.mod_time-better.mod_time} | {better.id} older than {worse.id}"
-
-def compare_encoding(self, other):
-    if self.codec_priority == other.codec_priority:
-        return
-    if not (isinstance(self.codec_priority, int) and isinstance(other.codec_priority, int)):
-        return
-    
-    if self.codec_priority < other.codec_priority:
-        better, worse = self, other
-    else:
-        worse, better = self, other
-    worse.remove_reason = "video_codec"
-    return self, f"Prefer Codec {better.codec}({better.id}) over {worse.codec}({worse.id})"
-    
\ No newline at end of file
diff --git a/plugins/phashDuplicateTagger/phashDuplicateTagger.py b/plugins/phashDuplicateTagger/phashDuplicateTagger.py
deleted file mode 100644
index 494c44a9..00000000
--- a/plugins/phashDuplicateTagger/phashDuplicateTagger.py
+++ /dev/null
@@ -1,270 +0,0 @@
-import re, sys, json
-import datetime as dt
-from inspect import getmembers, isfunction
-
-try:
-    import stashapi.log as log
-    from stashapi.tools import human_bytes, human_bits
-    from stashapi.stash_types import PhashDistance
-    from stashapi.stashapp import StashInterface
-except ModuleNotFoundError:
-    print("You need to install the stashapi module. (pip install stashapp-tools)",
-     file=sys.stderr)
-
-import config
-
-FRAGMENT = json.loads(sys.stdin.read())
-MODE = FRAGMENT['args']['mode']
-stash = StashInterface(FRAGMENT["server_connection"])
-
-SLIM_SCENE_FRAGMENT = """
-id
-title
-date
-tags { id }
-files {
-	size
-	path
-	width
-	height
-	bit_rate
-	mod_time
-	duration
-	frame_rate
-	video_codec
-}
-"""
-
-def main():
-		
-	if MODE == "remove":
-		clean_scenes()
-		for tag in get_managed_tags():
-			stash.destroy_tag(tag["id"])
-
-	if MODE == "tag_exact":
-		process_duplicates(PhashDistance.EXACT)
-	if MODE == "tag_high":
-		process_duplicates(PhashDistance.HIGH)
-	if MODE == "tag_medium":
-		process_duplicates(PhashDistance.MEDIUM)
-
-	if MODE == "clean_scenes":
-		clean_scenes()
-	if MODE == "generate_phash":
-		generate_phash()
-
-
-	log.exit("Plugin exited normally.")
-
-
-def parse_timestamp(ts, format="%Y-%m-%dT%H:%M:%S%z"):
-	ts = re.sub(r'\.\d+', "", ts) #remove fractional seconds
-	return dt.datetime.strptime(ts, format)
-
-
-class StashScene:
-
-	def __init__(self, scene=None) -> None:
-		file = scene["files"][0]
-
-		self.id = int(scene['id'])
-		self.mod_time = parse_timestamp(file['mod_time'])
-		if scene.get("date"):
-			self.date = parse_timestamp(scene['date'], format="%Y-%m-%d")
-		else:
-			self.date = None
-		self.path = scene.get("path")
-		self.width = file['width']
-		self.height = file['height']
-		# File size in # of BYTES
-		self.size = int(file['size'])
-		self.frame_rate = int(file['frame_rate'])
-		self.bitrate = int(file['bit_rate'])
-		self.duration = float(file['duration'])
-		# replace any existing tagged title
-		self.title = re.sub(r'^\[Dupe: \d+[KR]\]\s+', '', scene['title'])
-		self.path = file['path']
-		self.tag_ids = [t["id"]for t in scene["tags"]]
-
-		self.remove_reason = None
-
-		self.codec = file['video_codec'].upper()
-		if self.codec in config.CODEC_PRIORITY:
-			self.codec_priority = config.CODEC_PRIORITY[self.codec]
-		else:
-			self.codec_priority = None
-			log.warning(f"could not find codec {self.codec} used in SceneID:{self.id}")
-
-	def __repr__(self) -> str:
-		return f'<StashScene ({self.id})>'
-
-	def __str__(self) -> str:
-		return f'id:{self.id}, height:{self.height}, size:{human_bytes(self.size)}, file_mod_time:{self.mod_time}, title:{self.title}'
-
-	def compare(self, other):
-		if not (isinstance(other, StashScene)):
-			raise Exception(f"can only compare to <StashScene> not <{type(other)}>")
-
-		if self.id == other.id:
-			return None, f"Matching IDs {self.id}=={other.id}"
-
-		def compare_not_found(*args, **kwargs):
-			raise Exception("comparison not found")
-		for type in config.PRIORITY:
-			try:
-				compare_function = getattr(self, f'compare_{type}', compare_not_found)
-				result =  compare_function(other)
-				if result and len(result) == 2:
-					best, msg = result
-					return best, msg
-			except Exception as e:
-				log.error(f"Issue Comparing {self.id} {other.id} using <{type}> {e}")
-		
-		return None, f"{self.id} worse than {other.id}"
-
-def process_duplicates(distance:PhashDistance=PhashDistance.EXACT):
-	
-	clean_scenes() # clean old results
-
-	ignore_tag_id = stash.find_tag(config.IGNORE_TAG_NAME, create=True).get("id")
-	duplicate_list = stash.find_duplicate_scenes(distance, fragment=SLIM_SCENE_FRAGMENT)
-
-	total = len(duplicate_list)
-	log.info(f"Found {total} sets of duplicates.")
-
-	for i, group in enumerate(duplicate_list):
-		group = [StashScene(s) for s in group]
-		filtered_group = []
-		for scene in group:
-			if ignore_tag_id in scene.tag_ids:
-				log.debug(f"Ignore {scene.id} {scene.title}")
-			else:
-				filtered_group.append(scene)
-		
-		if len(filtered_group) > 1:
-			tag_files(filtered_group)
-		
-		log.progress(i/total)
-
-def tag_files(group):
-	
-	keep_reasons = []
-	keep_scene = None
-
-	total_size = group[0].size
-	for scene in group[1:]:
-		total_size += scene.size
-		better, msg = scene.compare(group[0])
-		if better:
-			keep_scene = better
-			keep_reasons.append(msg)
-	total_size = human_bytes(total_size, round=2, prefix='G')
-
-	if not keep_scene:
-		log.info(f"could not determine better scene from {group}")
-		if config.UNKNOWN_TAG_NAME:
-			group_id = group[0].id
-			for scene in group:
-				tag_ids = [stash.find_tag(config.UNKNOWN_TAG_NAME, create=True).get("id")]
-				stash.update_scenes({
-					'ids': [scene.id],
-					'title':  f'[PDT: {total_size}|{group_id}U] {scene.title}',
-					'tag_ids': {
-						'mode': 'ADD',
-						'ids': tag_ids
-					}
-				})
-		return
-
-	log.info(f"{keep_scene.id} best of:{[s.id for s in group]} {keep_reasons}")
-
-	for scene in group:
-		if scene.id == keep_scene.id:
-			tag_ids = [stash.find_tag(config.KEEP_TAG_NAME, create=True).get("id")]
-			stash.update_scenes({
-				'ids': [scene.id],
-				'title':  f'[PDT: {total_size}|{keep_scene.id}K] {scene.title}',
-				'tag_ids': {
-					'mode': 'ADD',
-					'ids': tag_ids
-				}
-			})
-		else:
-			tag_ids = []
-			tag_ids.append(stash.find_tag(config.REMOVE_TAG_NAME, create=True).get("id"))
-			if scene.remove_reason:
-				tag_ids.append(stash.find_tag(f'[Reason: {scene.remove_reason}]', create=True).get('id'))
-			stash.update_scenes({
-				'ids': [scene.id],
-				'title':  f'[PDT: {total_size}|{keep_scene.id}R] {scene.title}',
-				'tag_ids': {
-					'mode': 'ADD',
-					'ids': tag_ids
-				}
-			})
-
-def clean_scenes():
-	scene_count, scenes = stash.find_scenes(f={
-		"title": {
-			"modifier": "MATCHES_REGEX",
-			"value": "^\\[PDT: .+?\\]"
-		}
-	},fragment="id title", get_count=True)
-
-	log.info(f"Cleaning Titles/Tags of {scene_count} Scenes ")
-	
-	# Clean scene Title
-	for i, scene in enumerate(scenes):
-		title = re.sub(r'\[PDT: .+?\]\s+', '', scene['title'])
-		stash.update_scenes({
-			'ids': [scene['id']],
-			'title': title
-		})
-		log.progress(i/scene_count)
-
-	# Remove Tags
-	for tag in get_managed_tags():
-		scene_count, scenes = stash.find_scenes(f={
-			"tags":{"value": [tag['id']],"modifier": "INCLUDES","depth": 0}
-		}, fragment="id", get_count=True)
-		if not scene_count > 0:
-			continue
-		log.info(f'removing tag {tag["name"]} from {scene_count} scenes')
-		stash.update_scenes({
-			'ids': [s["id"] for s in scenes],
-			'tag_ids': {
-				'mode': 'REMOVE',
-				'ids': [tag['id']]
-			} 
-		})
-
-def get_managed_tags(fragment="id name"):
-	tags = stash.find_tags(f={
-	"name": {
-		"value": "^\\[Reason",
-		"modifier": "MATCHES_REGEX"
-	}}, fragment=fragment)
-	tag_name_list = [
-		config.REMOVE_TAG_NAME,
-		config.KEEP_TAG_NAME,
-		config.UNKNOWN_TAG_NAME,
-		# config.IGNORE_TAG_NAME,
-	]
-	for tag_name in tag_name_list:
-		if tag := stash.find_tag(tag_name):
-			tags.append(tag)
-	return tags
-
-def generate_phash():
-	query = """mutation MetadataGenerate($input: GenerateMetadataInput!) {
-		metadataGenerate(input: $input)
-	}"""
-	variables = {"phashes", True}
-	stash._callGraphQL(query, variables)
-
-if __name__ == '__main__':
-	for name, func in getmembers(config, isfunction):
-		if re.match(r'^compare_', name):
-			setattr(StashScene, name, func)
-	main()
diff --git a/plugins/phashDuplicateTagger/phashDuplicateTagger.yml b/plugins/phashDuplicateTagger/phashDuplicateTagger.yml
deleted file mode 100644
index 13f6629d..00000000
--- a/plugins/phashDuplicateTagger/phashDuplicateTagger.yml
+++ /dev/null
@@ -1,33 +0,0 @@
-name: "PHash Duplicate Tagger"
-description: Will tag scenes based on duplicate PHashes for easier/safer removal.
-version: 0.1.3
-url: https://github.com/stashapp/CommunityScripts/tree/main/plugins/phashDuplicateTagger
-exec:
-  - python
-  - "{pluginDir}/phashDuplicateTagger.py"
-interface: raw
-tasks:
-  - name: 'Tag Dupes (EXACT)'
-    description: 'Assign duplicates tags to Exact Match (Dist 0) scenes'
-    defaultArgs:
-      mode: tag_exact
-  - name: 'Tag Dupes (HIGH)'
-    description: 'Assign duplicates tags to High Match (Dist 3) scenes'
-    defaultArgs:
-      mode: tag_high
-  - name: 'Tag Dupes (MEDIUM)'
-    description: 'Assign duplicates tags to Medium Match (Dist 6) scenes (BE CAREFUL WITH THIS LEVEL)'
-    defaultArgs:
-      mode: tag_medium
-  - name: 'Delete Managed Tags'
-    description: 'Deletes tags managed by this plugin from stash'
-    defaultArgs:
-      mode: remove
-  - name: 'Scene Cleanup'
-    description: 'Removes titles from scenes and any generated tags excluding [Dupe: Ignore]'
-    defaultArgs:
-      mode: clean_scenes
-  - name: 'Generate Scene PHASHs'
-    description: 'Generate PHASHs for all scenes where they are missing'
-    defaultArgs:
-      mode: generate_phash
diff --git a/plugins/phashDuplicateTagger/requirements.txt b/plugins/phashDuplicateTagger/requirements.txt
deleted file mode 100644
index cfcc6851..00000000
--- a/plugins/phashDuplicateTagger/requirements.txt
+++ /dev/null
@@ -1 +0,0 @@
-stashapp-tools>=0.2.33
\ No newline at end of file
diff --git a/plugins/renamerOnUpdate/README.md b/plugins/renamerOnUpdate/README.md
deleted file mode 100644
index 8eaa7c3a..00000000
--- a/plugins/renamerOnUpdate/README.md
+++ /dev/null
@@ -1,205 +0,0 @@
-# *renamerOnUpdate*
-Using metadata from your Stash to rename/move your file.
-
-## Table of Contents  
-
-- [*renamerOnUpdate*](#renameronupdate)
-	- [Table of Contents](#table-of-contents)
-- [Requirement](#requirement)
-- [Installation](#installation)
-		- [:exclamation: Make sure to configure the plugin by editing `config.py` before running it :exclamation:](#exclamation-make-sure-to-configure-the-plugin-by-editing-configpy-before-running-it-exclamation)
-- [Usage](#usage)
-- [Configuration](#configuration)
-- [Config.py explained](#configpy-explained)
-	- [Template](#template)
-	- [- You can find the list of available variables in `config.py`](#--you-can-find-the-list-of-available-variables-in-configpy)
-	- [Filename](#filename)
-		- [- Based on a Tag](#--based-on-a-tag)
-		- [- Based on a Studio](#--based-on-a-studio)
-		- [- Change filename no matter what](#--change-filename-no-matter-what)
-	- [Path](#path)
-		- [- Based on a Tag](#--based-on-a-tag-1)
-		- [- Based on a Studio](#--based-on-a-studio-1)
-		- [- Based on a Path](#--based-on-a-path)
-		- [- Change path no matter what](#--change-path-no-matter-what)
-		- [- Special Variables](#--special-variables)
-	- [Advanced](#advanced)
-		- [Groups](#groups)
-	- [Option](#option)
-		- [*p_tag_option*](#p_tag_option)
-		- [*field_replacer*](#field_replacer)
-		- [*replace_words*](#replace_words)
-		- [*removecharac_Filename*](#removecharac_filename)
-		- [*performer_limit*](#performer_limit)
-
-# Requirement
-- Stash (v0.15+)
-- Python 3.6+ (Tested on Python v3.9.1 64bit, Win10)
-- Request Module (https://pypi.org/project/requests/)
-- Tested on Windows 10/Synology/docker.
-
-# Installation
-
-- Download the whole folder '**renamerOnUpdate**' (config.py, log.py, renamerOnUpdate.py/.yml)
-- Place it in your **plugins** folder (where the `config.yml` is)
-- Reload plugins (Settings > Plugins > Reload)
-- *renamerOnUpdate* appears
-
-### :exclamation: Make sure to configure the plugin by editing `config.py` before running it :exclamation:
-
-# Usage
-
-- Everytime you update a scene, it will check/rename your file. An update can be:
-	- Saving in **Scene Edit**.
-	- Clicking the **Organized** button.
-	- Running a scan that **updates** the path.
-
-- By pressing the button in the Task menu.
-    - It will go through each of your scenes. 
-    - `:warning:` It's recommended to understand correctly how this plugin works, and use **DryRun** first.
-
-# Configuration
-
-- Read/Edit `config.py`
-	- Change template filename/path
-	- Add `log_file` path
-
-- There are multiple buttons in Task menu:
-	- Enable: (default) Enable the trigger update
-	- Disable: Disable the trigger update
-	- Dry-run: A switch to enable/disable dry-run mode
-
-- Dry-run mode:
-	- It prevents editing the file, only shows in your log.
-	- This mode can write into a file (`dryrun_renamerOnUpdate.txt`), the change that the plugin will do.
-		- You need to set a path for `log_file` in `config.py`
-		- The format will be: `scene_id|current path|new path`. (e.g. `100|C:\Temp\foo.mp4|C:\Temp\bar.mp4`)
-		- This file will be overwritten everytime the plugin is triggered.
-
-# Config.py explained
-## Template
-To modify your path/filename, you can use **variables**. These are elements that will change based on your **metadata**.
-
- - Variables are represented with a word preceded with a `$` symbol. (E.g. `$date`)
- - If the metadata exists, this term will be replaced by it:
-	 - Scene date = 2006-01-02, `$date` = 2006-01-02
- - You can find the list of available variables in `config.py`
------
-In the example below, we will use:
-- Path: `C:\Temp\QmlnQnVja0J1bm55.mp4`
-- This file is [Big Buck Bunny](https://en.wikipedia.org/wiki/Big_Buck_Bunny).
-
-## Filename
-Change your filename (C:\Temp\\**QmlnQnVja0J1bm55.mp4**)
-
-------
-**Priority** : Tags > Studios > Default
-### - Based on a Tag
-```py
-tag_templates  = {
-	"rename_tag": "$year $title - $studio $resolution $video_codec",
-	"rename_tag2": "$title"
-}
-```
-|tag| new path |
-|--|--|
-|rename_tag| `C:\Temp\2008 Big Buck Bunny - Blender Institute 1080p H264.mp4` |
-| rename_tag2 | `C:\Temp\Big Buck Bunny.mp4` |
-
-
-
-### - Based on a Studio
-```py
-studio_templates  = {
-	"Blender Institute": "$date - $title [$studio]",
-	"Pixar": "$title [$studio]"
-}
-```
-|studio| new path |
-|--|--|
-|Blender Institute| `C:\Temp\2008-05-20 - Big Buck Bunny [Blender Institute].mp4` |
-| Pixar | `C:\Temp\Big Buck Bunny [Pixar].mp4` |
-
-
-### - Change filename no matter what
-```py
-use_default_template  =  True
-default_template  =  "$date $title"
-```
-The file became: `C:\Temp\2008-05-20 - Big Buck Bunny.mp4`
-
-## Path
-Change your path (**C:\Temp**\\QmlnQnVja0J1bm55.mp4)
-### - Based on a Tag
-```py
-p_tag_templates  = {
-	"rename_tag": r"D:\Video\",
-	"rename_tag2": r"E:\Video\$year"
-}
-```
-|tag| new path |
-|--|--|
-|rename_tag| `D:\Video\QmlnQnVja0J1bm55.mp4` |
-| rename_tag2 | `E:\Video\2008\QmlnQnVja0J1bm55.mp4` |
-
-
-
-### - Based on a Studio
-```py
-p_studio_templates  = {
-	"Blender Institute": r"D:\Video\Blender\",
-	"Pixar": r"E:\Video\$studio\"
-}
-```
-|studio| new path |
-|--|--|
-|Blender Institute| `D:\Video\Blender\QmlnQnVja0J1bm55.mp4` |
-| Pixar | `E:\Video\Pixar\QmlnQnVja0J1bm55.mp4` |
-
-### - Based on a Path
-```py
-p_path_templates = {
-	r"C:\Temp": r"D:\Video\",
-	r"C:\Video": r"E:\Video\Win\"
-}
-```
-|file path| new path |
-|--|--|
-|`C:\Temp`| `D:\Video\QmlnQnVja0J1bm55.mp4` |
-| `C:\Video`| `E:\Video\Win\QmlnQnVja0J1bm55.mp4` |
-
-
-### - Change path no matter what
-```py
-p_use_default_template  =  True
-p_default_template  =  r"D:\Video\"
-```
-The file is moved to: `D:\Video\QmlnQnVja0J1bm55.mp4`
-
-### - Special Variables
-`$studio_hierarchy` - Create the entire hierarchy of studio as folder (E.g. `../MindGeek/Brazzers/Hot And Mean/video.mp4`). Use your parent studio.
-
-`^*` - The current directory of the file.
-Explanation:
- - **If**: `p_default_template = r"^*\$performer"`
- - It creates a folder with a performer name in the current directory where the file is.
- - `C:\Temp\video.mp4` so  `^*=C:\Temp\`, result: `C:\Temp\Jane Doe\video.mp4`
- - If you don't use `prevent_consecutive` option, the plugin will create a new folder everytime (`C:\Temp\Jane Doe\Jane Doe\...\video.mp4`).
-
-## Advanced
-
-### Groups
-You can group elements in the template with `{}`, it's used when you want to remove a character if a variable is null.
-
-Example:
-
-
-**With** date in Stash:
- - `[$studio] $date - $title` -> `[Blender] 2008-05-20 - Big Buck Bunny`
- 
-**Without** date in Stash:
- - `[$studio] $date - $title` -> `[Blender] - Big Buck Bunny`
- 
-If you want to use the `-` only when you have the date, you can group the `-` with `$date`
-**Without** date in Stash:
- - `[$studio] {$date -} $title` -> `[Blender] Big Buck Bunny`
diff --git a/plugins/renamerOnUpdate/log.py b/plugins/renamerOnUpdate/log.py
deleted file mode 100644
index f3812522..00000000
--- a/plugins/renamerOnUpdate/log.py
+++ /dev/null
@@ -1,52 +0,0 @@
-import sys
-
-
-# Log messages sent from a plugin instance are transmitted via stderr and are
-# encoded with a prefix consisting of special character SOH, then the log
-# level (one of t, d, i, w, e, or p - corresponding to trace, debug, info,
-# warning, error and progress levels respectively), then special character
-# STX.
-#
-# The LogTrace, LogDebug, LogInfo, LogWarning, and LogError methods, and their equivalent
-# formatted methods are intended for use by plugin instances to transmit log
-# messages. The LogProgress method is also intended for sending progress data.
-#
-
-def __prefix(level_char):
-	start_level_char = b'\x01'
-	end_level_char = b'\x02'
-
-	ret = start_level_char + level_char + end_level_char
-	return ret.decode()
-
-
-def __log(level_char, s):
-	if level_char == "":
-		return
-
-	print(__prefix(level_char) + s + "\n", file=sys.stderr, flush=True)
-
-
-def LogTrace(s):
-	__log(b't', s)
-
-
-def LogDebug(s):
-	__log(b'd', s)
-
-
-def LogInfo(s):
-	__log(b'i', s)
-
-
-def LogWarning(s):
-	__log(b'w', s)
-
-
-def LogError(s):
-	__log(b'e', s)
-
-
-def LogProgress(p):
-	progress = min(max(0, p), 1)
-	__log(b'p', str(progress))
diff --git a/plugins/renamerOnUpdate/renamerOnUpdate.py b/plugins/renamerOnUpdate/renamerOnUpdate.py
deleted file mode 100644
index cf145a62..00000000
--- a/plugins/renamerOnUpdate/renamerOnUpdate.py
+++ /dev/null
@@ -1,1370 +0,0 @@
-import difflib
-import json
-import os
-import re
-import shutil
-import sqlite3
-import sys
-import time
-import traceback
-from datetime import datetime
-
-import requests
-
-try:
-    import psutil  # pip install psutil
-    MODULE_PSUTIL = True
-except Exception:
-    MODULE_PSUTIL = False
-
-try:
-    import unidecode  # pip install Unidecode
-    MODULE_UNIDECODE = True
-except Exception:
-    MODULE_UNIDECODE = False
-
-
-try:
-    import renamerOnUpdate_config as config
-except Exception:
-    import config
-import log
-
-
-DB_VERSION_FILE_REFACTOR = 32
-DB_VERSION_SCENE_STUDIO_CODE = 38
-
-DRY_RUN = config.dry_run
-DRY_RUN_FILE = None
-
-if config.log_file:
-    DRY_RUN_FILE = os.path.join(os.path.dirname(config.log_file), "renamerOnUpdate_dryrun.txt")
-
-if DRY_RUN:
-    if DRY_RUN_FILE and not config.dry_run_append:
-        if os.path.exists(DRY_RUN_FILE):
-            os.remove(DRY_RUN_FILE)
-    log.LogInfo("Dry mode on")
-
-START_TIME = time.time()
-FRAGMENT = json.loads(sys.stdin.read())
-
-FRAGMENT_SERVER = FRAGMENT["server_connection"]
-PLUGIN_DIR = FRAGMENT_SERVER["PluginDir"]
-
-
-PLUGIN_ARGS = FRAGMENT['args'].get("mode")
-
-#log.LogDebug("{}".format(FRAGMENT))
-
-
-def callGraphQL(query, variables=None):
-    # Session cookie for authentication
-    graphql_port = str(FRAGMENT_SERVER['Port'])
-    graphql_scheme = FRAGMENT_SERVER['Scheme']
-    graphql_cookies = {'session': FRAGMENT_SERVER['SessionCookie']['Value']}
-    graphql_headers = {
-        "Accept-Encoding": "gzip, deflate, br",
-        "Content-Type": "application/json",
-        "Accept": "application/json",
-        "Connection": "keep-alive",
-        "DNT": "1"
-    }
-    graphql_domain = FRAGMENT_SERVER['Host']
-    if graphql_domain == "0.0.0.0":
-        graphql_domain = "localhost"
-    # Stash GraphQL endpoint
-    graphql_url = f"{graphql_scheme}://{graphql_domain}:{graphql_port}/graphql"
-
-    json = {'query': query}
-    if variables is not None:
-        json['variables'] = variables
-    try:
-        response = requests.post(graphql_url, json=json, headers=graphql_headers, cookies=graphql_cookies, timeout=20)
-    except Exception as e:
-        exit_plugin(err=f"[FATAL] Error with the graphql request {e}")
-    if response.status_code == 200:
-        result = response.json()
-        if result.get("error"):
-            for error in result["error"]["errors"]:
-                raise Exception(f"GraphQL error: {error}")
-            return None
-        if result.get("data"):
-            return result.get("data")
-    elif response.status_code == 401:
-        exit_plugin(err="HTTP Error 401, Unauthorised.")
-    else:
-        raise ConnectionError(f"GraphQL query failed: {response.status_code} - {response.content}")
-
-
-def graphql_getScene(scene_id):
-    query = """
-    query FindScene($id: ID!, $checksum: String) {
-        findScene(id: $id, checksum: $checksum) {
-            ...SceneData
-        }
-    }
-    fragment SceneData on Scene {
-        id
-        oshash
-        checksum
-        title
-        date
-        rating
-        stash_ids {
-            endpoint
-            stash_id
-        }
-        organized""" + FILE_QUERY + """
-        studio {
-            id
-            name
-            parent_studio {
-                id
-                name
-            }
-        }
-        tags {
-            id
-            name
-        }
-        performers {
-            id
-            name
-            gender
-            favorite
-            rating
-            stash_ids{
-                endpoint
-                stash_id
-            }
-        }
-        movies {
-            movie {
-                name
-                date
-            }
-            scene_index
-        }
-    }
-    """
-    variables = {
-        "id": scene_id
-    }
-    result = callGraphQL(query, variables)
-    return result.get('findScene')
-
-
-# used for bulk
-def graphql_findScene(perPage, direc="DESC") -> dict:
-    query = """
-    query FindScenes($filter: FindFilterType) {
-        findScenes(filter: $filter) {
-            count
-            scenes {
-                ...SlimSceneData
-            }
-        }
-    }
-    fragment SlimSceneData on Scene {
-        id
-        oshash
-        checksum
-        title
-        date
-        rating
-        organized
-        stash_ids {
-            endpoint
-            stash_id
-        }
-    """ + FILE_QUERY + """
-        studio {
-            id
-            name
-            parent_studio {
-                id
-                name
-            }
-        }
-        tags {
-            id
-            name
-        }
-        performers {
-            id
-            name
-            gender
-            favorite
-            rating
-            stash_ids{
-                endpoint
-                stash_id
-            }
-        }
-        movies {
-            movie {
-                name
-                date
-            }
-            scene_index
-        }
-    }
-    """
-    # ASC DESC
-    variables = {'filter': {"direction": direc, "page": 1, "per_page": perPage, "sort": "updated_at"}}
-    result = callGraphQL(query, variables)
-    return result.get("findScenes")
-
-
-# used to find duplicate
-def graphql_findScenebyPath(path, modifier) -> dict:
-    query = """
-    query FindScenes($filter: FindFilterType, $scene_filter: SceneFilterType) {
-        findScenes(filter: $filter, scene_filter: $scene_filter) {
-            count
-            scenes {
-                id
-                title
-            }
-        }
-    }
-    """
-    # ASC DESC
-    variables = {
-        'filter': {
-            "direction": "ASC",
-            "page": 1,
-            "per_page": 40,
-            "sort": "updated_at"
-        },
-        "scene_filter": {
-            "path": {
-                "modifier": modifier,
-                "value": path
-            }
-        }
-    }
-    result = callGraphQL(query, variables)
-    return result.get("findScenes")
-
-
-
-def graphql_getConfiguration():
-    query = """
-        query Configuration {
-            configuration {
-                general {
-                    databasePath
-                }
-            }
-        }
-    """
-    result = callGraphQL(query)
-    return result.get('configuration')
-
-
-def graphql_getStudio(studio_id):
-    query = """
-        query FindStudio($id:ID!) {
-            findStudio(id: $id) {
-                id
-                name
-                parent_studio {
-                    id
-                    name
-                }
-            }
-        }
-    """
-    variables = {
-        "id": studio_id
-    }
-    result = callGraphQL(query, variables)
-    return result.get("findStudio")
-
-
-def graphql_removeScenesTag(id_scenes: list, id_tags: list):
-    query = """
-    mutation BulkSceneUpdate($input: BulkSceneUpdateInput!) {
-        bulkSceneUpdate(input: $input) {
-            id
-        }
-    }
-    """
-    variables = {'input': {"ids": id_scenes, "tag_ids": {"ids": id_tags, "mode": "REMOVE"}}}
-    result = callGraphQL(query, variables)
-    return result
-
-
-def graphql_getBuild():
-    query = """
-        {
-            systemStatus {
-                databaseSchema
-            }
-        }
-    """
-    result = callGraphQL(query)
-    return result['systemStatus']['databaseSchema']
-
-
-def find_diff_text(a: str, b: str):
-    addi = minus = stay = ""
-    minus_ = addi_ = 0
-    for _, s in enumerate(difflib.ndiff(a, b)):
-        if s[0] == ' ':
-            stay += s[-1]
-            minus += "*"
-            addi += "*"
-        elif s[0] == '-':
-            minus += s[-1]
-            minus_ += 1
-        elif s[0] == '+':
-            addi += s[-1]
-            addi_ += 1
-    if minus_ > 20 or addi_ > 20:
-        log.LogDebug(f"Diff Checker: +{addi_}; -{minus_};")
-        log.LogDebug(f"OLD: {a}")
-        log.LogDebug(f"NEW: {b}")
-    else:
-        log.LogDebug(f"Original: {a}\n- Charac: {minus}\n+ Charac: {addi}\n  Result: {b}")
-    return
-
-
-def has_handle(fpath, all_result=False):
-    lst = []
-    for proc in psutil.process_iter():
-        try:
-            for item in proc.open_files():
-                if fpath == item.path:
-                    if all_result:
-                        lst.append(proc)
-                    else:
-                        return proc
-        except Exception:
-            pass
-    return lst
-
-
-def config_edit(name: str, state: bool):
-    found = 0
-    try:
-        with open(config.__file__, 'r', encoding='utf8') as file:
-            config_lines = file.readlines()
-        with open(config.__file__, 'w', encoding='utf8') as file_w:
-            for line in config_lines:
-                if len(line.split("=")) > 1:
-                    if name == line.split("=")[0].strip():
-                        file_w.write(f"{name} = {state}\n")
-                        found += 1
-                        continue
-                file_w.write(line)
-    except PermissionError as err:
-        log.LogError(f"You don't have the permission to edit config.py ({err})")
-    return found
-
-
-def check_longpath(path: str):
-    # Trying to prevent error with long paths for Win10
-    # https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd
-    if len(path) > 240 and not IGNORE_PATH_LENGTH:
-        log.LogError(f"The path is too long ({len(path)} > 240). You can look at 'order_field'/'ignore_path_length' in config.")
-        return 1
-
-
-def get_template_filename(scene: dict):
-    template = None
-    # Change by Studio
-    if scene.get("studio") and config.studio_templates:
-        template_found = False
-        current_studio = scene.get("studio")
-        if config.studio_templates.get(current_studio['name']):
-            template = config.studio_templates[current_studio['name']]
-            template_found = True
-        # by first Parent found
-        while current_studio.get("parent_studio") and not template_found:
-            if config.studio_templates.get(current_studio.get("parent_studio").get("name")):
-                template = config.studio_templates[current_studio['parent_studio']['name']]
-                template_found = True
-            current_studio = graphql_getStudio(current_studio.get("parent_studio")['id'])
-
-    # Change by Tag
-    tags = [x["name"] for x in scene["tags"]]
-    if scene.get("tags") and config.tag_templates:
-        for match, job in config.tag_templates.items():
-            if match in tags:
-                template = job
-                break
-    return template
-
-
-def get_template_path(scene: dict):
-    template = {"destination": "", "option": [], "opt_details": {}}
-    # Change by Path
-    if config.p_path_templates:
-        for match, job in config.p_path_templates.items():
-            if match in scene["path"]:
-                template["destination"] = job
-                break
-
-    # Change by Studio
-    if scene.get("studio") and config.p_studio_templates:
-        if config.p_studio_templates.get(scene["studio"]["name"]):
-            template["destination"] = config.p_studio_templates[scene["studio"]["name"]]
-        # by Parent
-        if scene["studio"].get("parent_studio"):
-            if config.p_studio_templates.get(scene["studio"]["name"]):
-                template["destination"] = config.p_studio_templates[scene["studio"]["name"]]
-
-    # Change by Tag
-    tags = [x["name"] for x in scene["tags"]]
-    if scene.get("tags") and config.p_tag_templates:
-        for match, job in config.p_tag_templates.items():
-            if match in tags:
-                template["destination"] = job
-                break
-
-    if scene.get("tags") and config.p_tag_option:
-        for tag in scene["tags"]:
-            if config.p_tag_option.get(tag["name"]):
-                opt = config.p_tag_option[tag["name"]]
-                template["option"].extend(opt)
-                if "clean_tag" in opt:
-                    if template["opt_details"].get("clean_tag"):
-                        template["opt_details"]["clean_tag"].append(tag["id"])
-                    else:
-                        template["opt_details"] = {"clean_tag": [tag["id"]]}
-    if not scene['organized'] and PATH_NON_ORGANIZED:
-        template["destination"] = PATH_NON_ORGANIZED
-    return template
-
-
-def sort_performer(lst_use: list, lst_app=[]):
-    for p in lst_use:
-        lst_use[p].sort()
-    for p in lst_use.values():
-        for n in p:
-            if n not in lst_app:
-                lst_app.append(n)
-    return lst_app
-
-
-def sort_rating(d: dict):
-    new_d = {}
-    for i in sorted(d.keys(), reverse=True):
-        new_d[i] = d[i]
-    return new_d
-
-
-def extract_info(scene: dict, template: None):
-    # Grabbing things from Stash
-    scene_information = {}
-
-    scene_information['current_path'] = str(scene['path'])
-    # note: contain the dot (.mp4)
-    scene_information['file_extension'] = os.path.splitext(scene_information['current_path'])[1]
-    # note: basename contains the extension
-    scene_information['current_filename'] = os.path.basename(scene_information['current_path'])
-    scene_information['current_directory'] = os.path.dirname(scene_information['current_path'])
-    scene_information['oshash'] = scene['oshash']
-    scene_information['checksum'] = scene.get("checksum")
-    scene_information['studio_code'] = scene.get("code")
-
-    if scene.get("stash_ids"):
-        #todo support other db that stashdb ?
-        scene_information['stashid_scene'] = scene['stash_ids'][0]["stash_id"]
-
-    if template.get("path"):
-        if "^*" in template["path"]["destination"]:
-            template["path"]["destination"] = template["path"]["destination"].replace("^*", scene_information['current_directory'])
-        scene_information['template_split'] = os.path.normpath(template["path"]["destination"]).split(os.sep)
-    scene_information['current_path_split'] = os.path.normpath(scene_information['current_path']).split(os.sep)
-
-    if FILENAME_ASTITLE and not scene.get("title"):
-        scene["title"] = scene_information['current_filename']
-
-    # Grab Title (without extension if present)
-    if scene.get("title"):
-        # Removing extension if present in title
-        scene_information['title'] = re.sub(fr"{scene_information['file_extension']}$", "", scene['title'])
-        if PREPOSITIONS_REMOVAL:
-            for word in PREPOSITIONS_LIST:
-                scene_information['title'] = re.sub(fr"^{word}[\s_-]", "", scene_information['title'])
-
-    # Grab Date
-    scene_information['date'] = scene.get("date")
-    if scene_information['date']:
-        date_scene = datetime.strptime(scene_information['date'], r"%Y-%m-%d")
-        scene_information['date_format'] = datetime.strftime(date_scene, config.date_format)
-
-    # Grab Duration
-    scene_information['duration'] = scene['file']['duration']
-    if config.duration_format:
-        scene_information['duration'] = time.strftime(config.duration_format, time.gmtime(scene_information['duration']))
-    else:
-        scene_information['duration'] = str(scene_information['duration'])
-
-    # Grab Rating
-    if scene.get("rating"):
-        scene_information['rating'] = RATING_FORMAT.format(scene['rating'])
-
-    # Grab Performer
-    scene_information['performer_path'] = None
-    if scene.get("performers"):
-        perf_list = []
-        perf_list_stashid = []
-        perf_rating = {"0": []}
-        perf_favorite = {"yes": [], "no": []}
-        for perf in scene['performers']:
-            if perf.get("gender"):
-                if perf['gender'] in PERFORMER_IGNOREGENDER:
-                    continue
-            elif "UNDEFINED" in PERFORMER_IGNOREGENDER:
-                continue
-            # path related
-            if template.get("path"):
-                if "inverse_performer" in template["path"]["option"]:
-                    perf["name"] = re.sub(r"([a-zA-Z]+)(\s)([a-zA-Z]+)", r"\3 \1", perf["name"])
-            perf_list.append(perf['name'])
-            if perf.get('rating'):
-                if perf_rating.get(str(perf['rating'])) is None:
-                    perf_rating[str(perf['rating'])] = []
-                perf_rating[str(perf['rating'])].append(perf['name'])
-            else:
-                perf_rating["0"].append(perf['name'])
-            if perf.get('favorite'):
-                perf_favorite['yes'].append(perf['name'])
-            else:
-                perf_favorite['no'].append(perf['name'])
-            # if the path already contains the name we keep this one
-            if perf["name"] in scene_information['current_path_split'] and scene_information.get('performer_path') is None and PATH_KEEP_ALRPERF:
-                scene_information['performer_path'] = perf["name"]
-                log.LogDebug(f"[PATH] Keeping the current name of the performer '{perf['name']}'")
-        perf_rating = sort_rating(perf_rating)
-        # sort performer
-        if PERFORMER_SORT == "rating":
-            # sort alpha
-            perf_list = sort_performer(perf_rating)
-        elif PERFORMER_SORT == "favorite":
-            perf_list = sort_performer(perf_favorite)
-        elif PERFORMER_SORT == "mix":
-            perf_list = []
-            for p in perf_favorite:
-                perf_favorite[p].sort()
-            for p in perf_favorite.get("yes"):
-                perf_list.append(p)
-            perf_list = sort_performer(perf_rating, perf_list)
-        elif PERFORMER_SORT == "mixid":
-            perf_list = []
-            for p in perf_favorite.get("yes"):
-                perf_list.append(p)
-            for p in perf_rating.values():
-                for n in p:
-                    if n not in perf_list:
-                        perf_list.append(n)
-        elif PERFORMER_SORT == "name":
-            perf_list.sort()
-        if not scene_information['performer_path'] and perf_list:
-            scene_information['performer_path'] = perf_list[0]
-        if len(perf_list) > PERFORMER_LIMIT:
-            if not PERFORMER_LIMIT_KEEP:
-                log.LogInfo(f"More than {PERFORMER_LIMIT} performer(s). Ignoring $performer")
-                perf_list = []
-            else:
-                log.LogInfo(f"Limited the amount of performer to {PERFORMER_LIMIT}")
-                perf_list = perf_list[0: PERFORMER_LIMIT]
-        scene_information['performer'] = PERFORMER_SPLITCHAR.join(perf_list)
-        if perf_list:
-            for p in perf_list:
-                for perf in scene['performers']:
-                    #todo support other db that stashdb ?
-                    if p == perf['name'] and perf.get('stash_ids'):
-                        perf_list_stashid.append(perf['stash_ids'][0]["stash_id"])
-                        break
-            scene_information['stashid_performer'] = PERFORMER_SPLITCHAR.join(perf_list_stashid)
-        if not PATH_ONEPERFORMER:
-            scene_information['performer_path'] = PERFORMER_SPLITCHAR.join(perf_list)
-    elif PATH_NOPERFORMER_FOLDER:
-        scene_information['performer_path'] = "NoPerformer"
-
-    # Grab Studio name
-    if scene.get("studio"):
-        if SQUEEZE_STUDIO_NAMES:
-            scene_information['studio'] = scene['studio']['name'].replace(' ', '')
-        else:
-            scene_information['studio'] = scene['studio']['name']
-        scene_information['studio_family'] = scene_information['studio']
-        studio_hierarchy = [scene_information['studio']]
-        # Grab Parent name
-        if scene['studio'].get("parent_studio"):
-            if SQUEEZE_STUDIO_NAMES:
-                scene_information['parent_studio'] = scene['studio']['parent_studio']['name'].replace(' ', '')
-            else:
-                scene_information['parent_studio'] = scene['studio']['parent_studio']['name']
-            scene_information['studio_family'] = scene_information['parent_studio']
-
-            studio_p = scene['studio']
-            while studio_p.get("parent_studio"):
-                studio_p = graphql_getStudio(studio_p['parent_studio']['id'])
-                if studio_p:
-                    if SQUEEZE_STUDIO_NAMES:
-                        studio_hierarchy.append(studio_p['name'].replace(' ', ''))
-                    else:
-                        studio_hierarchy.append(studio_p['name'])
-            studio_hierarchy.reverse()
-        scene_information['studio_hierarchy'] = studio_hierarchy
-    # Grab Tags
-    if scene.get("tags"):
-        tag_list = []
-        for tag in scene['tags']:
-            # ignore tag in blacklist
-            if tag['name'] in TAGS_BLACKLIST:
-                continue
-            # check if there is a whilelist
-            if len(TAGS_WHITELIST) > 0:
-                if tag['name'] in TAGS_WHITELIST:
-                    tag_list.append(tag['name'])
-            else:
-                tag_list.append(tag['name'])
-        scene_information['tags'] = TAGS_SPLITCHAR.join(tag_list)
-
-    # Grab Height (720p,1080p,4k...)
-    scene_information['bitrate'] = str(round(int(scene['file']['bitrate']) / 1000000, 2))
-    scene_information['resolution'] = 'SD'
-    scene_information['height'] = f"{scene['file']['height']}p"
-    if scene['file']['height'] >= 720:
-        scene_information['resolution'] = 'HD'
-    if scene['file']['height'] >= 2160:
-        scene_information['height'] = '4k'
-        scene_information['resolution'] = 'UHD'
-    if scene['file']['height'] >= 2880:
-        scene_information['height'] = '5k'
-    if scene['file']['height'] >= 3384:
-        scene_information['height'] = '6k'
-    if scene['file']['height'] >= 4320:
-        scene_information['height'] = '8k'
-    # For Phone ?
-    if scene['file']['height'] > scene['file']['width']:
-        scene_information['resolution'] = 'VERTICAL'
-
-    if scene.get("movies"):
-        scene_information["movie_title"] = scene["movies"][0]["movie"]["name"]
-        if scene["movies"][0]["movie"].get("date"):
-            scene_information["movie_year"] = scene["movies"][0]["movie"]["date"][0:4]
-        if scene["movies"][0].get("scene_index"):
-            scene_information["movie_index"] = scene["movies"][0]["scene_index"]
-            scene_information["movie_scene"] = f"scene {scene_information['movie_index']}"
-
-    # Grab Video and Audio codec
-    scene_information['video_codec'] = scene['file']['video_codec'].upper()
-    scene_information['audio_codec'] = scene['file']['audio_codec'].upper()
-
-    if scene_information.get("date"):
-        scene_information['year'] = scene_information['date'][0:4]
-
-    if FIELD_WHITESPACE_SEP:
-        for key, value in scene_information.items():
-            if key in ["current_path", "current_filename", "current_directory", "current_path_split", "template_split"]:
-                continue
-            if type(value) is str:
-                scene_information[key] = value.replace(" ", FIELD_WHITESPACE_SEP)
-            elif type(value) is list:
-                scene_information[key] = [x.replace(" ", FIELD_WHITESPACE_SEP) for x in value]
-    return scene_information
-
-
-def replace_text(text: str):
-    for old, new in FILENAME_REPLACEWORDS.items():
-        if type(new) is str:
-            new = [new]
-        if len(new) > 1:
-            if new[1] == "regex":
-                tmp = re.sub(old, new[0], text)
-                if tmp != text:
-                    log.LogDebug(f"Regex matched: {text} -> {tmp}")
-            else:
-                if new[1] == "word":
-                    tmp = re.sub(fr'([\s_-])({old})([\s_-])', f'\\1{new[0]}\\3', text)
-                elif new[1] == "any":
-                    tmp = text.replace(old, new[0])
-                if tmp != text:
-                    log.LogDebug(f"'{old}' changed with '{new[0]}'")
-        else:
-            tmp = re.sub(fr'([\s_-])({old})([\s_-])', f'\\1{new[0]}\\3', text)
-            if tmp != text:
-                log.LogDebug(f"'{old}' changed with '{new[0]}'")
-        text = tmp
-    return tmp
-
-
-def cleanup_text(text: str):
-    text = re.sub(r'\(\W*\)|\[\W*\]|{[^a-zA-Z0-9]*}', '', text)
-    text = re.sub(r'[{}]', '', text)
-    text = remove_consecutive_nonword(text)
-    return text.strip(" -_.")
-
-
-def remove_consecutive_nonword(text: str):
-    for _ in range(0, 10):
-        m = re.findall(r'(\W+)\1+', text)
-        if m:
-            text = re.sub(r'(\W+)\1+', r'\1', text)
-        else:
-            break
-    return text
-
-
-def field_replacer(text: str, scene_information:dict):
-    field_found = re.findall(r"\$\w+", text)
-    result = text
-    title = None
-    replaced_word = ""
-    if field_found:
-        field_found.sort(key=len, reverse=True)
-    for i in range(0, len(field_found)):
-        f = field_found[i].replace("$", "").strip("_")
-        # If $performer is before $title, prevent having duplicate text.
-        if f == "performer" and len(field_found) > i + 1 and scene_information.get('performer'):
-            if field_found[i+1] == "$title" and scene_information.get('title') and PREVENT_TITLE_PERF:
-                if re.search(f"^{scene_information['performer'].lower()}", scene_information['title'].lower()):
-                    log.LogDebug("Ignoring the performer field because it's already in start of title")
-                    result = result.replace("$performer", "")
-                    continue
-        replaced_word = scene_information.get(f)
-        if not replaced_word:
-            replaced_word = ""
-        if FIELD_REPLACER.get(f"${f}"):
-            replaced_word = replaced_word.replace(FIELD_REPLACER[f"${f}"]["replace"], FIELD_REPLACER[f"${f}"]["with"])
-        if f == "title":
-            title = replaced_word.strip()
-            continue
-        if replaced_word == "":
-            result = result.replace(field_found[i], replaced_word)
-        else:
-            result = result.replace(f"${f}", replaced_word)
-    return result, title
-
-
-def makeFilename(scene_information: dict, query: str) -> str:
-    new_filename = str(query)
-    r, t = field_replacer(new_filename, scene_information)
-    if FILENAME_REPLACEWORDS:
-        r = replace_text(r)
-    if not t:
-        r = r.replace("$title", "")
-    r = cleanup_text(r)
-    if t:
-        r = r.replace("$title", t)
-    # Replace spaces with splitchar
-    r = r.replace(' ', FILENAME_SPLITCHAR)
-    return r
-
-
-def makePath(scene_information: dict, query: str) -> str:
-    new_filename = str(query)
-    new_filename = new_filename.replace("$performer", "$performer_path")
-    r, t = field_replacer(new_filename, scene_information)
-    if not t:
-        r = r.replace("$title", "")
-    r = cleanup_text(r)
-    if t:
-        r = r.replace("$title", t)
-    return r
-
-
-def capitalizeWords(s: str):
-    # thanks to BCFC_1982 for it
-    return re.sub(r"[A-Za-z]+('[A-Za-z]+)?", lambda word: word.group(0).capitalize(), s)
-
-
-def create_new_filename(scene_info: dict, template: str):
-    new_filename = makeFilename(scene_info, template) + DUPLICATE_SUFFIX[scene_info['file_index']] + scene_info['file_extension']
-    if FILENAME_LOWER:
-        new_filename = new_filename.lower()
-    if FILENAME_TITLECASE:
-        new_filename = capitalizeWords(new_filename)
-    # Remove illegal character for Windows
-    new_filename = re.sub('[\\/:"*?<>|]+', '', new_filename)
-
-    if FILENAME_REMOVECHARACTER:
-        new_filename = re.sub(f'[{FILENAME_REMOVECHARACTER}]+', '', new_filename)
-
-    # Trying to remove non standard character
-    if MODULE_UNIDECODE and UNICODE_USE:
-        new_filename = unidecode.unidecode(new_filename, errors='preserve')
-    else:
-        # Using typewriter for Apostrophe
-        new_filename = re.sub("[’‘”“]+", "'", new_filename)
-    return new_filename
-
-
-def remove_consecutive(liste: list):
-    new_list = []
-    for i in range(0, len(liste)):
-        if i != 0 and liste[i] == liste[i - 1]:
-            continue
-        new_list.append(liste[i])
-    return new_list
-
-
-def create_new_path(scene_info: dict, template: dict):
-    # Create the new path
-    # Split the template path
-    path_split = scene_info['template_split']
-    path_list = []
-    for part in path_split:
-        if ":" in part and path_split[0]:
-            path_list.append(part)
-        elif part == "$studio_hierarchy":
-            if not scene_info.get("studio_hierarchy"):
-                continue
-            for p in scene_info["studio_hierarchy"]:
-                path_list.append(re.sub('[\\/:"*?<>|]+', '', p).strip())
-        else:
-            path_list.append(re.sub('[\\/:"*?<>|]+', '', makePath(scene_info, part)).strip())
-    # Remove blank, empty string
-    path_split = [x for x in path_list if x]
-    # The first character was a seperator, so put it back.
-    if path_list[0] == "":
-        path_split.insert(0, "")
-
-    if PREVENT_CONSECUTIVE:
-        # remove consecutive (/FolderName/FolderName/video.mp4 -> FolderName/video.mp4
-        path_split = remove_consecutive(path_split)
-
-    if "^*" in template["path"]["destination"]:
-        if scene_info['current_directory'] != os.sep.join(path_split):
-            path_split.pop(len(scene_info['current_directory']))
-
-    path_edited = os.sep.join(path_split)
-
-    if FILENAME_REMOVECHARACTER:
-        path_edited = re.sub(f'[{FILENAME_REMOVECHARACTER}]+', '', path_edited)
-
-    # Using typewriter for Apostrophe
-    new_path = re.sub("[’‘”“]+", "'", path_edited)
-
-    return new_path
-
-
-def connect_db(path: str):
-    try:
-        sqliteConnection = sqlite3.connect(path, timeout=10)
-        log.LogDebug("Python successfully connected to SQLite")
-    except sqlite3.Error as error:
-        log.LogError(f"FATAL SQLITE Error: {error}")
-        return None
-    return sqliteConnection
-
-
-def checking_duplicate_db(scene_info: dict):
-    scenes = graphql_findScenebyPath(scene_info['final_path'], "EQUALS")
-    if scenes["count"] > 0:
-        log.LogError("Duplicate path detected")
-        for dupl_row in scenes["scenes"]:
-            log.LogWarning(f"Identical path: [{dupl_row['id']}]")
-        return 1
-    scenes = graphql_findScenebyPath(scene_info['new_filename'], "EQUALS")
-    if scenes["count"] > 0:
-        for dupl_row in scenes["scenes"]:
-            if dupl_row['id'] != scene_info['scene_id']:
-                log.LogWarning(f"Duplicate filename: [{dupl_row['id']}]")
-
-
-def db_rename(stash_db: sqlite3.Connection, scene_info):
-    cursor = stash_db.cursor()
-    # Database rename
-    cursor.execute("UPDATE scenes SET path=? WHERE id=?;", [scene_info['final_path'], scene_info['scene_id']])
-    stash_db.commit()
-    # Close DB
-    cursor.close()
-
-
-def db_rename_refactor(stash_db: sqlite3.Connection, scene_info):
-    cursor = stash_db.cursor()
-    # 2022-09-17T11:25:52+02:00
-    mod_time = datetime.now().astimezone().isoformat('T', 'seconds')
-
-    # get the next id that we should use if needed
-    cursor.execute("SELECT MAX(id) from folders")
-    new_id = cursor.fetchall()[0][0] + 1
-
-    # get the old folder id
-    cursor.execute("SELECT id FROM folders WHERE path=?", [scene_info['current_directory']])
-    old_folder_id = cursor.fetchall()[0][0]
-
-    # check if the folder of file is created in db
-    cursor.execute("SELECT id FROM folders WHERE path=?", [scene_info['new_directory']])
-    folder_id = cursor.fetchall()
-    if not folder_id:
-        dir = scene_info['new_directory']
-        # reduce the path to find a parent folder
-        for _ in range(1, len(scene_info['new_directory'].split(os.sep))):
-            dir = os.path.dirname(dir)
-            cursor.execute("SELECT id FROM folders WHERE path=?", [dir])
-            parent_id = cursor.fetchall()
-            if parent_id:
-                # create a new row with the new folder with the parent folder find above
-                cursor.execute(
-                    "INSERT INTO 'main'.'folders'('id', 'path', 'parent_folder_id', 'mod_time', 'created_at', 'updated_at', 'zip_file_id') VALUES (?, ?, ?, ?, ?, ?, ?);",
-                    [
-                        new_id, scene_info['new_directory'], parent_id[0][0],
-                        mod_time, mod_time, mod_time, None
-                    ])
-                stash_db.commit()
-                folder_id = new_id
-                break
-    else:
-        folder_id = folder_id[0][0]
-    if folder_id:
-        cursor.execute("SELECT file_id from scenes_files WHERE scene_id=?", [scene_info['scene_id']])
-        file_ids = cursor.fetchall()
-        file_id = None
-        for f in file_ids:
-            # it can have multiple file for a scene
-            cursor.execute("SELECT parent_folder_id from files WHERE id=?", [f[0]])
-            check_parent = cursor.fetchall()[0][0]
-            # if the parent id is the one found above section, we find our file.s
-            if check_parent == old_folder_id:
-                file_id = f[0]
-                break
-        if file_id:
-            #log.LogDebug(f"UPDATE files SET basename={scene_info['new_filename']}, parent_folder_id={folder_id}, updated_at={mod_time} WHERE id={file_id};")
-            cursor.execute("UPDATE files SET basename=?, parent_folder_id=?, updated_at=? WHERE id=?;", [scene_info['new_filename'], folder_id, mod_time, file_id])
-            cursor.close()
-            stash_db.commit()
-        else:
-            raise Exception("Failed to find file_id")
-    else:
-        cursor.close()
-        raise Exception(f"You need to setup a library with the new location ({scene_info['new_directory']}) and scan at least 1 file")
-
-
-def file_rename(current_path: str, new_path: str, scene_info: dict):
-    # OS Rename
-    if not os.path.isfile(current_path):
-        log.LogWarning(f"[OS] File doesn't exist in your Disk/Drive ({current_path})")
-        return 1
-    # moving/renaming
-    new_dir = os.path.dirname(new_path)
-    current_dir = os.path.dirname(current_path)
-    if not os.path.exists(new_dir):
-        log.LogInfo(f"Creating folder because it don't exist ({new_dir})")
-        os.makedirs(new_dir)
-    try:
-        shutil.move(current_path, new_path)
-    except PermissionError as err:
-        if "[WinError 32]" in str(err) and MODULE_PSUTIL:
-            log.LogWarning("A process is using this file (Probably FFMPEG), trying to find it ...")
-            # Find which process accesses the file, it's ffmpeg for sure...
-            process_use = has_handle(current_path, PROCESS_ALLRESULT)
-            if process_use:
-                # Terminate the process then try again to rename
-                log.LogDebug(f"Process that uses this file: {process_use}")
-                if PROCESS_KILL:
-                    p = psutil.Process(process_use.pid)
-                    p.terminate()
-                    p.wait(10)
-                    # If process is not terminated, this will create an error again.
-                    try:
-                        shutil.move(current_path, new_path)
-                    except Exception as err:
-                        log.LogError(f"Something still prevents renaming the file. {err}")
-                        return 1
-                else:
-                    log.LogError("A process prevents renaming the file.")
-                    return 1
-        else:
-            log.LogError(f"Something prevents renaming the file. {err}")
-            return 1
-    # checking if the move/rename work correctly
-    if os.path.isfile(new_path):
-        log.LogInfo(f"[OS] File Renamed! ({current_path} -> {new_path})")
-        if LOGFILE:
-            try:
-                with open(LOGFILE, 'a', encoding='utf-8') as f:
-                    f.write(f"{scene_info['scene_id']}|{current_path}|{new_path}|{scene_info['oshash']}\n")
-            except Exception as err:
-                shutil.move(new_path, current_path)
-                log.LogError(f"Restoring the original path, error writing the logfile: {err}")
-                return 1
-        if REMOVE_EMPTY_FOLDER:
-            with os.scandir(current_dir) as it:
-                if not any(it):
-                    log.LogInfo(f"Removing empty folder ({current_dir})")
-                    try:
-                        os.rmdir(current_dir)
-                    except Exception as err:
-                        log.logWarning(f"Fail to delete empty folder {current_dir} - {err}")
-    else:
-        # I don't think it's possible.
-        log.LogError(f"[OS] Failed to rename the file ? {new_path}")
-        return 1
-
-def associated_rename(scene_info: dict):
-    if ASSOCIATED_EXT:
-        for ext in ASSOCIATED_EXT:
-            p = os.path.splitext(scene_info['current_path'])[0] + "." + ext
-            p_new = os.path.splitext(scene_info['final_path'])[0] + "." + ext
-            if os.path.isfile(p):
-                try:
-                    shutil.move(p, p_new)
-                except Exception as err:
-                    log.LogError(f"Something prevents renaming this file '{p}' - err: {err}")
-                    continue
-            if os.path.isfile(p_new):
-                log.LogInfo(f"[OS] Associate file renamed ({p_new})")
-                if LOGFILE:
-                    try:
-                        with open(LOGFILE, 'a', encoding='utf-8') as f:
-                            f.write(f"{scene_info['scene_id']}|{p}|{p_new}\n")
-                    except Exception as err:
-                        shutil.move(p_new, p)
-                        log.LogError(f"Restoring the original name, error writing the logfile: {err}")
-
-
-def renamer(scene_id, db_conn=None):
-    option_dryrun = False
-    if type(scene_id) is dict:
-        stash_scene = scene_id
-        scene_id = stash_scene['id']
-    elif type(scene_id) is int:
-        stash_scene = graphql_getScene(scene_id)
-
-    if config.only_organized and not stash_scene['organized'] and not PATH_NON_ORGANIZED:
-        log.LogDebug(f"[{scene_id}] Scene ignored (not organized)")
-        return
-
-    # refractor file support
-    fingerprint = []
-    if stash_scene.get("path"):
-        stash_scene["file"]["path"] = stash_scene["path"]
-        if stash_scene.get("checksum"):
-            fingerprint.append({
-                "type": "md5",
-                "value": stash_scene["checksum"]
-            })
-        if stash_scene.get("oshash"):
-            fingerprint.append({
-                "type": "oshash",
-                "value": stash_scene["oshash"]
-            })
-        stash_scene["file"]["fingerprints"] = fingerprint
-        scene_files = [stash_scene["file"]]
-        del stash_scene["path"]
-        del stash_scene["file"]
-    elif stash_scene.get("files"):
-        scene_files = stash_scene["files"]
-        del stash_scene["files"]
-    else:
-        scene_files = []
-    stash_db = None
-    for i in range(0, len(scene_files)):
-        scene_file = scene_files[i]
-        # refractor file support
-        for f in scene_file["fingerprints"]:
-            if f.get("oshash"):
-                stash_scene["oshash"] = f["oshash"]
-            if f.get("md5"):
-                stash_scene["checksum"] = f["md5"]
-        stash_scene["path"] = scene_file["path"]
-        stash_scene["file"] = scene_file
-        if scene_file.get("bit_rate"):
-            stash_scene["file"]["bitrate"] = scene_file["bit_rate"]
-        if scene_file.get("frame_rate"):
-            stash_scene["file"]["framerate"] = scene_file["frame_rate"]
-
-        # Tags > Studios > Default
-        template = {}
-        template["filename"] = get_template_filename(stash_scene)
-        template["path"] = get_template_path(stash_scene)
-        if not template["path"].get("destination"):
-            if config.p_use_default_template:
-                log.LogDebug("[PATH] Using default template")
-                template["path"] = {"destination": config.p_default_template, "option": [], "opt_details": {}}
-            else:
-                template["path"] = None
-        else:
-            if template["path"].get("option"):
-                if "dry_run" in template["path"]["option"] and not DRY_RUN:
-                    log.LogInfo("Dry-Run on (activate by option)")
-                    option_dryrun = True
-        if not template["filename"] and config.use_default_template:
-            log.LogDebug("[FILENAME] Using default template")
-            template["filename"] = config.default_template
-
-        if not template["filename"] and not template["path"]:
-            log.LogWarning(f"[{scene_id}] No template for this scene.")
-            return
-
-        #log.LogDebug("Using this template: {}".format(filename_template))
-        scene_information = extract_info(stash_scene, template)
-        log.LogDebug(f"[{scene_id}] Scene information: {scene_information}")
-        log.LogDebug(f"[{scene_id}] Template: {template}")
-
-        scene_information['scene_id'] = scene_id
-        scene_information['file_index'] = i
-
-        for removed_field in ORDER_SHORTFIELD:
-            if removed_field:
-                if scene_information.get(removed_field.replace("$", "")):
-                    del scene_information[removed_field.replace("$", "")]
-                    log.LogWarning(f"removed {removed_field} to reduce the length path")
-                else:
-                    continue
-            if template["filename"]:
-                scene_information['new_filename'] = create_new_filename(scene_information, template["filename"])
-            else:
-                scene_information['new_filename'] = scene_information['current_filename']
-            if template.get("path"):
-                scene_information['new_directory'] = create_new_path(scene_information, template)
-            else:
-                scene_information['new_directory'] = scene_information['current_directory']
-            scene_information['final_path'] = os.path.join(scene_information['new_directory'], scene_information['new_filename'])
-            # check length of path
-            if IGNORE_PATH_LENGTH or len(scene_information['final_path']) <= 240:
-                break
-
-        if check_longpath(scene_information['final_path']):
-            if (DRY_RUN or option_dryrun) and LOGFILE:
-                with open(DRY_RUN_FILE, 'a', encoding='utf-8') as f:
-                    f.write(f"[LENGTH LIMIT] {scene_information['scene_id']}|{scene_information['final_path']}\n")
-            continue
-
-        #log.LogDebug(f"Filename: {scene_information['current_filename']} -> {scene_information['new_filename']}")
-        #log.LogDebug(f"Path: {scene_information['current_directory']} -> {scene_information['new_directory']}")
-
-        if scene_information['final_path'] == scene_information['current_path']:
-            log.LogInfo(f"Everything is ok. ({scene_information['current_filename']})")
-            continue
-
-        if scene_information['current_directory'] != scene_information['new_directory']:
-            log.LogInfo("File will be moved to another directory")
-            log.LogDebug(f"[OLD path] {scene_information['current_path']}")
-            log.LogDebug(f"[NEW path] {scene_information['final_path']}")
-
-        if scene_information['current_filename'] != scene_information['new_filename']:
-            log.LogInfo("The filename will be changed")
-            if ALT_DIFF_DISPLAY:
-                find_diff_text(scene_information['current_filename'], scene_information['new_filename'])
-            else:
-                log.LogDebug(f"[OLD filename] {scene_information['current_filename']}")
-                log.LogDebug(f"[NEW filename] {scene_information['new_filename']}")
-
-        if (DRY_RUN or option_dryrun) and LOGFILE:
-            with open(DRY_RUN_FILE, 'a', encoding='utf-8') as f:
-                f.write(f"{scene_information['scene_id']}|{scene_information['current_path']}|{scene_information['final_path']}\n")
-            continue
-        # check if there is already a file where the new path is
-        err = checking_duplicate_db(scene_information)
-        while err and scene_information['file_index']<=len(DUPLICATE_SUFFIX):
-            log.LogDebug("Duplicate filename detected, increasing file index")
-            scene_information['file_index'] = scene_information['file_index'] + 1
-            scene_information['new_filename'] = create_new_filename(scene_information, template["filename"])
-            scene_information['final_path'] = os.path.join(scene_information['new_directory'], scene_information['new_filename'])
-            log.LogDebug(f"[NEW filename] {scene_information['new_filename']}")
-            log.LogDebug(f"[NEW path] {scene_information['final_path']}")
-            err = checking_duplicate_db(scene_information)
-        # abort
-        if err:
-            raise Exception("duplicate")
-        # connect to the db
-        if not db_conn:
-            stash_db = connect_db(STASH_DATABASE)
-            if stash_db is None:
-                return
-        else:
-            stash_db = db_conn
-        try:
-            # rename file on your disk
-            err = file_rename(scene_information['current_path'], scene_information['final_path'], scene_information)
-            if err:
-                raise Exception("rename")
-            # rename file on your db
-            try:
-                if DB_VERSION >= DB_VERSION_FILE_REFACTOR:
-                    db_rename_refactor(stash_db, scene_information)
-                else:
-                    db_rename(stash_db, scene_information)
-            except Exception as err:
-                log.LogError(f"error when trying to update the database ({err}), revert the move...")
-                err = file_rename(scene_information['final_path'], scene_information['current_path'], scene_information)
-                if err:
-                    raise Exception("rename")
-                raise Exception("database update")
-            if i == 0:
-                associated_rename(scene_information)
-            if template.get("path"):
-                if "clean_tag" in template["path"]["option"]:
-                    graphql_removeScenesTag([scene_information['scene_id']], template["path"]["opt_details"]["clean_tag"])
-        except Exception as err:
-            log.LogError(f"Error during database operation ({err})")
-            if not db_conn:
-                log.LogDebug("[SQLITE] Database closed")
-                stash_db.close()
-            continue
-    if not db_conn and stash_db:
-        stash_db.close()
-        log.LogInfo("[SQLITE] Database updated and closed!")
-
-
-def exit_plugin(msg=None, err=None):
-    if msg is None and err is None:
-        msg = "plugin ended"
-    log.LogDebug("Execution time: {}s".format(round(time.time() - START_TIME, 5)))
-    output_json = {"output": msg, "error": err}
-    print(json.dumps(output_json))
-    sys.exit()
-
-
-if PLUGIN_ARGS:
-    log.LogDebug("--Starting Plugin 'Renamer'--")
-    if "bulk" not in PLUGIN_ARGS:
-        if "enable" in PLUGIN_ARGS:
-            log.LogInfo("Enable hook")
-            success = config_edit("enable_hook", True)
-        elif "disable" in PLUGIN_ARGS:
-            log.LogInfo("Disable hook")
-            success = config_edit("enable_hook", False)
-        elif "dryrun" in PLUGIN_ARGS:
-            if config.dry_run:
-                log.LogInfo("Disable dryrun")
-                success = config_edit("dry_run", False)
-            else:
-                log.LogInfo("Enable dryrun")
-                success = config_edit("dry_run", True)
-        if not success:
-            log.LogError("Script failed to change the value")
-        exit_plugin("script finished")
-else:
-    if not config.enable_hook:
-        exit_plugin("Hook disabled")
-    log.LogDebug("--Starting Hook 'Renamer'--")
-    FRAGMENT_HOOK_TYPE = FRAGMENT["args"]["hookContext"]["type"]
-    FRAGMENT_SCENE_ID = FRAGMENT["args"]["hookContext"]["id"]
-
-LOGFILE = config.log_file
-
-#Gallery.Update.Post
-#if FRAGMENT_HOOK_TYPE == "Scene.Update.Post":
-
-
-STASH_CONFIG = graphql_getConfiguration()
-STASH_DATABASE = STASH_CONFIG['general']['databasePath']
-
-# READING CONFIG
-
-ASSOCIATED_EXT = config.associated_extension
-
-FIELD_WHITESPACE_SEP = config.field_whitespaceSeperator
-FIELD_REPLACER = config.field_replacer
-
-FILENAME_ASTITLE = config.filename_as_title
-FILENAME_LOWER = config.lowercase_Filename
-FILENAME_TITLECASE = config.titlecase_Filename
-FILENAME_SPLITCHAR = config.filename_splitchar
-FILENAME_REMOVECHARACTER = config.removecharac_Filename
-FILENAME_REPLACEWORDS = config.replace_words
-
-PERFORMER_SPLITCHAR = config.performer_splitchar
-PERFORMER_LIMIT = config.performer_limit
-PERFORMER_LIMIT_KEEP = config.performer_limit_keep
-PERFORMER_SORT = config.performer_sort
-PERFORMER_IGNOREGENDER = config.performer_ignoreGender
-PREVENT_TITLE_PERF = config.prevent_title_performer
-
-DUPLICATE_SUFFIX = config.duplicate_suffix
-
-PREPOSITIONS_LIST = config.prepositions_list
-PREPOSITIONS_REMOVAL = config.prepositions_removal
-
-SQUEEZE_STUDIO_NAMES = config.squeeze_studio_names
-
-RATING_FORMAT = config.rating_format
-
-TAGS_SPLITCHAR = config.tags_splitchar
-TAGS_WHITELIST = config.tags_whitelist
-TAGS_BLACKLIST = config.tags_blacklist
-
-IGNORE_PATH_LENGTH = config.ignore_path_length
-
-PREVENT_CONSECUTIVE = config.prevent_consecutive
-REMOVE_EMPTY_FOLDER = config.remove_emptyfolder
-
-PROCESS_KILL = config.process_kill_attach
-PROCESS_ALLRESULT = config.process_getall
-UNICODE_USE = config.use_ascii
-
-ORDER_SHORTFIELD = config.order_field
-ORDER_SHORTFIELD.insert(0, None)
-
-ALT_DIFF_DISPLAY = config.alt_diff_display
-
-PATH_NOPERFORMER_FOLDER = config.path_noperformer_folder
-PATH_KEEP_ALRPERF = config.path_keep_alrperf
-PATH_NON_ORGANIZED = config.p_non_organized
-PATH_ONEPERFORMER = config.path_one_performer
-
-DB_VERSION = graphql_getBuild()
-if DB_VERSION >= DB_VERSION_FILE_REFACTOR:
-    FILE_QUERY = """
-            files {
-                path
-                video_codec
-                audio_codec
-                width
-                height
-                frame_rate
-                duration
-                bit_rate
-                fingerprints {
-                    type
-                    value
-                }
-            }
-    """
-else:
-    FILE_QUERY = """
-            path
-            file {
-                video_codec
-                audio_codec
-                width
-                height
-                framerate
-                bitrate
-                duration
-            }
-    """
-if DB_VERSION >= DB_VERSION_SCENE_STUDIO_CODE:
-    FILE_QUERY = f"        code{FILE_QUERY}"
-
-if PLUGIN_ARGS:
-    if "bulk" in PLUGIN_ARGS:
-        scenes = graphql_findScene(config.batch_number_scene, "ASC")
-        log.LogDebug(f"Count scenes: {len(scenes['scenes'])}")
-        progress = 0
-        progress_step = 1 / len(scenes['scenes'])
-        stash_db = connect_db(STASH_DATABASE)
-        if stash_db is None:
-            exit_plugin()
-        for scene in scenes['scenes']:
-            log.LogDebug(f"** Checking scene: {scene['title']} - {scene['id']} **")
-            try:
-                renamer(scene, stash_db)
-            except Exception as err:
-                log.LogError(f"main function error: {err}")
-            progress += progress_step
-            log.LogProgress(progress)
-        stash_db.close()
-        log.LogInfo("[SQLITE] Database closed!")
-else:
-    try:
-        renamer(FRAGMENT_SCENE_ID)
-    except Exception as err:
-        log.LogError(f"main function error: {err}")
-        traceback.print_exc()
-
-exit_plugin("Successful!")
-
diff --git a/plugins/renamerOnUpdate/renamerOnUpdate.yml b/plugins/renamerOnUpdate/renamerOnUpdate.yml
deleted file mode 100644
index 9a2d6b0f..00000000
--- a/plugins/renamerOnUpdate/renamerOnUpdate.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-name: renamerOnUpdate
-description: Rename/move filename based on a template.
-url: https://github.com/stashapp/CommunityScripts
-version: 2.4.4
-exec:
-  - python
-  - "{pluginDir}/renamerOnUpdate.py"
-interface: raw
-hooks:
-  - name: hook_rename
-    description: Rename/move file when you update a scene.
-    triggeredBy:
-      - Scene.Update.Post
-tasks:
-  - name: 'Disable'
-    description: Disable the hook
-    defaultArgs:
-      mode: disable
-  - name: 'Enable'
-    description: Enable the hook
-    defaultArgs:
-      mode: enable
-  - name: 'Dryrun'
-    description: Enable/disable dry-run
-    defaultArgs:
-      mode: dryrun
-  - name: 'Rename scenes'
-    description: Rename all your scenes based on your config.
-    defaultArgs:
-      mode: bulk
-
diff --git a/plugins/renamerOnUpdate/renamerOnUpdate_config.py b/plugins/renamerOnUpdate/renamerOnUpdate_config.py
deleted file mode 100644
index bfe17a50..00000000
--- a/plugins/renamerOnUpdate/renamerOnUpdate_config.py
+++ /dev/null
@@ -1,275 +0,0 @@
-###################################################################
-#       General information         #
-# -----------------------------------------------------------------
-# Available elements for renaming:
-#   $oshash 
-#   $checksum 
-#   $date 
-#   $date_format
-#   $year 
-#   $performer 
-#   $title 
-#   $height 
-#   $resolution 
-#   $duration
-#   $bitrate (megabits per second)
-#   $studio 
-#   $parent_studio 
-#   $studio_family 
-#   $rating
-#   $tags
-#   $video_codec 
-#   $audio_codec
-#   $movie_scene
-#   $movie_title
-#   $movie_year
-#   $movie_scene
-#   $stashid_scene
-#   $stashid_performer
-#   $studio_code
-#
-# Note:
-# $date_format: can be edited with date_format settings
-# $duration: can be edited with duration_format settings
-# $studio_family: If parent studio exists use it, else use the studio name.
-# $performer: If more than * performers linked to the scene, this field will be ignored. Limit this number at Settings section below (default: 3)
-# $resolution: SD/HD/UHD/VERTICAL (for phone) | $height: 720p 1080p 4k 5k 6k 8k
-# $movie_scene: "scene #" # = index scene
-# -----------------------------------------------------------------
-# Example templates:
-# 
-# $title                                    == Her Fantasy Ball
-# $date $title                              == 2016-12-29 Her Fantasy Ball
-# $date.$title                              == 2016-12-29.Her Fantasy Ball
-# $year $title $height                      == 2016 Her Fantasy Ball 1080p
-# $year_$title-$height                      == 2016_Her Fantasy Ball-1080p
-# $date $performer - $title [$studio]       == 2016-12-29 Eva Lovia - Her Fantasy Ball [Sneaky Sex]
-# $parent_studio $date $performer - $title  == Reality Kings 2016-12-29 Eva Lovia - Her Fantasy Ball
-# $date $title - $tags                      == 2016-12-29 Her Fantasy Ball - Blowjob Cumshot Facial Tattoo
-#
-
-####################################################################
-#           TEMPLATE FILENAME (Rename your files)
-
-# Priority : Tags > Studios > Default
-
-# Templates to use for given tags
-# Add or remove as needed or leave it empty/comment out
-# you can specific group with {}. exemple: [$studio] {$date -} $title, the '-' will be removed if no date
-tag_templates = {
-    # "!1. Western": "$date $performer - $title [$studio]",
-    # "!1. JAV": "$title",
-    # "!1. Anime": "$title $date [$studio]"
-}
-
-# Adjust the below if you want to use studio names instead of tags for the renaming templates
-studio_templates = {
-
-}
-
-# Change to True to use the default template if no specific tag/studio is found
-use_default_template = False
-# Default template, adjust as needed
-default_template = "$date $title"
-
-####################################################################
-#           TEMPLATE PATH  (Move your files)
-
-# $studio_hierarchy: create the whole hierarchy folder (MindGeek/Brazzers/Hot And Mean/video.mp4)
-# ^* = parent of folder (E:\Movies\video.mp4 -> E:\Movies\)
-
-# trigger with a specific tag
-# "tagname": "path"
-# ex: "plugin_move": r"E:\Movies\R18\$studio_hierarchy"
-p_tag_templates = {
-}
-
-
-p_studio_templates = {
-}
-
-# match a path
-# "match path": "destination"
-# ex: r"E:\Film\R18\2. Test\A trier": r"E:\Film\R18\2. Test\A trier\$performer",
-p_path_templates = {
-}
-
-# change to True to use the default template if no specific tag/studio is found
-p_use_default_template = False
-# default template, adjust as needed
-p_default_template = r"^*\$performer"
-
-# if unorganized, ignore other templates, use this path
-p_non_organized = r""
-
-# option if tag is present
-# "tagname": [option]
-# clean_tag: remove the tag after the rename
-# inverse_performer: change the last/first name (Jane Doe -> Doe Jane)
-# dry_run: activate dry_run for this scene
-# ex: "plugin_move": ["clean_tag"]
-p_tag_option = {
-}
-######################################
-#               Logging              #
-
-# File to save what is renamed, can be useful if you need to revert changes.
-# Will look like: IDSCENE|OLD_PATH|NEW_PATH
-# Leave Blank ("") or use None if you don't want to use a log file, or a working path like: C:\Users\USERNAME\.stash\plugins\Hooks\rename_log.txt
-log_file = r""
-
-######################################
-#               Settings             #
-
-# rename associated file (subtitle, funscript) if present
-associated_extension = ["srt", "vtt", "funscript"]
-
-# use filename as title if no title is set
-# it will cause problem if you update multiple time the same scene without title.
-filename_as_title = False
-
-# Character which replaces every space in the filename
-# Common values are "." and "_"
-# e. g.:
-# "."
-# 2016-12-29.Eva.Lovia.-.Her.Fantasy.Ball
-filename_splitchar = " "
-
-# replace space for stash field (title, performer...), if you have a title 'I love Stash' it can become 'I_love_Stash'
-field_whitespaceSeperator = ""
-# Remove/Replace character from field (not using regex)
-# "field": {"replace": "foo","with": "bar"}
-# ex: "$studio": {"replace": "'","with": ""} My Dad's Hot Girlfriend --> My Dads Hot Girlfriend
-field_replacer = {
-}
-
-# Match and replace.
-# "match": ["replace with", "system"] the second element of the list determine the system used. If you don't put this element, the default is word
-# regex: match a regex, word: match a word, any: match a term
-# difference between 'word' & 'any': word is between seperator (space, _, -), any is anything ('ring' would replace 'during')
-# ex:   "Scene": ["Sc.", "word"]    - Replace Scene by Sc.
-#       r"S\d+:E\d+": ["", "regex"] - Remove Sxx:Ex (x is a digit)
-replace_words = {
-}
-
-# Date format for $date_format field, check: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes
-date_format = r"%Y-%m-%d"
-# Duration format, check table: https://docs.python.org/3/library/time.html#time.strftime
-# exemple: %H;%M;%S -> 00;35;20 (You can't have ':' character in filename)
-# If empty, it will give you the duration as seconds
-duration_format = r""
-
-# put the filename in lowercase
-lowercase_Filename = False
-# filename in title case (Capitalises each word and lowercases the rest)
-titlecase_Filename = False
-# remove these characters if there are present in the filename
-removecharac_Filename = ",#"
-
-# Character to use as a performer separator.
-performer_splitchar = " "
-# Maximum number of performer names in the filename. If there are more than that in a scene the filename will not include any performer name!
-performer_limit = 3
-# The filename with have the name of performer before reaching the limit (if limit=3, the filename can contains 3 performers for a 4 performers scenes)
-performer_limit_keep = False
-# sorting performer (name, id, rating, favorite, mix (favorite > rating > name), mixid (..>..> id))
-performer_sort = "id"
-# ignore certain gender. Available "MALE" "FEMALE" "TRANSGENDER_MALE" "TRANSGENDER_FEMALE" "INTERSEX" "NON_BINARY" "UNDEFINED"
-performer_ignoreGender = []
-
-# word attached at end if multiple file for same scene [FileRefactor]
-duplicate_suffix = ["", "_1", "_2", "_3", "_4", "_5", "_6", "_7", "_8", "_9", "_10"]
-
-# If $performer is before $title, prevent having duplicate text. 
-# e.g.:
-# Template used: $year $performer - $title
-# 2016 Dani Daniels - Dani Daniels in ***.mp4 --> 2016 Dani Daniels in ***.mp4
-prevent_title_performer = False
-
-## Path mover related
-# remove consecutive (/FolderName/FolderName/video.mp4 -> FolderName/video.mp4
-prevent_consecutive = True
-# check when the file has moved that the old directory is empty, if empty it will remove it.
-remove_emptyfolder = True
-# the folder only contains 1 performer name. Else it will look the same as for filename
-path_one_performer = True
-# if there is no performer on the scene, the $performer field will be replaced by "NoPerformer" so a folder "NoPerformer" will be created
-path_noperformer_folder = False
-# if the folder already have a performer name, it won't change it
-path_keep_alrperf = True
-
-# Removes prepositions from the beginning of titles
-prepositions_list = ['The', 'A', 'An']
-prepositions_removal = False
-
-# Squeeze studio names removes all spaces in studio, parent studio and studio family name
-# e. g.:
-# Reality Kings --> RealityKings
-# Team Skeet Extras --> TeamSkeetExtras
-squeeze_studio_names = False
-
-# Rating indicator option to identify the number correctly in your OS file search
-# Separated from the template handling above to avoid having only "RTG" in the filename for scenes without ratings
-# e. g.:
-# "{}" with scene rating of 5       == 5
-# "RTG{}" with scene rating of 5    == RTG5
-# "{}-stars" with scene rating 3    == 3-stars
-rating_format = "{}"
-
-# Character to use as a tag separator.
-tags_splitchar = " "
-# Include and exclude tags
-# 	Tags will be compared strictly. "pantyhose" != "Pantyhose" and "panty hose" != "pantyhose"
-# Option 1: If you're using whitelist, every other tag which is not listed there will be ignored in the filename
-# Option 2: All tags in the tags_blacklist array will be ignored in the filename. Every other tag will be used.
-# Option 3: Leave both arrays empty if you're looking for every tag which is linked to the scene. 
-# 			Attention: Only recommended if the scene linked tags number is not that big due to maxiumum filename length
-tags_whitelist = [
-    # "Brunette", "Blowjob"
-]
-
-tags_blacklist = [
-	# ignored tags...
-]
-
-# Only rename 'Organized' scenes.
-only_organized = False
-
-# If the new path is over 240 characters, the plugin will try to reduce it. Set to True to ignore that.
-ignore_path_length = False
-
-# Field to remove if the path is too long. First in list will be removed then second then ... if length is still too long.
-order_field = ["$video_codec", "$audio_codec", "$resolution", "tags", "rating", "$height", "$studio_family", "$studio", "$parent_studio", "$performer"]
-
-# Alternate way to show diff. Not useful at all.
-alt_diff_display = False
-
-# number of scene process by the task renamer. -1 = all scenes
-batch_number_scene = -1
-
-# disable/enable the hook. You can edit this value in 'Plugin Tasks' inside of Stash.
-enable_hook = True
-# disable/enable dry mode. Do a trial run with no permanent changes. Can write into a file (dryrun_renamerOnUpdate.txt), set a path for log_file. 
-# You can edit this value in 'Plugin Tasks' inside of Stash.
-dry_run = False
-# Choose if you want to append to (True) or overwrite (False) the dry-run log file.
-dry_run_append = True
-######################################
-#            Module Related          #
-
-# ! OPTIONAL module settings. Not needed for basic operation !
-
-# = psutil module (https://pypi.org/project/psutil/) =
-# Gets a list of all processes instead of stopping after the first one. Enabling it slows down the plugin
-process_getall = False
-# If the file is used by a process, the plugin will kill it. IT CAN MAKE STASH CRASH TOO. 
-process_kill_attach = False
-# =========================
-
-# = Unidecode module (https://pypi.org/project/Unidecode/) =
-# Check site mentioned for more details. 
-# TL;DR: Prevent having non common characters by replacing them.
-# Warning: If you have non-latin characters (Cyrillic, Kanji, Arabic, ...), the result will be extremely different.
-use_ascii = False 
-# =========================
-
diff --git a/plugins/sceneCoverCropper/sceneCoverCropper.js b/plugins/sceneCoverCropper/sceneCoverCropper.js
deleted file mode 100644
index 7d53c4ee..00000000
--- a/plugins/sceneCoverCropper/sceneCoverCropper.js
+++ /dev/null
@@ -1,145 +0,0 @@
-// By ScruffyNerf
-// Ported by feederbox826
-
-(function () {
-    let cropping = false;
-    let cropper = null;
-    
-    try {
-        const img = document.createElement('img');
-        new Cropper(img)
-    } catch (e) {
-        console.error("Cropper not loaded - please install 4. CropperJS from CommunityScripts")
-    }
-    try {
-        stash.getVersion()
-    } catch (e) {
-        console.error("Stash not loaded - please install 1. stashUserscriptLibrary from CommunityScripts")
-    }
-
-    function setupCropper() {
-        const cropBtnContainerId = "crop-btn-container";
-        if (document.getElementById(cropBtnContainerId)) return
-        const sceneId = window.location.pathname.replace('/scenes/', '').split('/')[0];
-        const sceneImage = document.querySelector("img.scene-cover")
-        
-        var cropperModal = document.createElement("dialog");
-        cropperModal.style.width = "90%";
-        cropperModal.style.border = "none";
-        cropperModal.classList.add('bg-dark');
-        document.body.appendChild(cropperModal);
-        
-        var cropperContainer = document.createElement("div");
-        cropperContainer.style.width = "100%";
-        cropperContainer.style.height = "auto";
-        cropperContainer.style.margin = "auto";
-        cropperModal.appendChild(cropperContainer);
-        
-        var image = sceneImage.cloneNode();
-        image.style.display = "block";
-        image.style.maxWidth = "100%";
-        cropperContainer.appendChild(image);
-        
-        var cropBtnContainer = document.createElement('div');
-        cropBtnContainer.setAttribute("id", cropBtnContainerId);
-        cropBtnContainer.classList.add('d-flex','flex-row','justify-content-center','align-items-center');
-        cropBtnContainer.style.gap = "10px";
-        cropperModal.appendChild(cropBtnContainer);
-        
-        
-        sceneImage.parentElement.parentElement.style.flexFlow = 'column';
-        
-        const cropInfo = document.createElement('p');
-        cropInfo.style.all = "revert";
-        cropInfo.classList.add('text-white');
-        
-        const cropStart = document.createElement('button');
-        cropStart.setAttribute("id", "crop-start");
-        cropStart.classList.add('btn', 'btn-primary');
-        cropStart.innerText = 'Crop Image';
-        cropStart.addEventListener('click', evt => {
-            cropping = true;
-            cropStart.style.display = 'none';
-            cropCancel.style.display = 'inline-block';
-            
-            //const isVertical = image.naturalHeight > image.naturalWidth;
-            //const aspectRatio = isVertical ? 3/2 : NaN
-            const aspectRatio = NaN
-
-            cropper = new Cropper(image, {
-                viewMode: 1,
-                initialAspectRatio: aspectRatio,
-                movable: false,
-                rotatable: false,
-                scalable: false,
-                zoomable: false,
-                zoomOnTouch: false,
-                zoomOnWheel: false,
-                ready() {
-                    cropAccept.style.display = 'inline-block';
-                },
-                crop(e) {
-                    cropInfo.innerText = `X: ${Math.round(e.detail.x)}, Y: ${Math.round(e.detail.y)}, Width: ${Math.round(e.detail.width)}px, Height: ${Math.round(e.detail.height)}px`;
-                }
-            });
-            cropperModal.showModal();
-        });
-        sceneImage.parentElement.appendChild(cropStart);
-        
-        const cropAccept = document.createElement('button');
-        cropAccept.setAttribute("id", "crop-accept");
-        cropAccept.classList.add('btn', 'btn-success', 'mr-2');
-        cropAccept.innerText = 'OK';
-        cropAccept.addEventListener('click', async evt => {
-            cropping = false;
-            cropStart.style.display = 'inline-block';
-            cropAccept.style.display = 'none';
-            cropCancel.style.display = 'none';
-            cropInfo.innerText = '';
-            
-            const reqData = {
-                "operationName": "SceneUpdate",
-                "variables": {
-                    "input": {
-                        "cover_image": cropper.getCroppedCanvas().toDataURL(),
-                        "id": sceneId
-                    }
-                },
-                "query": `mutation SceneUpdate($input: SceneUpdateInput!) {
-                    sceneUpdate(input: $input) {
-                        id
-                    }
-                }`
-            }
-            await stash.callGQL(reqData);
-            reloadImg(image.src);
-            cropper.destroy();
-            cropperModal.close("cropAccept");
-        });
-        cropBtnContainer.appendChild(cropAccept);
-
-        const cropCancel = document.createElement('button');
-        cropCancel.setAttribute("id", "crop-accept");
-        cropCancel.classList.add('btn', 'btn-danger');
-        cropCancel.innerText = 'Cancel';
-        cropCancel.addEventListener('click', evt => {
-            cropping = false;
-            cropStart.style.display = 'inline-block';
-            cropAccept.style.display = 'none';
-            cropCancel.style.display = 'none';
-            cropInfo.innerText = '';
-
-            cropper.destroy();
-            cropperModal.close("cropCancel");
-        });
-        cropBtnContainer.appendChild(cropCancel);
-        cropAccept.style.display = 'none';
-        cropCancel.style.display = 'none';
-
-        cropBtnContainer.appendChild(cropInfo);
-    }
-
-    stash.addEventListener('page:scene', function () {
-        waitForElementId('scene-edit-details', setupCropper);
-    });
-})();
diff --git a/plugins/sceneCoverCropper/sceneCoverCropper.yml b/plugins/sceneCoverCropper/sceneCoverCropper.yml
deleted file mode 100644
index 53f71118..00000000
--- a/plugins/sceneCoverCropper/sceneCoverCropper.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-name: Scene Cover Cropper
-# requires: CropperJS
-description: Crop Scene Cover Images
-version: 1.0
-ui:
-  requires:
-  - CropperJS
-  css:
-  javascript:
-  - sceneCoverCropper.js
\ No newline at end of file
diff --git a/plugins/setSceneCoverFromFile/set_cover.py b/plugins/setSceneCoverFromFile/set_cover.py
deleted file mode 100644
index ddb7be22..00000000
--- a/plugins/setSceneCoverFromFile/set_cover.py
+++ /dev/null
@@ -1,77 +0,0 @@
-import os
-import re
-import sys
-import json
-import base64
-
-try:
-	import stashapi.log as log
-	from stashapi.tools import file_to_base64
-	from stashapi.stashapp import StashInterface
-except ModuleNotFoundError:
-	print("You need to install the stashapi module. (pip install stashapp-tools)",
-	 file=sys.stderr)
-
-MANUAL_ROOT = None # /some/other/path to override scanning all stashes
-cover_pattern = r'(?:thumb|poster|cover)\.(?:jpg|png)'
-
-def main():
-	global stash, mode_arg
-	json_input = json.loads(sys.stdin.read())
-
-	stash = StashInterface(json_input["server_connection"])
-	mode_arg = json_input['args']['mode']
-
-	try:
-		if MANUAL_ROOT:
-			scan(MANUAL_ROOT, handle_cover)
-		else:
-			for stash_path in get_stash_paths():
-				scan(stash_path, handle_cover)
-	except Exception as e:
-		log.error(e)
-
-	out = json.dumps({"output": "ok"})
-	print( out + "\n")
-
-
-def handle_cover(path, file):
-	filepath = os.path.join(path, file)
-
-
-	b64img = file_to_base64(filepath)
-	if not b64img:
-		log.warning(f"Could not parse {filepath} to b64image")
-		return
-
-	scenes = stash.find_scenes(f={
-		"path": {
-			"modifier": "INCLUDES",
-			"value": f"{path}\""
-		}
-	}, fragment="id")
-
-	log.info(f'Found Cover: {[int(s["id"]) for s in scenes]}|{filepath}')
-
-	if mode_arg == "set_cover":
-		for scene in scenes:
-			stash.update_scene({
-				"id": scene["id"],
-				"cover_image": b64img
-			})
-		log.info(f'Applied cover to {len(scenes)} scenes')
-
-def get_stash_paths():
-		config = stash.get_configuration("general { stashes { path excludeVideo } }")
-		stashes = config["configuration"]["general"]["stashes"]
-		return [s["path"] for s in stashes if not s["excludeVideo"]]
-
-def scan(ROOT_PATH, _callback):
-	log.info(f'Scanning {ROOT_PATH}')
-	for root, dirs, files in os.walk(ROOT_PATH):
-		for file in files:
-			if re.match(cover_pattern, file, re.IGNORECASE):
-				_callback(root, file)
-
-if __name__ == '__main__':
-	main()
\ No newline at end of file
diff --git a/plugins/setSceneCoverFromFile/set_scene_cover.yml b/plugins/setSceneCoverFromFile/set_scene_cover.yml
deleted file mode 100644
index f622f35f..00000000
--- a/plugins/setSceneCoverFromFile/set_scene_cover.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-name: Set Scene Cover 
-description: searches Stash for Scenes with a cover image in the same folder and sets the cover image in stash to that image
-version: 0.4
-url: https://github.com/stg-annon/CommunityScripts/tree/main/plugins/setSceneCoverFromFile
-exec:
-  - python
-  - "{pluginDir}/set_cover.py"
-interface: raw
-tasks:
-  - name: Scan
-    description: searches stash dirs for cover images and logs results
-    defaultArgs:
-      mode: scan
-  - name: Set Cover
-    description: searches for cover images and sets any stash scene found in the same dir to that image
-    defaultArgs:
-      mode: set_cover
\ No newline at end of file
diff --git a/plugins/stashUserscriptLibrary/StashUserscriptLibrary.yml b/plugins/stashUserscriptLibrary/StashUserscriptLibrary.yml
deleted file mode 100644
index 2a7d126e..00000000
--- a/plugins/stashUserscriptLibrary/StashUserscriptLibrary.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-name: Stash Userscript Library
-description: Exports utility functions and a Stash class that emits events whenever a GQL response is received and whenenever a page navigation change is detected
-version: 1.0
-ui:
-  javascript:
-  - stashUserscriptLibrary.js
diff --git a/plugins/stashUserscriptLibrary/stashUserscriptLibrary.js b/plugins/stashUserscriptLibrary/stashUserscriptLibrary.js
deleted file mode 100644
index 9cac4202..00000000
--- a/plugins/stashUserscriptLibrary/stashUserscriptLibrary.js
+++ /dev/null
@@ -1,1086 +0,0 @@
-const stashListener = new EventTarget();
-
-class Logger {
-    constructor(enabled) {
-        this.enabled = enabled;
-    }
-    debug() {
-        if (!this.enabled) return;
-        console.debug(...arguments);
-    }
-}
-
-
-class Stash extends EventTarget {
-    constructor({
-        pageUrlCheckInterval = 1,
-        logging = false
-    } = {}) {
-        super();
-        this.log = new Logger(logging);
-        this._pageUrlCheckInterval = pageUrlCheckInterval;
-        this.fireOnHashChangesToo = true;
-        this.pageURLCheckTimer = setInterval(() => {
-            // Loop every 500ms
-            if (this.lastPathStr !== location.pathname || this.lastQueryStr !== location.search || (this.fireOnHashChangesToo && this.lastHashStr !== location.hash)) {
-                this.lastPathStr = location.pathname;
-                this.lastQueryStr = location.search;
-                this.lastHashStr = location.hash;
-                this.gmMain();
-            }
-        }, this._pageUrlCheckInterval);
-        stashListener.addEventListener('response', (evt) => {
-            if (evt.detail.data?.plugins) {
-                this.getPluginVersion(evt.detail);
-            }
-            this.processRemoteScenes(evt.detail);
-            this.processScene(evt.detail);
-            this.processScenes(evt.detail);
-            this.processStudios(evt.detail);
-            this.processPerformers(evt.detail);
-            this.processApiKey(evt.detail);
-            this.dispatchEvent(new CustomEvent('stash:response', {
-                'detail': evt.detail
-            }));
-        });
-        stashListener.addEventListener('pluginVersion', (evt) => {
-            if (this.pluginVersion !== evt.detail) {
-                this.pluginVersion = evt.detail;
-                this.dispatchEvent(new CustomEvent('stash:pluginVersion', {
-                    'detail': evt.detail
-                }));
-            }
-        });
-        this.version = [0, 0, 0];
-        this.getVersion();
-        this.pluginVersion = null;
-        this.getPlugins().then(plugins => this.getPluginVersion(plugins));
-        this.visiblePluginTasks = ['Userscript Functions'];
-        this.settingsCallbacks = [];
-        this.settingsId = 'userscript-settings';
-        this.remoteScenes = {};
-        this.scenes = {};
-        this.studios = {};
-        this.performers = {};
-        this.userscripts = [];
-    }
-    async getVersion() {
-        const reqData = {
-            "operationName": "",
-            "variables": {},
-            "query": `query version {
-    version {
-        version
-    }
-}
-`
-        };
-        const data = await this.callGQL(reqData);
-        const versionString = data.data.version.version;
-        this.version = versionString.substring(1).split('.').map(o => parseInt(o));
-    }
-    compareVersion(minVersion) {
-        let [currMajor, currMinor, currPatch = 0] = this.version;
-        let [minMajor, minMinor, minPatch = 0] = minVersion.split('.').map(i => parseInt(i));
-        if (currMajor > minMajor) return 1;
-        if (currMajor < minMajor) return -1;
-        if (currMinor > minMinor) return 1;
-        if (currMinor < minMinor) return -1;
-        return 0;
-
-    }
-    comparePluginVersion(minPluginVersion) {
-        if (!this.pluginVersion) return -1;
-        let [currMajor, currMinor, currPatch = 0] = this.pluginVersion.split('.').map(i => parseInt(i));
-        let [minMajor, minMinor, minPatch = 0] = minPluginVersion.split('.').map(i => parseInt(i));
-        if (currMajor > minMajor) return 1;
-        if (currMajor < minMajor) return -1;
-        if (currMinor > minMinor) return 1;
-        if (currMinor < minMinor) return -1;
-        return 0;
-
-    }
-    async runPluginTask(pluginId, taskName, args = []) {
-        const reqData = {
-            "operationName": "RunPluginTask",
-            "variables": {
-                "plugin_id": pluginId,
-                "task_name": taskName,
-                "args": args
-            },
-            "query": "mutation RunPluginTask($plugin_id: ID!, $task_name: String!, $args: [PluginArgInput!]) {\n  runPluginTask(plugin_id: $plugin_id, task_name: $task_name, args: $args)\n}\n"
-        };
-        return this.callGQL(reqData);
-    }
-    async callGQL(reqData) {
-        const options = {
-            method: 'POST',
-            body: JSON.stringify(reqData),
-            headers: {
-                'Content-Type': 'application/json'
-            }
-        }
-
-        try {
-            const res = await window.fetch('/graphql', options);
-            this.log.debug(res);
-            return res.json();
-        } catch (err) {
-            console.error(err);
-        }
-    }
-    async getFreeOnesStats(link) {
-        try {
-            const doc = await fetch(link)
-                .then(function(response) {
-                    // When the page is loaded convert it to text
-                    return response.text()
-                })
-                .then(function(html) {
-                    // Initialize the DOM parser
-                    var parser = new DOMParser();
-
-                    // Parse the text
-                    var doc = parser.parseFromString(html, "text/html");
-
-                    // You can now even select part of that html as you would in the regular DOM
-                    // Example:
-                    // var docArticle = doc.querySelector('article').innerHTML;
-
-                    console.log(doc);
-                    return doc
-                })
-                .catch(function(err) {
-                    console.log('Failed to fetch page: ', err);
-                });
-
-            var data = new Object();
-            data.rank = doc.querySelector('rank-chart-button');
-            console.log(data.rank);
-            data.views = doc.querySelector('.d-none.d-m-flex.flex-column.align-items-center.global-header > div.font-weight-bold').textContent;
-            data.votes = '0'
-            return JSON.stringify(data);
-        } catch (err) {
-            console.error(err);
-        }
-    }
-    async getPlugins() {
-        const reqData = {
-            "operationName": "Plugins",
-            "variables": {},
-            "query": `query Plugins {
-              plugins {
-                id
-                name
-                description
-                url
-                version
-                tasks {
-                  name
-                  description
-                  __typename
-                }
-                hooks {
-                  name
-                  description
-                  hooks
-                }
-              }
-            }
-            `
-        };
-        return this.callGQL(reqData);
-    }
-    async getPluginVersion(plugins) {
-        let version = null;
-        for (const plugin of plugins?.data?.plugins || []) {
-            if (plugin.id === 'userscript_functions') {
-                version = plugin.version;
-            }
-        }
-        stashListener.dispatchEvent(new CustomEvent('pluginVersion', {
-            'detail': version
-        }));
-    }
-    async getStashBoxes() {
-        const reqData = {
-            "operationName": "Configuration",
-            "variables": {},
-            "query": `query Configuration {
-                        configuration {
-                          general {
-                            stashBoxes {
-                              endpoint
-                              api_key
-                              name
-                            }
-                          }
-                        }
-                      }`
-        };
-        return this.callGQL(reqData);
-    }
-    async getApiKey() {
-        const reqData = {
-            "operationName": "Configuration",
-            "variables": {},
-            "query": `query Configuration {
-                        configuration {
-                          general {
-                            apiKey
-                          }
-                        }
-                      }`
-        };
-        return this.callGQL(reqData);
-    }
-    matchUrl(location, fragment) {
-        const regexp = concatRegexp(new RegExp(location.origin), fragment);
-        this.log.debug(regexp, location.href.match(regexp));
-        return location.href.match(regexp) != null;
-    }
-    createSettings() {
-        waitForElementId('configuration-tabs-tabpane-system', async (elementId, el) => {
-            let section;
-            if (!document.getElementById(this.settingsId)) {
-                section = document.createElement("div");
-                section.setAttribute('id', this.settingsId);
-                section.classList.add('setting-section');
-                section.innerHTML = `<h1>Userscript Settings</h1>`;
-                el.appendChild(section);
-
-                const expectedApiKey = (await this.getApiKey())?.data?.configuration?.general?.apiKey || '';
-                const expectedUrl = window.location.origin;
-
-                const serverUrlInput = await this.createSystemSettingTextbox(section, 'userscript-section-server-url', 'userscript-server-url', 'Stash Server URL', '', 'Server URL…', true);
-                serverUrlInput.addEventListener('change', () => {
-                    const value = serverUrlInput.value || '';
-                    if (value) {
-                        this.updateConfigValueTask('STASH', 'url', value);
-                        alert(`Userscripts plugin server URL set to ${value}`);
-                    } else {
-                        this.getConfigValueTask('STASH', 'url').then(value => {
-                            serverUrlInput.value = value;
-                        });
-                    }
-                });
-                serverUrlInput.disabled = true;
-                serverUrlInput.value = expectedUrl;
-                this.getConfigValueTask('STASH', 'url').then(value => {
-                    if (value !== expectedUrl) {
-                        return this.updateConfigValueTask('STASH', 'url', expectedUrl);
-                    }
-                });
-
-                const apiKeyInput = await this.createSystemSettingTextbox(section, 'userscript-section-server-apikey', 'userscript-server-apikey', 'Stash API Key', '', 'API Key…', true);
-                apiKeyInput.addEventListener('change', () => {
-                    const value = apiKeyInput.value || '';
-                    this.updateConfigValueTask('STASH', 'api_key', value);
-                    if (value) {
-                        alert(`Userscripts plugin server api key set to ${value}`);
-                    } else {
-                        alert(`Userscripts plugin server api key value cleared`);
-                    }
-                });
-                apiKeyInput.disabled = true;
-                apiKeyInput.value = expectedApiKey;
-                this.getConfigValueTask('STASH', 'api_key').then(value => {
-                    if (value !== expectedApiKey) {
-                        return this.updateConfigValueTask('STASH', 'api_key', expectedApiKey);
-                    }
-                });
-            } else {
-                section = document.getElementById(this.settingsId);
-            }
-
-            for (const callback of this.settingsCallbacks) {
-                callback(this.settingsId, section);
-            }
-
-            if (this.pluginVersion) {
-                this.dispatchEvent(new CustomEvent('stash:pluginVersion', {
-                    'detail': this.pluginVersion
-                }));
-            }
-
-        });
-    }
-    addSystemSetting(callback) {
-        const section = document.getElementById(this.settingsId);
-        if (section) {
-            callback(this.settingsId, section);
-        }
-        this.settingsCallbacks.push(callback);
-    }
-    async createSystemSettingCheckbox(containerEl, settingsId, inputId, settingsHeader, settingsSubheader) {
-        const section = document.createElement("div");
-        section.setAttribute('id', settingsId);
-        section.classList.add('card');
-        section.style.display = 'none';
-        section.innerHTML = `<div class="setting">
-        <div>
-        <h3>${settingsHeader}</h3>
-        <div class="sub-heading">${settingsSubheader}</div>
-        </div>
-        <div>
-        <div class="custom-control custom-switch">
-        <input type="checkbox" id="${inputId}" class="custom-control-input">
-        <label title="" for="${inputId}" class="custom-control-label"></label>
-        </div>
-        </div>
-        </div>`;
-        containerEl.appendChild(section);
-        return document.getElementById(inputId);
-    }
-    async createSystemSettingTextbox(containerEl, settingsId, inputId, settingsHeader, settingsSubheader, placeholder, visible) {
-        const section = document.createElement("div");
-        section.setAttribute('id', settingsId);
-        section.classList.add('card');
-        section.style.display = visible ? 'flex' : 'none';
-        section.innerHTML = `<div class="setting">
-        <div>
-        <h3>${settingsHeader}</h3>
-        <div class="sub-heading">${settingsSubheader}</div>
-        </div>
-        <div>
-        <div class="flex-grow-1 query-text-field-group">
-        <input id="${inputId}" class="bg-secondary text-white border-secondary form-control" placeholder="${placeholder}">
-        </div>
-        </div>
-        </div>`;
-        containerEl.appendChild(section);
-        return document.getElementById(inputId);
-    }
-    get serverUrl() {
-        return window.location.origin;
-    }
-    gmMain() {
-        const location = window.location;
-        this.log.debug(URL, window.location);
-
-        // marker wall
-        if (this.matchUrl(location, /\/scenes\/markers/)) {
-            this.log.debug('[Navigation] Wall-Markers Page');
-            this.dispatchEvent(new Event('page:markers'));
-        }
-        // scene page
-        else if (this.matchUrl(location, /\/scenes\/\d+/)) {
-            this.log.debug('[Navigation] Scene Page');
-            this.dispatchEvent(new Event('page:scene'));
-        }
-        // scenes wall
-        else if (this.matchUrl(location, /\/scenes\?/)) {
-            this.processTagger();
-            this.dispatchEvent(new Event('page:scenes'));
-        }
-
-        // images wall
-        if (this.matchUrl(location, /\/images\?/)) {
-            this.log.debug('[Navigation] Wall-Images Page');
-            this.dispatchEvent(new Event('page:images'));
-        }
-        // image page
-        if (this.matchUrl(location, /\/images\/\d+/)) {
-            this.log.debug('[Navigation] Image Page');
-            this.dispatchEvent(new Event('page:image'));
-        }
-
-        // movie scenes page
-        else if (this.matchUrl(location, /\/movies\/\d+\?/)) {
-            this.log.debug('[Navigation] Movie Page - Scenes');
-            this.processTagger();
-            this.dispatchEvent(new Event('page:movie:scenes'));
-        }
-        // movie page
-        else if (this.matchUrl(location, /\/movies\/\d+/)) {
-            this.log.debug('[Navigation] Movie Page');
-            this.dispatchEvent(new Event('page:movie'));
-        }
-        // movies wall
-        else if (this.matchUrl(location, /\/movies\?/)) {
-            this.log.debug('[Navigation] Wall-Movies Page');
-            this.dispatchEvent(new Event('page:movies'));
-        }
-
-        // galleries wall
-        if (this.matchUrl(location, /\/galleries\?/)) {
-            this.log.debug('[Navigation] Wall-Galleries Page');
-            this.dispatchEvent(new Event('page:galleries'));
-        }
-        // gallery page
-        if (this.matchUrl(location, /\/galleries\/\d+/)) {
-            this.log.debug('[Navigation] Gallery Page');
-            this.dispatchEvent(new Event('page:gallery'));
-        }
-
-        // performer scenes page
-        if (this.matchUrl(location, /\/performers\/\d+\?/)) {
-            this.log.debug('[Navigation] Performer Page - Scenes');
-            this.processTagger();
-            this.dispatchEvent(new Event('page:performer:scenes'));
-        }
-        // performer appearswith page
-        if (this.matchUrl(location, /\/performers\/\d+\/appearswith/)) {
-            this.log.debug('[Navigation] Performer Page - Appears With');
-            this.processTagger();
-            this.dispatchEvent(new Event('page:performer:performers'));
-        }
-        // performer galleries page
-        else if (this.matchUrl(location, /\/performers\/\d+\/galleries/)) {
-            this.log.debug('[Navigation] Performer Page - Galleries');
-            this.dispatchEvent(new Event('page:performer:galleries'));
-        }
-        // performer movies page
-        else if (this.matchUrl(location, /\/performers\/\d+\/movies/)) {
-            this.log.debug('[Navigation] Performer Page - Movies');
-            this.dispatchEvent(new Event('page:performer:movies'));
-        }
-        // performer page
-        else if (this.matchUrl(location, /\/performers\//)) {
-            this.log.debug('[Navigation] Performers Page');
-            this.dispatchEvent(new Event('page:performer'));
-            this.dispatchEvent(new Event('page:performer:details'));
-
-            waitForElementClass('performer-tabs', (className, targetNode) => {
-                const observerOptions = {
-                    childList: true
-                }
-                const observer = new MutationObserver(mutations => {
-                    let isPerformerEdit = false;
-                    mutations.forEach(mutation => {
-                        mutation.addedNodes.forEach(node => {
-                            if (node.id === 'performer-edit') {
-                                isPerformerEdit = true;
-                            }
-                        });
-                    });
-                    if (isPerformerEdit) {
-                        this.dispatchEvent(new Event('page:performer:edit'));
-                    } else {
-                        this.dispatchEvent(new Event('page:performer:details'));
-                    }
-                });
-                observer.observe(targetNode[0], observerOptions);
-            });
-        }
-        // performers wall
-        else if (this.matchUrl(location, /\/performers\?/)) {
-            this.log.debug('[Navigation] Wall-Performers Page');
-            this.dispatchEvent(new Event('page:performers'));
-        }
-
-        // studio galleries page
-        if (this.matchUrl(location, /\/studios\/\d+\/galleries/)) {
-            this.log.debug('[Navigation] Studio Page - Galleries');
-            this.dispatchEvent(new Event('page:studio:galleries'));
-        }
-        // studio images page
-        else if (this.matchUrl(location, /\/studios\/\d+\/images/)) {
-            this.log.debug('[Navigation] Studio Page - Images');
-            this.dispatchEvent(new Event('page:studio:images'));
-        }
-        // studio performers page
-        else if (this.matchUrl(location, /\/studios\/\d+\/performers/)) {
-            this.log.debug('[Navigation] Studio Page - Performers');
-            this.dispatchEvent(new Event('page:studio:performers'));
-        }
-        // studio movies page
-        else if (this.matchUrl(location, /\/studios\/\d+\/movies/)) {
-            this.log.debug('[Navigation] Studio Page - Movies');
-            this.dispatchEvent(new Event('page:studio:movies'));
-        }
-        // studio childstudios page
-        else if (this.matchUrl(location, /\/studios\/\d+\/childstudios/)) {
-            this.log.debug('[Navigation] Studio Page - Child Studios');
-            this.dispatchEvent(new Event('page:studio:childstudios'));
-        }
-        // studio scenes page
-        else if (this.matchUrl(location, /\/studios\/\d+\?/)) {
-            this.log.debug('[Navigation] Studio Page - Scenes');
-            this.processTagger();
-            this.dispatchEvent(new Event('page:studio:scenes'));
-        }
-        // studio page
-        else if (this.matchUrl(location, /\/studios\/\d+/)) {
-            this.log.debug('[Navigation] Studio Page');
-            this.dispatchEvent(new Event('page:studio'));
-        }
-        // studios wall
-        else if (this.matchUrl(location, /\/studios\?/)) {
-            this.log.debug('[Navigation] Wall-Studios Page');
-            this.dispatchEvent(new Event('page:studios'));
-        }
-
-        // tag galleries page
-        if (this.matchUrl(location, /\/tags\/\d+\/galleries/)) {
-            this.log.debug('[Navigation] Tag Page - Galleries');
-            this.dispatchEvent(new Event('page:tag:galleries'));
-        }
-        // tag images page
-        else if (this.matchUrl(location, /\/tags\/\d+\/images/)) {
-            this.log.debug('[Navigation] Tag Page - Images');
-            this.dispatchEvent(new Event('page:tag:images'));
-        }
-        // tag markers page
-        else if (this.matchUrl(location, /\/tags\/\d+\/markers/)) {
-            this.log.debug('[Navigation] Tag Page - Markers');
-            this.dispatchEvent(new Event('page:tag:markers'));
-        }
-        // tag performers page
-        else if (this.matchUrl(location, /\/tags\/\d+\/performers/)) {
-            this.log.debug('[Navigation] Tag Page - Performers');
-            this.dispatchEvent(new Event('page:tag:performers'));
-        }
-        // tag scenes page
-        else if (this.matchUrl(location, /\/tags\/\d+\?/)) {
-            this.log.debug('[Navigation] Tag Page - Scenes');
-            this.processTagger();
-            this.dispatchEvent(new Event('page:tag:scenes'));
-        }
-        // tag page
-        else if (this.matchUrl(location, /\/tags\/\d+/)) {
-            this.log.debug('[Navigation] Tag Page');
-            this.dispatchEvent(new Event('page:tag'));
-        }
-        // tags any page
-        if (this.matchUrl(location, /\/tags\/\d+/)) {
-            this.log.debug('[Navigation] Tag Page - Any');
-            this.dispatchEvent(new Event('page:tag:any'));
-        }
-        // tags wall
-        else if (this.matchUrl(location, /\/tags\?/)) {
-            this.log.debug('[Navigation] Wall-Tags Page');
-            this.dispatchEvent(new Event('page:tags'));
-        }
-
-        // settings page tasks tab
-        if (this.matchUrl(location, /\/settings\?tab=tasks/)) {
-            this.log.debug('[Navigation] Settings Page Tasks Tab');
-            this.dispatchEvent(new Event('page:settings:tasks'));
-            this.hidePluginTasks();
-        }
-        // settings page system tab
-        else if (this.matchUrl(location, /\/settings\?tab=system/)) {
-            this.log.debug('[Navigation] Settings Page System Tab');
-            this.createSettings();
-            this.dispatchEvent(new Event('page:settings:system'));
-        }
-        // settings page (defaults to tasks tab)
-        else if (this.matchUrl(location, /\/settings/)) {
-            this.log.debug('[Navigation] Settings Page Tasks Tab');
-            this.dispatchEvent(new Event('page:settings:tasks'));
-            this.hidePluginTasks();
-        }
-
-        // stats page
-        if (this.matchUrl(location, /\/stats/)) {
-            this.log.debug('[Navigation] Stats Page');
-            this.dispatchEvent(new Event('page:stats'));
-        }
-    }
-    hidePluginTasks() {
-        // hide userscript functions plugin tasks
-        waitForElementByXpath("//div[@id='tasks-panel']//h3[text()='Userscript Functions']/ancestor::div[contains(@class, 'setting-group')]", (elementId, el) => {
-            const tasks = el.querySelectorAll('.setting');
-            for (const task of tasks) {
-                const taskName = task.querySelector('h3').innerText;
-                task.classList.add(this.visiblePluginTasks.indexOf(taskName) === -1 ? 'd-none' : 'd-flex');
-                this.dispatchEvent(new CustomEvent('stash:plugin:task', {
-                    'detail': {
-                        taskName,
-                        task
-                    }
-                }));
-            }
-        });
-    }
-    async updateConfigValueTask(sectionKey, propName, value) {
-        return this.runPluginTask("userscript_functions", "Update Config Value", [{
-            "key": "section_key",
-            "value": {
-                "str": sectionKey
-            }
-        }, {
-            "key": "prop_name",
-            "value": {
-                "str": propName
-            }
-        }, {
-            "key": "value",
-            "value": {
-                "str": value
-            }
-        }]);
-    }
-    async getConfigValueTask(sectionKey, propName) {
-        await this.runPluginTask("userscript_functions", "Get Config Value", [{
-            "key": "section_key",
-            "value": {
-                "str": sectionKey
-            }
-        }, {
-            "key": "prop_name",
-            "value": {
-                "str": propName
-            }
-        }]);
-
-        // poll logs until plugin task output appears
-        const prefix = `[Plugin / Userscript Functions] get_config_value: [${sectionKey}][${propName}] =`;
-        return this.pollLogsForMessage(prefix);
-    }
-    async pollLogsForMessage(prefix) {
-        const reqTime = Date.now();
-        const reqData = {
-            "variables": {},
-            "query": `query Logs {
-                        logs {
-                            time
-                            level
-                            message
-                        }
-                    }`
-        };
-        await new Promise(r => setTimeout(r, 500));
-        let retries = 0;
-        while (true) {
-            const delay = 2 ** retries * 100;
-            await new Promise(r => setTimeout(r, delay));
-            retries++;
-
-            const logs = await this.callGQL(reqData);
-            for (const log of logs.data.logs) {
-                const logTime = Date.parse(log.time);
-                if (logTime > reqTime && log.message.startsWith(prefix)) {
-                    return log.message.replace(prefix, '').trim();
-                }
-            }
-
-            if (retries >= 5) {
-                throw `Poll logs failed for message: ${prefix}`;
-            }
-        }
-    }
-    processTagger() {
-        waitForElementByXpath("//button[text()='Scrape All']", (xpath, el) => {
-            this.dispatchEvent(new CustomEvent('tagger', {
-                'detail': el
-            }));
-
-            const searchItemContainer = document.querySelector('.tagger-container').lastChild;
-
-            const observer = new MutationObserver(mutations => {
-                mutations.forEach(mutation => {
-                    mutation.addedNodes.forEach(node => {
-                        if (node?.classList?.contains('entity-name') && node.innerText.startsWith('Performer:')) {
-                            this.dispatchEvent(new CustomEvent('tagger:mutation:add:remoteperformer', {
-                                'detail': {
-                                    node,
-                                    mutation
-                                }
-                            }));
-                        } else if (node?.classList?.contains('entity-name') && node.innerText.startsWith('Studio:')) {
-                            this.dispatchEvent(new CustomEvent('tagger:mutation:add:remotestudio', {
-                                'detail': {
-                                    node,
-                                    mutation
-                                }
-                            }));
-                        } else if (node.tagName === 'SPAN' && node.innerText.startsWith('Matched:')) {
-                            this.dispatchEvent(new CustomEvent('tagger:mutation:add:local', {
-                                'detail': {
-                                    node,
-                                    mutation
-                                }
-                            }));
-                        } else if (node.tagName === 'UL') {
-                            this.dispatchEvent(new CustomEvent('tagger:mutation:add:container', {
-                                'detail': {
-                                    node,
-                                    mutation
-                                }
-                            }));
-                        } else if (node?.classList?.contains('col-lg-6')) {
-                            this.dispatchEvent(new CustomEvent('tagger:mutation:add:subcontainer', {
-                                'detail': {
-                                    node,
-                                    mutation
-                                }
-                            }));
-                        } else if (node.tagName === 'H5') { // scene date
-                            this.dispatchEvent(new CustomEvent('tagger:mutation:add:date', {
-                                'detail': {
-                                    node,
-                                    mutation
-                                }
-                            }));
-                        } else if (node.tagName === 'DIV' && node?.classList?.contains('d-flex') && node?.classList?.contains('flex-column')) { // scene stashid, url, details
-                            this.dispatchEvent(new CustomEvent('tagger:mutation:add:detailscontainer', {
-                                'detail': {
-                                    node,
-                                    mutation
-                                }
-                            }));
-                        } else {
-                            this.dispatchEvent(new CustomEvent('tagger:mutation:add:other', {
-                                'detail': {
-                                    node,
-                                    mutation
-                                }
-                            }));
-                        }
-                    });
-                });
-                this.dispatchEvent(new CustomEvent('tagger:mutations:searchitems', {
-                    'detail': mutations
-                }));
-            });
-            observer.observe(searchItemContainer, {
-                childList: true,
-                subtree: true
-            });
-
-            const taggerContainerHeader = document.querySelector('.tagger-container-header');
-            const taggerContainerHeaderObserver = new MutationObserver(mutations => {
-                this.dispatchEvent(new CustomEvent('tagger:mutations:header', {
-                    'detail': mutations
-                }));
-            });
-            taggerContainerHeaderObserver.observe(taggerContainerHeader, {
-                childList: true,
-                subtree: true
-            });
-
-            for (const searchItem of document.querySelectorAll('.search-item')) {
-                this.dispatchEvent(new CustomEvent('tagger:searchitem', {
-                    'detail': searchItem
-                }));
-            }
-
-            if (!document.getElementById('progress-bar')) {
-                const progressBar = createElementFromHTML(`<div id="progress-bar" class="progress"><div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div></div>`);
-                progressBar.classList.add('progress');
-                progressBar.style.display = 'none';
-                taggerContainerHeader.appendChild(progressBar);
-            }
-        });
-        waitForElementByXpath("//div[@class='tagger-container-header']/div/div[@class='row']/h4[text()='Configuration']", (xpath, el) => {
-            this.dispatchEvent(new CustomEvent('tagger:configuration', {
-                'detail': el
-            }));
-        });
-    }
-    setProgress(value) {
-        const progressBar = document.getElementById('progress-bar');
-        if (progressBar) {
-            progressBar.firstChild.style.width = value + '%';
-            progressBar.style.display = (value <= 0 || value > 100) ? 'none' : 'flex';
-        }
-    }
-    processRemoteScenes(data) {
-        if (data.data?.scrapeMultiScenes) {
-            for (const matchResults of data.data.scrapeMultiScenes) {
-                for (const scene of matchResults) {
-                    this.remoteScenes[scene.remote_site_id] = scene;
-                }
-            }
-        } else if (data.data?.scrapeSingleScene) {
-            for (const scene of data.data.scrapeSingleScene) {
-                this.remoteScenes[scene.remote_site_id] = scene;
-            }
-        }
-    }
-    processScene(data) {
-        if (data.data.findScene) {
-            this.scenes[data.data.findScene.id] = data.data.findScene;
-        }
-    }
-    processScenes(data) {
-        if (data.data.findScenes?.scenes) {
-            for (const scene of data.data.findScenes.scenes) {
-                this.scenes[scene.id] = scene;
-            }
-        }
-    }
-    processStudios(data) {
-        if (data.data.findStudios?.studios) {
-            for (const studio of data.data.findStudios.studios) {
-                this.studios[studio.id] = studio;
-            }
-        }
-    }
-    processPerformers(data) {
-        if (data.data.findPerformers?.performers) {
-            for (const performer of data.data.findPerformers.performers) {
-                this.performers[performer.id] = performer;
-            }
-        }
-    }
-    processApiKey(data) {
-        if (data.data.generateAPIKey != null && this.pluginVersion) {
-            this.updateConfigValueTask('STASH', 'api_key', data.data.generateAPIKey);
-        }
-    }
-    parseSearchItem(searchItem) {
-        const urlNode = searchItem.querySelector('a.scene-link');
-        const url = new URL(urlNode.href);
-        const id = url.pathname.replace('/scenes/', '');
-        const data = this.scenes[id];
-        const nameNode = searchItem.querySelector('a.scene-link > div.TruncatedText');
-        const name = nameNode.innerText;
-        const queryInput = searchItem.querySelector('input.text-input');
-        const performerNodes = searchItem.querySelectorAll('.performer-tag-container');
-
-        return {
-            urlNode,
-            url,
-            id,
-            data,
-            nameNode,
-            name,
-            queryInput,
-            performerNodes
-        }
-    }
-    parseSearchResultItem(searchResultItem) {
-        const remoteUrlNode = searchResultItem.querySelector('.scene-details .optional-field .optional-field-content a');
-        const remoteId = remoteUrlNode?.href.split('/').pop();
-        const remoteUrl = remoteUrlNode?.href ? new URL(remoteUrlNode.href) : null;
-        const remoteData = this.remoteScenes[remoteId];
-
-        const sceneDetailNodes = searchResultItem.querySelectorAll('.scene-details .optional-field .optional-field-content');
-        let urlNode = null;
-        let detailsNode = null;
-        for (const sceneDetailNode of sceneDetailNodes) {
-            if (sceneDetailNode.innerText.startsWith('http') && (remoteUrlNode?.href !== sceneDetailNode.innerText)) {
-                urlNode = sceneDetailNode;
-            } else if (!sceneDetailNode.innerText.startsWith('http')) {
-                detailsNode = sceneDetailNode;
-            }
-        }
-
-        const imageNode = searchResultItem.querySelector('.scene-image-container .optional-field .optional-field-content');
-
-        const metadataNode = searchResultItem.querySelector('.scene-metadata');
-        const titleNode = metadataNode.querySelector('h4 .optional-field .optional-field-content');
-        const codeAndDateNodes = metadataNode.querySelectorAll('h5 .optional-field .optional-field-content');
-        let codeNode = null;
-        let dateNode = null;
-        for (const node of codeAndDateNodes) {
-            if (node.textContent.includes('-')) {
-                dateNode = node;
-            } else {
-                codeNode = node;
-            }
-        }
-
-        const entityNodes = searchResultItem.querySelectorAll('.entity-name');
-        let studioNode = null;
-        const performerNodes = [];
-        for (const entityNode of entityNodes) {
-            if (entityNode.innerText.startsWith('Studio:')) {
-                studioNode = entityNode;
-            } else if (entityNode.innerText.startsWith('Performer:')) {
-                performerNodes.push(entityNode);
-            }
-        }
-
-        const matchNodes = searchResultItem.querySelectorAll('div.col-lg-6 div.mt-2 div.row.no-gutters.my-2 span.ml-auto');
-        const matches = []
-        for (const matchNode of matchNodes) {
-            let matchType = null;
-            const entityNode = matchNode.parentElement.querySelector('.entity-name');
-
-            const matchName = matchNode.querySelector('.optional-field-content b').innerText;
-            const remoteName = entityNode.querySelector('b').innerText;
-
-            let data;
-            if (entityNode.innerText.startsWith('Performer:')) {
-                matchType = 'performer';
-                if (remoteData) {
-                    data = remoteData.performers.find(performer => performer.name === remoteName);
-                }
-            } else if (entityNode.innerText.startsWith('Studio:')) {
-                matchType = 'studio';
-                if (remoteData) {
-                    data = remoteData.studio
-                }
-            }
-
-            matches.push({
-                matchType,
-                matchNode,
-                entityNode,
-                matchName,
-                remoteName,
-                data
-            });
-        }
-
-        return {
-            remoteUrlNode,
-            remoteId,
-            remoteUrl,
-            remoteData,
-            urlNode,
-            detailsNode,
-            imageNode,
-            titleNode,
-            codeNode,
-            dateNode,
-            studioNode,
-            performerNodes,
-            matches
-        }
-    }
-}
-
-stash = new Stash();
-
-function waitForElementClass(elementId, callBack, time) {
-    time = (typeof time !== 'undefined') ? time : 100;
-    window.setTimeout(() => {
-        const element = document.getElementsByClassName(elementId);
-        if (element.length > 0) {
-            callBack(elementId, element);
-        } else {
-            waitForElementClass(elementId, callBack);
-        }
-    }, time);
-}
-
-function waitForElementId(elementId, callBack, time) {
-    time = (typeof time !== 'undefined') ? time : 100;
-    window.setTimeout(() => {
-        const element = document.getElementById(elementId);
-        if (element != null) {
-            callBack(elementId, element);
-        } else {
-            waitForElementId(elementId, callBack);
-        }
-    }, time);
-}
-
-function waitForElementByXpath(xpath, callBack, time) {
-    time = (typeof time !== 'undefined') ? time : 100;
-    window.setTimeout(() => {
-        const element = getElementByXpath(xpath);
-        if (element) {
-            callBack(xpath, element);
-        } else {
-            waitForElementByXpath(xpath, callBack);
-        }
-    }, time);
-}
-
-function getElementByXpath(xpath, contextNode) {
-    return document.evaluate(xpath, contextNode || document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
-}
-
-function createElementFromHTML(htmlString) {
-    const div = document.createElement('div');
-    div.innerHTML = htmlString.trim();
-
-    // Change this to div.childNodes to support multiple top-level nodes.
-    return div.firstChild;
-}
-
-function getElementByXpath(xpath, contextNode) {
-    return document.evaluate(xpath, contextNode || document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
-}
-
-function getElementsByXpath(xpath, contextNode) {
-    return document.evaluate(xpath, contextNode || document, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);
-}
-
-function getClosestAncestor(el, selector, stopSelector) {
-    let retval = null;
-    while (el) {
-        if (el.matches(selector)) {
-            retval = el;
-            break
-        } else if (stopSelector && el.matches(stopSelector)) {
-            break
-        }
-        el = el.parentElement;
-    }
-    return retval;
-}
-
-function setNativeValue(element, value) {
-    const valueSetter = Object.getOwnPropertyDescriptor(element, 'value').set;
-    const prototype = Object.getPrototypeOf(element);
-    const prototypeValueSetter = Object.getOwnPropertyDescriptor(prototype, 'value').set;
-
-    if (valueSetter && valueSetter !== prototypeValueSetter) {
-        prototypeValueSetter.call(element, value);
-    } else {
-        valueSetter.call(element, value);
-    }
-}
-
-function updateTextInput(element, value) {
-    setNativeValue(element, value);
-    element.dispatchEvent(new Event('input', {
-        bubbles: true
-    }));
-}
-
-function concatRegexp(reg, exp) {
-    let flags = reg.flags + exp.flags;
-    flags = Array.from(new Set(flags.split(''))).join();
-    return new RegExp(reg.source + exp.source, flags);
-}
-
-function sortElementChildren(node) {
-    const items = node.childNodes;
-    const itemsArr = [];
-    for (const i in items) {
-        if (items[i].nodeType == Node.ELEMENT_NODE) { // get rid of the whitespace text nodes
-            itemsArr.push(items[i]);
-        }
-    }
-
-    itemsArr.sort((a, b) => {
-        return a.innerHTML == b.innerHTML ?
-            0 :
-            (a.innerHTML > b.innerHTML ? 1 : -1);
-    });
-
-    for (let i = 0; i < itemsArr.length; i++) {
-        node.appendChild(itemsArr[i]);
-    }
-}
-
-function xPathResultToArray(result) {
-    let node = null;
-    const nodes = [];
-    while (node = result.iterateNext()) {
-        nodes.push(node);
-    }
-    return nodes;
-}
-
-function createStatElement(container, title, heading) {
-    const statEl = document.createElement('div');
-    statEl.classList.add('stats-element');
-    container.appendChild(statEl);
-
-    const statTitle = document.createElement('p');
-    statTitle.classList.add('title');
-    statTitle.innerText = title;
-    statEl.appendChild(statTitle);
-
-    const statHeading = document.createElement('p');
-    statHeading.classList.add('heading');
-    statHeading.innerText = heading;
-    statEl.appendChild(statHeading);
-}
-
-const reloadImg = url =>
-    fetch(url, {
-        cache: 'reload',
-        mode: 'no-cors'
-    })
-    .then(() => document.body.querySelectorAll(`img[src='${url}']`)
-        .forEach(img => img.src = url));
diff --git a/plugins/stats/stats.js b/plugins/stats/stats.js
deleted file mode 100644
index 6aa22c4f..00000000
--- a/plugins/stats/stats.js
+++ /dev/null
@@ -1,136 +0,0 @@
-(function() {
-    function createStatElement(container, title, heading) {
-        const statEl = document.createElement('div');
-        statEl.classList.add('stats-element');
-        container.appendChild(statEl);
-
-        const statTitle = document.createElement('p');
-        statTitle.classList.add('title');
-        statTitle.innerText = title;
-        statEl.appendChild(statTitle);
-
-        const statHeading = document.createElement('p');
-        statHeading.classList.add('heading');
-        statHeading.innerText = heading;
-        statEl.appendChild(statHeading);
-    }
-
-    async function createSceneStashIDPct(row) {
-        const reqData = {
-            "variables": {
-                "scene_filter": {
-                    "stash_id": {
-                        "value": "",
-                        "modifier": "NOT_NULL"
-                    }
-                }
-            },
-            "query": "query FindScenes($filter: FindFilterType, $scene_filter: SceneFilterType, $scene_ids: [Int!]) {\n  findScenes(filter: $filter, scene_filter: $scene_filter, scene_ids: $scene_ids) {\n    count\n  }\n}"
-        };
-        const stashIdCount = (await stash.callGQL(reqData)).data.findScenes.count;
-
-        const reqData2 = {
-            "variables": {
-                "scene_filter": {}
-            },
-            "query": "query FindScenes($filter: FindFilterType, $scene_filter: SceneFilterType, $scene_ids: [Int!]) {\n  findScenes(filter: $filter, scene_filter: $scene_filter, scene_ids: $scene_ids) {\n    count\n  }\n}"
-        };
-        const totalCount = (await stash.callGQL(reqData2)).data.findScenes.count;
-
-        createStatElement(row, (stashIdCount / totalCount * 100).toFixed(2) + '%', 'Scene StashIDs');
-    }
-
-    async function createPerformerStashIDPct(row) {
-        const reqData = {
-            "variables": {
-                "performer_filter": {
-                    "stash_id": {
-                        "value": "",
-                        "modifier": "NOT_NULL"
-                    }
-                }
-            },
-            "query": "query FindPerformers($filter: FindFilterType, $performer_filter: PerformerFilterType) {\n  findPerformers(filter: $filter, performer_filter: $performer_filter) {\n    count\n  }\n}"
-        };
-        const stashIdCount = (await stash.callGQL(reqData)).data.findPerformers.count;
-
-        const reqData2 = {
-            "variables": {
-                "performer_filter": {}
-            },
-            "query": "query FindPerformers($filter: FindFilterType, $performer_filter: PerformerFilterType) {\n  findPerformers(filter: $filter, performer_filter: $performer_filter) {\n    count\n  }\n}"
-        };
-        const totalCount = (await stash.callGQL(reqData2)).data.findPerformers.count;
-
-        createStatElement(row, (stashIdCount / totalCount * 100).toFixed(2) + '%', 'Performer StashIDs');
-    }
-
-    async function createStudioStashIDPct(row) {
-        const reqData = {
-            "variables": {
-                "studio_filter": {
-                    "stash_id": {
-                        "value": "",
-                        "modifier": "NOT_NULL"
-                    }
-                }
-            },
-            "query": "query FindStudios($filter: FindFilterType, $studio_filter: StudioFilterType) {\n  findStudios(filter: $filter, studio_filter: $studio_filter) {\n    count\n  }\n}"
-        };
-        const stashIdCount = (await stash.callGQL(reqData)).data.findStudios.count;
-
-        const reqData2 = {
-            "variables": {
-                "scene_filter": {}
-            },
-            "query": "query FindStudios($filter: FindFilterType, $studio_filter: StudioFilterType) {\n  findStudios(filter: $filter, studio_filter: $studio_filter) {\n    count\n  }\n}"
-        };
-        const totalCount = (await stash.callGQL(reqData2)).data.findStudios.count;
-
-        createStatElement(row, (stashIdCount / totalCount * 100).toFixed(2) + '%', 'Studio StashIDs');
-    }
-
-    async function createPerformerFavorites(row) {
-        const reqData = {
-            "variables": {
-                "performer_filter": {
-                    "filter_favorites": true
-                }
-            },
-            "query": "query FindPerformers($filter: FindFilterType, $performer_filter: PerformerFilterType) {\n  findPerformers(filter: $filter, performer_filter: $performer_filter) {\n    count\n  }\n}"
-        };
-        const perfCount = (await stash.callGQL(reqData)).data.findPerformers.count;
-
-        createStatElement(row, perfCount, 'Favorite Performers');
-    }
-
-    async function createMarkersStat(row) {
-        const reqData = {
-            "variables": {
-                "scene_marker_filter": {}
-            },
-            "query": "query FindSceneMarkers($filter: FindFilterType, $scene_marker_filter: SceneMarkerFilterType) {\n  findSceneMarkers(filter: $filter, scene_marker_filter: $scene_marker_filter) {\n    count\n  }\n}"
-        };
-        const totalCount = (await stash.callGQL(reqData)).data.findSceneMarkers.count;
-
-        createStatElement(row, totalCount, 'Markers');
-    }
-
-    stash.addEventListener('page:stats', function() {
-        waitForElementByXpath("//div[contains(@class, 'container-fluid')]/div[@class='mt-5']", function(xpath, el) {
-            if (!document.getElementById('custom-stats-row')) {
-                const changelog = el.querySelector('div.changelog');
-                const row = document.createElement('div');
-                row.setAttribute('id', 'custom-stats-row');
-                row.classList.add('col', 'col-sm-8', 'm-sm-auto', 'row', 'stats');
-                el.insertBefore(row, changelog);
-
-                createSceneStashIDPct(row);
-                createStudioStashIDPct(row);
-                createPerformerStashIDPct(row);
-                createPerformerFavorites(row);
-                createMarkersStat(row);
-            }
-        });
-    });
-})();
diff --git a/plugins/stats/stats.yml b/plugins/stats/stats.yml
deleted file mode 100644
index 255ca988..00000000
--- a/plugins/stats/stats.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-name: Extended Stats
-# requires: StashUserscriptLibrary
-description: Adds new stats to the stats page
-version: 1.0
-ui:
-  requires: 
-  - StashUserscriptLibrary
-  javascript:
-  - stats.js
diff --git a/plugins/tagGraph/README.md b/plugins/tagGraph/README.md
deleted file mode 100644
index c09bbf47..00000000
--- a/plugins/tagGraph/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-
-# Tag Graph Generator
-
-## Requirements
- * python >= 3.7.X
- * `pip install -r requirements.txt`
-
----
-
-## Usage
-
-### Running as a plugin
-move the `tagGraph` directory into Stash's plugins directory, reload plugins and you can run the **Generate Graph** task 
-
-### Running as a script
-> **⚠️ Note:** use this if you are connecting to a remote instance of stash
-
-ensure `STASH_SETTINGS` is configured properly, you will likely need to change it
-
-run `python .\tag_graph.py -script`
-
-### View graph
-a `tag_graph.html` file will be generated inside the tagGraph directory, open it with a browser to view/interact with the graph
-
----
-
-## Customizing the graph
-set `SHOW_OPTIONS` to `True` and you will get an interface to play around with that will affect what the graph looks like.
-
-for more info see [pyvis docs](https://pyvis.readthedocs.io/en/latest/tutorial.html#using-the-configuration-ui-to-dynamically-tweak-network-settings)
diff --git a/plugins/tagGraph/config.py b/plugins/tagGraph/config.py
deleted file mode 100644
index 821b4cb2..00000000
--- a/plugins/tagGraph/config.py
+++ /dev/null
@@ -1,7 +0,0 @@
-STASH_SETTINGS = {
-	"Scheme":"http",
-	"Domain": "localhost",
-	"Port": "9999",
-	"ApiKey": "YOUR_API_KEY_HERE"
-}
-SHOW_OPTIONS = False
diff --git a/plugins/tagGraph/requirements.txt b/plugins/tagGraph/requirements.txt
deleted file mode 100644
index 2e17f0e0..00000000
--- a/plugins/tagGraph/requirements.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-pyvis==0.1.9
-requests==2.25.1
\ No newline at end of file
diff --git a/plugins/tagGraph/tag_graph.py b/plugins/tagGraph/tag_graph.py
deleted file mode 100644
index aba543ba..00000000
--- a/plugins/tagGraph/tag_graph.py
+++ /dev/null
@@ -1,247 +0,0 @@
-
-import os, re, sys, copy, json, requests
-
-# local dependencies
-import config
-# external dependencies
-from pyvis.network import Network
-
-class StashLogger:
-	# Log messages sent from a script scraper instance are transmitted via stderr and are
-	# encoded with a prefix consisting of special character SOH, then the log
-	# level (one of t, d, i, w or e - corresponding to trace, debug, info,
-	# warning and error levels respectively), then special character
-	# STX.
-	#
-	# The log.trace, log.debug, log.info, log.warning, and log.error methods, and their equivalent
-	# formatted methods are intended for use by script scraper instances to transmit log
-	# messages.
-	#
-	def __log(self, level_char: bytes, s):
-		if level_char:
-			lvl_char = "\x01{}\x02".format(level_char.decode())
-			s = re.sub(r"data:image.+?;base64(.+?')","[...]",str(s))
-			for x in s.split("\n"):
-				print(lvl_char, x, file=sys.stderr, flush=True)
-	def trace(self, s):
-		self.__log(b't', s)
-	def debug(self, s):
-		self.__log(b'd', s)
-	def info(self, s):
-		self.__log(b'i', s)
-	def warning(self, s):
-		self.__log(b'w', s)
-	def error(self, s):
-		self.__log(b'e', s)
-	def progress(self, p):
-		progress = min(max(0, p), 1)
-		self.__log(b'p', str(progress))
-
-class StashInterface:
-	port = ""
-	url = ""
-	headers = {
-		"Accept-Encoding": "gzip, deflate",
-		"Content-Type": "application/json",
-		"Accept": "application/json",
-		"Connection": "keep-alive",
-		"DNT": "1"
-	}
-	cookies = {}
-
-	def __init__(self, conn, fragments={}):
-		global log
-
-		if conn.get("Logger"):
-			log = conn.get("Logger")
-		else:
-			raise Exception("No logger passed to StashInterface")
-
-		self.port = conn['Port'] if conn.get('Port') else '9999'
-		scheme = conn['Scheme'] if conn.get('Scheme') else 'http'
-
-		api_key = conn.get("ApiKey")
-		if api_key:
-			self.headers["ApiKey"] = api_key
-
-		# Session cookie for authentication
-		self.cookies = {}
-		if conn.get('SessionCookie'):
-			self.cookies.update({
-					'session': conn['SessionCookie']['Value']
-			})
-
-		domain = conn['Domain'] if conn.get('Domain') else 'localhost'
-
-		# Stash GraphQL endpoint
-		self.url = f'{scheme}://{domain}:{self.port}/graphql'
-
-		try:
-			self.get_stash_config()
-		except Exception:
-			log.error(f"Could not connect to Stash at {self.url}")
-			sys.exit()
-
-		log.info(f"Using Stash's GraphQl endpoint at {self.url}")
-
-		self.fragments = fragments
-
-	def __resolveFragments(self, query):
-
-		fragmentReferences = list(set(re.findall(r'(?<=\.\.\.)\w+', query)))
-		fragments = []
-		for ref in fragmentReferences:
-			fragments.append({
-					"fragment": ref,
-					"defined": bool(re.search("fragment {}".format(ref), query))
-			})
-
-		if all([f["defined"] for f in fragments]):
-			return query
-		else:
-			for fragment in [f["fragment"] for f in fragments if not f["defined"]]:
-					if fragment not in self.fragments:
-						raise Exception(f'GraphQL error: fragment "{fragment}" not defined')
-					query += self.fragments[fragment]
-			return self.__resolveFragments(query)
-
-	def __callGraphQL(self, query, variables=None):
-
-		query = self.__resolveFragments(query)
-
-		json_request = {'query': query}
-		if variables is not None:
-			json_request['variables'] = variables
-
-		response = requests.post(self.url, json=json_request, headers=self.headers, cookies=self.cookies)
-		
-		if response.status_code == 200:
-			result = response.json()
-
-			if result.get("errors"):
-					for error in result["errors"]:
-						log.error(f"GraphQL error: {error}")
-			if result.get("error"):
-					for error in result["error"]["errors"]:
-						log.error(f"GraphQL error: {error}")
-			if result.get("data"):
-					return result['data']
-		elif response.status_code == 401:
-			sys.exit("HTTP Error 401, Unauthorized. Cookie authentication most likely failed")
-		else:
-			raise ConnectionError(
-					"GraphQL query failed:{} - {}. Query: {}. Variables: {}".format(
-						response.status_code, response.content, query, variables)
-			)
-
-	def __match_alias_item(self, search, items):
-		item_matches = {}
-		for item in items:
-			if re.match(rf'{search}$', item.name, re.IGNORECASE):
-					log.debug(f'matched "{search}" to "{item.name}" ({item.id}) using primary name')
-					item_matches[item.id] = item
-			if not item.aliases:
-					continue
-			for alias in item.aliases:
-					if re.match(rf'{search}$', alias.strip(), re.IGNORECASE):
-						log.debug(f'matched "{search}" to "{alias}" ({item.id}) using alias')
-						item_matches[item.id] = item
-		return list(item_matches.values())
-	
-	def get_stash_config(self):
-		query = """
-		query Configuration {
-			configuration { general { stashes{ path } } }
-		}
-		"""
-		result = self.__callGraphQL(query)
-		return result['configuration']
-
-	def get_tags_with_relations(self):
-		query = """
-		query FindTags($filter: FindFilterType, $tag_filter: TagFilterType) {
-			findTags(filter: $filter, tag_filter: $tag_filter) {
-					count
-					tags {
-						id
-						name
-						parents { id }
-						children { id }
-					}
-			}
-		}
-		"""
-
-		variables = {
-			"tag_filter":{
-					"child_count":{"modifier": "GREATER_THAN", "value": 0}, 
-						"OR": {
-					"parent_count": {"modifier": "GREATER_THAN", "value": 0}}
-			},
-			"filter": {"q":"", "per_page":-1}
-		}
-		result = self.__callGraphQL(query, variables)
-		return result['findTags']['tags']
-
-def script_init():
-	import logging as log
-	log.basicConfig(level=log.INFO, format='%(levelname)s: %(message)s')
-	stash_connection = config.STASH_SETTINGS
-	stash_connection["Logger"] = log
-	generate_graph(stash_connection)
-
-def plugin_init():
-	log = StashLogger()
-	stash_connection = json.loads(sys.stdin.read())["server_connection"]
-	stash_connection["Logger"] = log
-	generate_graph(stash_connection)
-	print(json.dumps({"output":"ok"}))
-
-def generate_graph(stash_connection):
-	log = stash_connection["Logger"]
-	
-	stash = StashInterface(stash_connection)
-	log.info("getting tags from stash...")
-	tags = stash.get_tags_with_relations()
-	
-	log.info("generating graph...")
-	if config.SHOW_OPTIONS:
-		G = Network(directed=True, height="100%", width="66%", bgcolor="#202b33", font_color="white")
-		G.show_buttons()
-	else:
-		G = Network(directed=True, height="100%", width="100%", bgcolor="#202b33", font_color="white")
-
-	node_theme = {
-		"border": "#adb5bd",
-		"background":"#394b59",
-		"highlight":{
-			"border": "#137cbd",
-			"background":"#FFFFFF"
-		}
-	}
-	edge_theme = {
-		"color": "#FFFFFF",
-		"highlight":"#137cbd"
-	}
-
-	# create all nodes
-	for tag in tags:
-		G.add_node(tag["id"], label=tag["name"], color=node_theme )
-	# create all edges
-	for tag in tags:
-		for child in tag["children"]:
-			G.add_edge( tag["id"], child["id"], color=edge_theme )
-
-
-	current_abs_path = os.path.dirname(os.path.abspath(__file__))
-	save_path = os.path.join(current_abs_path, "tag_graph.html")
-
-	G.save_graph(save_path)
-	log.info(f'saved graph to "{save_path}"')
-
-	
-if __name__ == '__main__':
-	if len(sys.argv) > 1:
-		script_init()
-	else:
-		plugin_init()
\ No newline at end of file
diff --git a/plugins/tagGraph/tag_graph.yml b/plugins/tagGraph/tag_graph.yml
deleted file mode 100644
index 2940b683..00000000
--- a/plugins/tagGraph/tag_graph.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-name: Tag Graph
-description: Creates a visual of the Tag relations
-version: 0.2
-exec:
-  - python
-  - "{pluginDir}/tag_graph.py"
-interface: raw
-tasks:
-  - name: Generate Graph
-    description: generates graph from current tag data
-    defaultArgs:
-      mode: generate
\ No newline at end of file
diff --git a/plugins/timestampTrade/README.md b/plugins/timestampTrade/README.md
deleted file mode 100644
index 9d9623e3..00000000
--- a/plugins/timestampTrade/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# timestampTrade 
-I've created the api https://timestamp.trade to sync markers between stash instances and xbvr.
-This sits along side other metadata databases like stashdb while we wait for the feature to be added there.
-
-The api does not currently require an api key but one may be required in the future.
-
-Fetching scenes require a stashdb id on the scene.
-Submitting markers does not require a stashid on the scene but it is recommended.
-
-### Installation 
-Move the `timestampTrade` directory into Stash's plugins directory, reload plugins.
-
-### Tasks
-* Submit - Submit markers for all scenes that have markers.
-* Sync - Fetch markers for all scenes with a stash id.
-* Post update hook - Fetch markers for that scene
\ No newline at end of file
diff --git a/plugins/timestampTrade/requirements.txt b/plugins/timestampTrade/requirements.txt
deleted file mode 100644
index 6945b333..00000000
--- a/plugins/timestampTrade/requirements.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-requests
-stashapp-tools
diff --git a/plugins/timestampTrade/timestampTrade.py b/plugins/timestampTrade/timestampTrade.py
deleted file mode 100644
index 13092caf..00000000
--- a/plugins/timestampTrade/timestampTrade.py
+++ /dev/null
@@ -1,120 +0,0 @@
-import stashapi.log as log
-from stashapi.stashapp import StashInterface
-import stashapi.marker_parse as mp
-import os
-import sys
-import requests
-import json
-import time
-import math
-
-per_page = 100
-request_s = requests.Session()
-
-def processScene(s):
-    if len(s['stash_ids']) == 0:
-        log.debug('no scenes to process')
-        return
-    skip_sync_tag_id = stash.find_tag('[Timestamp: Skip Sync]', create=True).get("id")
-    for sid in s['stash_ids']:
-        try:
-            if any(tag['id'] == str(skip_sync_tag_id) for tag in s['tags']):
-                log.debug('scene has skip sync tag')
-                return
-            log.debug('looking up markers for stash id: '+sid['stash_id'])
-            res = requests.post('https://timestamp.trade/get-markers/' + sid['stash_id'], json=s)
-            md = res.json()
-            if md.get('marker'):
-                log.info('api returned markers for scene: ' + s['title'] + ' marker count: ' + str(len(md['marker'])))
-                markers = []
-                for m in md['marker']:
-                    # log.debug('-- ' + m['name'] + ", " + str(m['start'] / 1000))
-                    marker = {}
-                    marker["seconds"] = m['start'] / 1000
-                    marker["primary_tag"] = m["tag"]
-                    marker["tags"] = []
-                    marker["title"] = m['name']
-                    markers.append(marker)
-                if len(markers) > 0:
-                    log.info('Saving markers')
-                    mp.import_scene_markers(stash, markers, s['id'], 15)
-            else:
-                log.debug('api returned no markers for scene: ' + s['title'])
-        except json.decoder.JSONDecodeError:
-            log.error('api returned invalid JSON for stash id: ' + sid['stash_id'])
-
-
-def processAll():
-    log.info('Getting scene count')
-    skip_sync_tag_id = stash.find_tag('[Timestamp: Skip Sync]', create=True).get("id")
-    count=stash.find_scenes(f={"stash_id":{"value":"","modifier":"NOT_NULL"},"has_markers":"false","tags":{"depth":0,"excludes":[skip_sync_tag_id],"modifier":"INCLUDES_ALL","value":[]}},filter={"per_page": 1},get_count=True)[0]
-    log.info(str(count)+' scenes to submit.')
-    i=0
-    for r in range(1,int(count/per_page)+1):
-        log.info('fetching data: %s - %s %0.1f%%' % ((r - 1) * per_page,r * per_page,(i/count)*100,))
-        scenes=stash.find_scenes(f={"stash_id":{"value":"","modifier":"NOT_NULL"},"has_markers":"false"},filter={"page":r,"per_page": per_page})
-        for s in scenes:
-            processScene(s)
-            i=i+1
-            log.progress((i/count))
-            time.sleep(2)
-
-def submit():
-    scene_fgmt = """title
-       details
-       url
-       date
-       performers{
-           name
-           stash_ids{
-              endpoint
-              stash_id
-           }
-       }
-       tags{
-           name
-       }
-       studio{
-           name
-           stash_ids{
-              endpoint
-              stash_id
-           }
-       }
-       stash_ids{
-           endpoint
-           stash_id
-       }
-       scene_markers{
-           title
-           seconds
-           primary_tag{
-              name
-           }
-       }"""
-    skip_submit_tag_id = stash.find_tag('[Timestamp: Skip Submit]', create=True).get("id")
-    count = stash.find_scenes(f={"has_markers": "true","tags":{"depth":0,"excludes":[skip_sync_tag_id],"modifier":"INCLUDES_ALL","value":[]}}, filter={"per_page": 1}, get_count=True)[0]
-    i=0
-    for r in range(1, math.ceil(count/per_page) + 1):
-        log.info('submitting scenes: %s - %s %0.1f%%' % ((r - 1) * per_page,r * per_page,(i/count)*100,))
-        scenes = stash.find_scenes(f={"has_markers": "true"}, filter={"page": r, "per_page": per_page},fragment=scene_fgmt)
-        for s in scenes:
-            log.debug("submitting scene: " + str(s))
-            request_s.post('https://timestamp.trade/submit-stash', json=s)
-            i=i+1
-            log.progress((i/count))
-            time.sleep(2)
-
-json_input = json.loads(sys.stdin.read())
-FRAGMENT_SERVER = json_input["server_connection"]
-stash = StashInterface(FRAGMENT_SERVER)
-if 'mode' in json_input['args']:
-    PLUGIN_ARGS = json_input['args']["mode"]
-    if 'submit' in PLUGIN_ARGS:
-        submit()
-    elif 'process' in PLUGIN_ARGS:
-        processAll()
-elif 'hookContext' in json_input['args']:
-    id=json_input['args']['hookContext']['id']
-    scene=stash.find_scene(id)
-    processScene(scene)
diff --git a/plugins/timestampTrade/timestampTrade.yml b/plugins/timestampTrade/timestampTrade.yml
deleted file mode 100644
index 1d4ebb26..00000000
--- a/plugins/timestampTrade/timestampTrade.yml
+++ /dev/null
@@ -1,22 +0,0 @@
-name: Timestamp Trade
-description: Sync Markers with timestamp.trade, a new database for sharing markers.
-version: 0.2
-url: https://github.com/stashapp/CommunityScripts/
-exec:
-  - python
-  - "{pluginDir}/timestampTrade.py"
-interface: raw
-hooks:
-  - name: Add Marker to Scene
-    description: Makes Markers checking against timestamp.trade
-    triggeredBy:
-      - Scene.Update.Post
-tasks:
-  - name: 'Submit'
-    description: Submit markers to timestamp.trade
-    defaultArgs:
-      mode: submit
-  - name: 'Sync'
-    description: Get markers for all scenes with a stashid
-    defaultArgs:
-      mode: process
diff --git a/plugins/titleFromFilename/README.md b/plugins/titleFromFilename/README.md
deleted file mode 100644
index 0f119250..00000000
--- a/plugins/titleFromFilename/README.md
+++ /dev/null
@@ -1,22 +0,0 @@
-
-#  titleFromFilename
-Sets a scene's title
-
-## Requirements
-- Stash ( versions after the files refactor PR, API>31 )
-- Python 3.10
-- Requests Module (https://pypi.org/project/requests/)
-
-## Installation
-
-- Download the whole folder `titleFromFilename`
-- Place it in your **plugins** folder (where the `config.yml` is). If its not there create it
-- Reload plugins from stash (Settings > Plugins -> Reload Plugins)
-- titleFromFilename should appear
-
-## Usage
-When a scene is created the plugin will set the title to the filename.
-By default the file extension will not be added to the title.
-If you want to keep the file extension open `config.py` file and change `STRIP_EXT = True` to `STRIP_EXT = False`
-
-
diff --git a/plugins/titleFromFilename/config.py b/plugins/titleFromFilename/config.py
deleted file mode 100644
index 2586c84b..00000000
--- a/plugins/titleFromFilename/config.py
+++ /dev/null
@@ -1,2 +0,0 @@
-# strip file extension from title
-STRIP_EXT = True
\ No newline at end of file
diff --git a/plugins/titleFromFilename/graphql.py b/plugins/titleFromFilename/graphql.py
deleted file mode 100644
index e5146da7..00000000
--- a/plugins/titleFromFilename/graphql.py
+++ /dev/null
@@ -1,99 +0,0 @@
-import json
-import sys
-
-import requests
-
-def exit_plugin(msg=None, err=None):
-    if msg is None and err is None:
-        msg = "plugin ended"
-    output_json = {"output": msg, "error": err}
-    print(json.dumps(output_json))
-    sys.exit()
-
-def doRequest(query, variables=None, port=9999, session=None, scheme="http", raise_exception=True):
-    # Session cookie for authentication
-    graphql_port = port
-    graphql_scheme = scheme
-    graphql_cookies = {
-        'session': session
-    }
-
-    graphql_headers = {
-        "Accept-Encoding": "gzip, deflate",
-        "Content-Type": "application/json",
-        "Accept": "application/json",
-        "Connection": "keep-alive",
-        "DNT": "1"
-    }
-    graphql_domain = 'localhost'
-    # Stash GraphQL endpoint
-    graphql_url = graphql_scheme + "://" + graphql_domain + ":" + str(graphql_port) + "/graphql"
-
-    json = {'query': query}
-    if variables is not None:
-        json['variables'] = variables
-    try:
-        response = requests.post(graphql_url, json=json,headers=graphql_headers, cookies=graphql_cookies, timeout=20)
-    except Exception as e:
-         exit_plugin(err=f"[FATAL] Exception with GraphQL request. {e}")
-    if response.status_code == 200:
-        result = response.json()
-        if result.get("error"):
-            for error in result["error"]["errors"]:
-                if raise_exception:
-                    raise Exception(f"GraphQL error: {error}")
-                else:
-                    log.LogError(f"GraphQL error: {error}")
-            return None
-        if result.get("data"):
-            return result.get("data")
-    elif response.status_code == 401:
-        exit_plugin(err="HTTP Error 401, Unauthorised.")
-    else:
-        raise ConnectionError(f"GraphQL query failed: {response.status_code} - {response.content}")
-
-def update_scene_title(scene_id, scene_title, port, session, scheme):
-    query = """
-    mutation UpdateSceneTitle($id: ID!, $title: String) {
-            sceneUpdate(
-                input: {id: $id, title: $title}
-                ) {
-                    title
-                  }
-    }
-    """
-    variables = {
-        "id": scene_id,
-        "title": scene_title
-    }
-    result = doRequest(query=query, variables=variables, port=port, session=session, scheme=scheme)
-    return result.get('sceneUpdate')
-
-def get_scene_base(scene_id, port, session, scheme):
-    query = """
-    query FindScene($id: ID!, $checksum: String) {
-        findScene(id: $id, checksum: $checksum) {
-            files {
-                basename
-            }
-        }
-    }
-    """
-    variables = {
-        "id": scene_id
-    }
-    result = doRequest(query=query, variables=variables, port=port, session=session, scheme=scheme)
-    return result.get('findScene')
-
-def get_api_version(port, session, scheme):
-    query = """
-    query SystemStatus {
-        systemStatus {
-            databaseSchema
-            appSchema
-        }
-    }
-    """
-    result = doRequest(query=query, port=port, session=session, scheme=scheme)
-    return result.get('systemStatus')
-
diff --git a/plugins/titleFromFilename/log.py b/plugins/titleFromFilename/log.py
deleted file mode 100644
index f3812522..00000000
--- a/plugins/titleFromFilename/log.py
+++ /dev/null
@@ -1,52 +0,0 @@
-import sys
-
-
-# Log messages sent from a plugin instance are transmitted via stderr and are
-# encoded with a prefix consisting of special character SOH, then the log
-# level (one of t, d, i, w, e, or p - corresponding to trace, debug, info,
-# warning, error and progress levels respectively), then special character
-# STX.
-#
-# The LogTrace, LogDebug, LogInfo, LogWarning, and LogError methods, and their equivalent
-# formatted methods are intended for use by plugin instances to transmit log
-# messages. The LogProgress method is also intended for sending progress data.
-#
-
-def __prefix(level_char):
-	start_level_char = b'\x01'
-	end_level_char = b'\x02'
-
-	ret = start_level_char + level_char + end_level_char
-	return ret.decode()
-
-
-def __log(level_char, s):
-	if level_char == "":
-		return
-
-	print(__prefix(level_char) + s + "\n", file=sys.stderr, flush=True)
-
-
-def LogTrace(s):
-	__log(b't', s)
-
-
-def LogDebug(s):
-	__log(b'd', s)
-
-
-def LogInfo(s):
-	__log(b'i', s)
-
-
-def LogWarning(s):
-	__log(b'w', s)
-
-
-def LogError(s):
-	__log(b'e', s)
-
-
-def LogProgress(p):
-	progress = min(max(0, p), 1)
-	__log(b'p', str(progress))
diff --git a/plugins/titleFromFilename/requirements.txt b/plugins/titleFromFilename/requirements.txt
deleted file mode 100644
index f2293605..00000000
--- a/plugins/titleFromFilename/requirements.txt
+++ /dev/null
@@ -1 +0,0 @@
-requests
diff --git a/plugins/titleFromFilename/titleFromFilename.py b/plugins/titleFromFilename/titleFromFilename.py
deleted file mode 100644
index e02e70fd..00000000
--- a/plugins/titleFromFilename/titleFromFilename.py
+++ /dev/null
@@ -1,69 +0,0 @@
-import json
-import os
-import sys
-import time
-
-import config
-#import log
-import graphql
-
-API_VERSION_BF_FILES = 31  # APP/DB Schema version prior to files refactor PR
-MAX_RETRY_COUNT = 25
-SLEEP_RETRY = 0.5
-
-FRAGMENT = json.loads(sys.stdin.read())
-#log.LogDebug(json.dumps(FRAGMENT))
-FRAGMENT_SERVER = FRAGMENT["server_connection"]
-FRAGMENT_SCENE_ID = FRAGMENT["args"].get("hookContext")
-
-if FRAGMENT_SCENE_ID:
-    scene_id = FRAGMENT_SCENE_ID["id"]
-else:
-    graphql.exit_plugin("No ID found")
-
-graphql_port = FRAGMENT_SERVER['Port']
-graphql_scheme = FRAGMENT_SERVER['Scheme']
-graphql_session = FRAGMENT_SERVER.get('SessionCookie').get('Value')
-
-system_status = graphql.get_api_version(port=graphql_port,
-                                        session=graphql_session,
-                                        scheme=graphql_scheme)
-
-api_version = system_status.get("appSchema")
-
-basename = None
-
-if api_version > API_VERSION_BF_FILES:  # only needed for versions after files refactor
-    files_base = graphql.get_scene_base(scene_id=scene_id,
-                                        port=graphql_port,
-                                        session=graphql_session,
-                                        scheme=graphql_scheme)
-    if len(files_base["files"]) > 0:
-        basename = files_base["files"][0].get("basename")
-else:
-    graphql.exit_plugin(
-        f"Stash with API version:{api_version} is not supported. You need at least {API_VERSION_BF_FILES}"
-    )
-
-if basename is None:
-    graphql.exit_plugin("No basename found")  # file-less scene
-
-if config.STRIP_EXT:
-    basename = os.path.splitext(basename)[0]
-
-i = MAX_RETRY_COUNT
-while i >= 0:
-    #log.LogDebug(f"TitleFromFilename: Retry attempt {i}")
-    i -= 1
-    updated_scene = graphql.update_scene_title(scene_id,
-                                               basename,
-                                               port=graphql_port,
-                                               session=graphql_session,
-                                               scheme=graphql_scheme)
-    if updated_scene:
-        graphql.exit_plugin(
-            f"Scene title updated after {MAX_RETRY_COUNT - i} tries. Title:{updated_scene.get('title')}"
-        )
-    time.sleep(SLEEP_RETRY)
-
-graphql.exit_plugin("Error updating scene")
diff --git a/plugins/titleFromFilename/titleFromFilename.yml b/plugins/titleFromFilename/titleFromFilename.yml
deleted file mode 100644
index 468ed1c6..00000000
--- a/plugins/titleFromFilename/titleFromFilename.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-name: titleFromFilename
-description: Set a scene's title from it's filename
-url: https://github.com/stashapp/CommunityScripts
-version: 1.2
-exec:
-  - python
-  - "{pluginDir}/titleFromFilename.py"
-interface: raw
-hooks:
-  - name: hook_set_title_from_filename
-    description: Set the title of the scene to it's filename
-    triggeredBy:
-      - Scene.Create.Post
diff --git a/scripts/Sqlite_Renamer/README.md b/scripts/Sqlite_Renamer/README.md
deleted file mode 100644
index 6ef594ba..00000000
--- a/scripts/Sqlite_Renamer/README.md
+++ /dev/null
@@ -1,94 +0,0 @@
-# SQLITE Renamer for Stash
-Using metadata from your database (SQLITE) to rename your file.
-
-## :exclamation: Important :exclamation:
-**By doing this, you will make definitive change to your Database and Files!** 
-###### (You can have a logfile (`USING_LOG`), so you can probably revert everything...)
-
-
-## Requirement
-- Python (Tested on Python v3.9.1 64bit, Win10)
-- ProgressBar2 Module (https://github.com/WoLpH/python-progressbar)
-- Stash Database (https://github.com/stashapp/stash)
-- Windows 10 ? (No idea if this work for all OS)
-
-## Usage
-
-- I recommend make a copy of your database. (Use "backup" in Stash Settings)
-- You need to set your Database path ([Line 9](Stash_Sqlite_Renamer.py#L9))
-- Replace things between [Line 270 - 301](Stash_Sqlite_Renamer.py#L270)
-
-## First Run
-Set `USE_DRY` to True ([Line 13](Stash_Sqlite_Renamer.py#L13)), by doing this nothing will be changed.
-- This will create a file `renamer_dryrun.txt` that show how the path/file will be changed.
-
-You can uncomment the break ([Line 254](Stash_Sqlite_Renamer.py#L254)), so it will stop after the first file.
-
-## Filename template
-Available: `$date` `$performer` `$title` `$studio` `$height`
-
-The script will replace these field with the data from the database.
-Exemple:
-| Template        | Result           
-| ------------- |:-------------:
-$title|Her Fantasy Ball.mp4
-$title $height|Her Fantasy Ball 1080p.mp4
-$date $title|2016-12-29 Her Fantasy Ball.mp4
-$date $performer - $title [$studio]|2016-12-29 Eva Lovia - Her Fantasy Ball [Sneaky Sex].mp4
-
-Note: 
-- A regex will remove illegal character for Windows.
-- If you path will be more than 240 characters, the script will try to reduce it. It will only use Date + Title.
-- If your height of the video is 2160/4320, it will be replace by `4k`/`8k` else it will be `height + p` (240p,720p,1080p...)
-- If the scene contains more than 3 performers, $performer will be replace by nothing.
-
-## Change scenes by tags
-
-If you want differents formats by tags. Create a dict with `tag` (The name of the tag in Stash) & `filename` (Filename template)
-```py
-tags_dict = {
-    '1': {
-        'tag': '1. JAV',
-        'filename': '$title'
-    },
-    '2': {
-        'tag': '1. Anime',
-        'filename': '$date $title'
-    }
-}
-
-for _, dict_section in tags_dict.items():
-    tag_name = dict_section.get("tag")
-    filename_template = dict_section.get("filename")
-    id_tags = gettingTagsID(tag_name)
-    if id_tags is not None:
-        id_scene = get_SceneID_fromTags(id_tags)
-        option_sqlite_query = "WHERE id in ({})".format(id_scene)
-        edit_db(filename_template,option_sqlite_query)
-        print("====================")
-```
-
-If you only want change 1 tag:
-```py
-id_tags = gettingTagsID('1. JAV')
-if id_tags is not None:
-    id_scene = get_SceneID_fromTags(id_tags)
-    option_sqlite_query = "WHERE id in ({})".format(id_scene)
-    edit_db("$date $performer - $title [$studio]",option_sqlite_query)
-```
-## Change all scenes
-
-```py
-edit_db("$date $performer - $title [$studio]")
-```
-
-## Optional SQLITE
-
-If you only want change a specific path, use the second parameter to `edit_db()`, it will add it to the sqlite query. [(Documentation ?)](https://www.tutorialspoint.com/sqlite/sqlite_where_clause.htm)
-
-Exemple (Only take file that have the path `E:\\Film\\R18`):
-```py
-option_sqlite_query = "WHERE path LIKE 'E:\\Film\\R18\\%'"
-edit_db("$date $performer - $title [$studio]",option_sqlite_query)
-```
-
diff --git a/scripts/Sqlite_Renamer/Stash_Sqlite_Renamer.py b/scripts/Sqlite_Renamer/Stash_Sqlite_Renamer.py
deleted file mode 100644
index 2de803db..00000000
--- a/scripts/Sqlite_Renamer/Stash_Sqlite_Renamer.py
+++ /dev/null
@@ -1,309 +0,0 @@
-import os
-import re
-import sqlite3
-import sys
-
-import progressbar
-
-# Your sqlite path
-DB_PATH = r"C:\Users\Winter\.stash\Full.sqlite"
-# Log keep a trace of OldPath & new_path. Could be useful if you want to revert everything. Filename: rename_log.txt
-USING_LOG = True
-# DRY_RUN = True | Will don't change anything in your database & disk.
-DRY_RUN = False
-# Only take female performer name
-FEMALE_ONLY = False
-# Print debug message
-DEBUG_MODE = True
-
-def logPrint(q):
-    if "[DEBUG]" in q and DEBUG_MODE == False:
-        return
-    print(q)
-
-logPrint("Database Path: {}".format(DB_PATH))
-if DRY_RUN == True:
-    try:
-        os.remove("rename_dryrun.txt")
-    except FileNotFoundError:
-        pass
-    logPrint("[DRY_RUN] DRY-RUN Enable")
-
-
-def gettingTagsID(name):
-    cursor.execute("SELECT id from tags WHERE name=?;", [name])
-    result = cursor.fetchone()
-    try:
-        id = str(result[0])
-        logPrint("[Tag] [{}] {}".format(id,name))
-    except:
-        id = None
-        logPrint("[Tag] Error when trying to get:{}".format(name))
-    return id
-
-
-def get_SceneID_fromTags(id):
-    cursor.execute("SELECT scene_id from scenes_tags WHERE tag_id=?;", [id])
-    record = cursor.fetchall()
-    logPrint("There is {} scene(s) with the tag_id {}".format(len(record), id))
-    array_ID = []
-    for row in record:
-        array_ID.append(row[0])
-    list = ",".join(map(str, array_ID))
-    return list
-
-
-def get_Perf_fromSceneID(id_scene):
-    perf_list = ""
-    cursor.execute("SELECT performer_id from performers_scenes WHERE scene_id=?;", [id_scene])
-    record = cursor.fetchall()
-    #logPrint("Performer in scene: ", len(record))
-    if len(record) > 3:
-        logPrint("More than 3 performers.")
-    else:
-        perfcount = 0
-        for row in record:
-            perf_id = str(row[0])
-            cursor.execute("SELECT name,gender from performers WHERE id=?;", [perf_id])
-            perf = cursor.fetchall()
-            if FEMALE_ONLY == True:
-                # Only take female gender
-                if str(perf[0][1]) == "FEMALE":
-                    perf_list += str(perf[0][0]) + " "
-                    perfcount += 1
-                else:
-                    continue
-            else:
-                perf_list += str(perf[0][0]) + " "
-                perfcount += 1
-    perf_list = perf_list.strip()
-    return perf_list
-
-
-def get_Studio_fromID(id):
-    cursor.execute("SELECT name from studios WHERE id=?;", [id])
-    record = cursor.fetchall()
-    studio_name = str(record[0][0])
-    return studio_name
-
-
-def makeFilename(scene_info, query):
-    # Query exemple:
-    # Available: $date $performer $title $studio $height
-    # $title                              == SSNI-000.mp4
-    # $date $title                        == 2017-04-27 Oni Chichi.mp4
-    # $date $performer - $title [$studio] == 2016-12-29 Eva Lovia - Her Fantasy Ball [Sneaky Sex].mp4
-    new_filename = str(query)
-    if "$date" in new_filename:
-        if scene_info.get('date') == "" or scene_info.get('date') is None:
-            new_filename = re.sub('\$date\s*', '', new_filename)
-        else:
-            new_filename = new_filename.replace("$date", scene_info["date"])
-
-    if "$performer" in new_filename:
-        if scene_info.get('performer') == "" or scene_info.get('performer') is None:
-            new_filename = re.sub('\$performer\s*', '', new_filename)
-        else:
-            new_filename = new_filename.replace("$performer", scene_info["performer"])
-
-    if "$title" in new_filename:
-        if scene_info.get('title') == "" or scene_info.get('title') is None:
-            new_filename = re.sub('\$title\s*', '', new_filename)
-        else:
-            new_filename = new_filename.replace("$title", scene_info["title"])
-
-    if "$studio" in new_filename:
-        if scene_info.get('studio') == "" or scene_info.get('studio') is None:
-            new_filename = re.sub('\$studio\s*', '', new_filename)
-        else:
-            new_filename = new_filename.replace("$studio", scene_info["studio"])
-
-    if "$height" in new_filename:
-        if scene_info.get('height') == "" or scene_info.get('height') is None:
-            new_filename = re.sub('\$height\s*', '', new_filename)
-        else:
-            new_filename = new_filename.replace("$height", scene_info["height"])
-    new_filename = re.sub('^\s*-\s*', '', new_filename)
-    new_filename = re.sub('\s*-\s*$', '', new_filename)
-    new_filename = re.sub('\[\W*]', '', new_filename)
-    new_filename = re.sub('\s{2,}', ' ', new_filename)
-    new_filename = new_filename.strip()
-    return new_filename
-
-
-def edit_db(query_filename, optionnal_query=None):
-    query = "SELECT id,path,title,date,studio_id,height from scenes;"
-    if optionnal_query is not None:
-        query = "SELECT id,path,title,date,studio_id,height from scenes {};".format(optionnal_query)
-    cursor.execute(query)
-    record = cursor.fetchall()
-    if len(record) == 0:
-        logPrint("[Warn] There is no scene to change with this query")
-        return
-    logPrint("Scenes numbers: {}".format(len(record)))
-    progressbar_Index = 0
-    progress = progressbar.ProgressBar(redirect_stdout=True).start(len(record))
-    for row in record:
-        progress.update(progressbar_Index + 1)
-        progressbar_Index += 1
-        scene_ID = str(row[0])
-        # Fixing letter (X:Folder -> X:\Folder)
-        current_path = re.sub(r"^(.):\\*", r"\1:\\", str(row[1]))
-        current_directory = os.path.dirname(current_path)
-        current_filename = os.path.basename(current_path)
-        file_extension = os.path.splitext(current_path)[1]
-        scene_title = str(row[2])
-        scene_date = str(row[3])
-        scene_Studio_id = str(row[4])
-        file_height = str(row[5])
-        # By default, title contains extensions.
-        scene_title = re.sub(file_extension + '$', '', scene_title)
-
-        performer_name = get_Perf_fromSceneID(scene_ID)
-
-        studio_name = ""
-        if (scene_Studio_id and scene_Studio_id != "None"):
-            studio_name = get_Studio_fromID(scene_Studio_id)
-
-        if file_height == '4320':
-            file_height = '8k'
-        else:
-            if file_height == '2160':
-                file_height = '4k'
-            else:
-                file_height = "{}p".format(file_height)
-
-        scene_info = {
-            "title": scene_title,
-            "date": scene_date,
-            "performer": performer_name,
-            "studio": studio_name,
-            "height": file_height
-        }
-        logPrint("[DEBUG] Scene information: {}".format(scene_info))
-        # Create the new filename
-        new_filename = makeFilename(scene_info, query_filename) + file_extension
-
-        # Remove illegal character for Windows ('#' and ',' is not illegal you can remove it)
-        new_filename = re.sub('[\\/:"*?<>|#,]+', '', new_filename)
-
-        # Replace the old filename by the new in the filepath
-        new_path = current_path.replace(current_filename, new_filename)
-
-        if len(new_path) > 240:
-            logPrint("[Warn] The Path is too long ({})".format(new_path))
-            # We only use the date and title to get a shorter file (eg: 2017-04-27 - Oni Chichi.mp4)
-            if scene_info.get("date"):
-                reducePath = len(current_directory + scene_info["title"] + scene_info["date"] + file_extension) + 3
-            else:
-                reducePath = len(current_directory + scene_info["title"] + file_extension) + 3
-            if reducePath < 240:
-                if scene_info.get("date"):
-                    new_filename = makeFilename(scene_info, "$date - $title") + file_extension
-                else:
-                    new_filename = makeFilename(scene_info, "$title") + file_extension
-                #new_path = re.sub('{}$'.format(current_filename), new_filename, current_path)
-                new_path = current_path.replace(current_filename, new_filename)
-                logPrint("Reduced filename to: {}", new_filename)
-            else:
-                logPrint("[Error] Can't manage to reduce the path, ID: {}".format(scene_ID))
-                continue
-
-        # Looking for duplicate filename
-        cursor.execute("SELECT id FROM scenes WHERE path LIKE ? AND NOT id=?;", ["%" + new_filename, scene_ID])
-        dupl_check = cursor.fetchall()
-        if len(dupl_check) > 0:
-            for dupl_row in dupl_check:
-                logPrint("[Error] Same filename: [{}]".format(dupl_row[0]))
-                logPrint("[{}] - {}\n".format(dupl_row[0], new_filename),
-                      file=open("renamer_duplicate.txt", "a", encoding='utf-8'))
-            logPrint("\n")
-            continue
-
-        logPrint("[DEBUG] Filename: {} -> {}".format(current_filename, new_filename))
-        logPrint("[DEBUG] Path: {} -> {}".format(current_path, new_path))
-        if (new_path == current_path):
-            logPrint("[DEBUG] File already good.\n")
-            continue
-        else:
-            #
-            # THIS PART WILL EDIT YOUR DATABASE, FILES (be careful and know what you do)
-            #
-            # Windows Rename
-            if (os.path.isfile(current_path) == True):
-                if DRY_RUN == False:
-                    os.rename(current_path, new_path)
-                    if (os.path.isfile(new_path) == True):
-                        logPrint("[OS] File Renamed! ({})".format(current_filename))
-                        if USING_LOG == True:
-                            print("{}|{}|{}\n".format(scene_ID, current_path, new_path), file=open("rename_log.txt", "a", encoding='utf-8'))
-
-                        # Database rename
-                        cursor.execute("UPDATE scenes SET path=? WHERE id=?;", [new_path, scene_ID])
-                        sqliteConnection.commit()
-                        logPrint("[SQLITE] Datebase Updated!")
-                    else:
-                        logPrint("[OS] File failed to rename ? ({})".format(current_filename))
-                        print("{} -> {}\n".format(current_path,new_path), file=open("renamer_fail.txt", "a", encoding='utf-8'))
-                else:
-                    logPrint("[DRY_RUN][OS] File should be renamed")
-                    print("{} -> {}\n".format(current_path, new_path), file=open("renamer_dryrun.txt", "a", encoding='utf-8'))
-            else:
-                logPrint("[OS] File don't exist in your Disk/Drive ({})".format(current_path))
-            logPrint("\n")
-        # break
-    progress.finish()
-    if DRY_RUN == False:
-        sqliteConnection.commit()
-    return
-
-
-try:
-    sqliteConnection = sqlite3.connect(DB_PATH)
-    cursor = sqliteConnection.cursor()
-    logPrint("Python successfully connected to SQLite\n")
-except sqlite3.Error as error:
-    logPrint("FATAL SQLITE Error: ", error)
-    input("Press Enter to continue...")
-    sys.exit(1)
-
-# THIS PART IS PERSONAL THINGS, YOU SHOULD CHANGE THING BELOW :)
-
-# Select Scene with Specific Tags
-tags_dict = {
-    '1': {
-        'tag': '!1. JAV',
-        'filename': '$title'
-    },
-    '2': {
-        'tag': '!1. Anime',
-        'filename': '$date $title'
-    },
-    '3': {
-        'tag': '!1. Western',
-        'filename': '$date $performer - $title [$studio]'
-    }
-}
-
-for _, dict_section in tags_dict.items():
-    tag_name = dict_section.get("tag")
-    filename_template = dict_section.get("filename")
-    id_tags = gettingTagsID(tag_name)
-    if id_tags is not None:
-        id_scene = get_SceneID_fromTags(id_tags)
-        option_sqlite_query = "WHERE id in ({}) AND path LIKE 'E:\\Film\\R18\\%'".format(id_scene)
-        edit_db(filename_template, option_sqlite_query)
-        logPrint("====================")
-
-# Select ALL scenes
-#edit_db("$date $performer - $title [$studio]")
-
-# END OF PERSONAL THINGS
-
-if DRY_RUN == False:
-    sqliteConnection.commit()
-cursor.close()
-sqliteConnection.close()
-logPrint("The SQLite connection is closed")
-# Input if you want to check the console.
-input("Press Enter to continue...")
diff --git a/scripts/kodi-helper/README.md b/scripts/kodi-helper/README.md
deleted file mode 100644
index 80fd17a9..00000000
--- a/scripts/kodi-helper/README.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# Kodi helper
-
-## Features
-
-Kodi helper generates files that can be imported with Kodi, to integrate your stash metadata into your Kodi system.
-
-Kodi helper can generate nfo files alongside the source files, or in a specific directory. For more information on how Kodi uses nfo files, see the [Kodi wiki page](https://kodi.wiki/view/NFO_files).
-
-Kodi helper can also generate strm files, along with nfo files. For more information on how Kodi uses strm files, see the [Kodi wiki page](https://kodi.wiki/view/Internet_video_and_audio_streams).
-
-## Configuration
-
-Modify `config.py` to enter values for `API_KEY` and `SERVER_URL`.
-
-## Generating NFO files
-
-`python kodi-helper.py generate-nfo [--inline | --outdir=<output directory>] [--overwrite] [--filter=<filter string>] [--preserve-path --truncate-prefix=<prefix>] [--genre <genre> ...]`
-
-All nfo files will be named using the same basename as the source file. For example: `foo.mp4` will have `foo.nfo` generated. 
-
-If `--inline` is used, then nfo files will be created alongside the source files. This requires the source files being accessible using the `path` stored by stash. This usually means that the script must be run on the same machine as stash, and if the stash libraries are relative, then the script must be run from the same directory as stash.
-
-If `--outdir` is provided, then all nfo files will be created in the provided directory. Note that this may cause issues if there are source files with the same basename, as they will generate the same filename. If `--preserve-path` is included, then the full path of the source file will be added to the directory provided with `--outdir`. The path can be stripped of a prefix by providing a `--truncate-prefix` parameter.
-
-The nfo files will not be overwritten by default. This can be overridden with `--overwrite`.
-
-nfo files will be generated for all scenes in the system. The scenes can be filtered by providing the `--filter` parameter. The filter parameter must be a JSON graphql string. For example:
-
-`--filter='{"path": { "value": "foo", "modifier": "INCLUDES" }}'`
-
-This will only generate for files that include `foo` in the path.
-
-Genres can be added to nfo files by providing `--genre` parameters. More than one `--genre <genre>` parameter may be provided (ie `--genre=foo --genre=bar`).
-
-## Generating STRM files
-
-`python kodi-helper.py generate-strm --outdir=<output directory> [--preserve-path --truncate-prefix=<prefix>] [--use-source-filenames] [--overwrite] [--filter=<filter string>] [--genre <genre> ...]`
-
-This will generate strm and nfo files.
-
-All strm files will be named by the scene ID in stash. ie `30.strm`. If `--use-source-filenames` is provided, then the strm and nfo filenames will be named by the source file instead.
-
-All files will be generated in the directory provided by `--outdir`. If `--preserve-path` is included, then the full path of the source file will be added to the directory provided with `--outdir`. The path can be stripped of a prefix by providing a `--truncate-prefix` parameter. 
-
-The generated files will not be overwritten by default. This can be overridden with `--overwrite`.
-
-As per generating nfo files, the scenes to generate for can be filtered using the `--filter` parameter.
diff --git a/scripts/kodi-helper/config.py b/scripts/kodi-helper/config.py
deleted file mode 100644
index 017591f3..00000000
--- a/scripts/kodi-helper/config.py
+++ /dev/null
@@ -1,2 +0,0 @@
-api_key = ""
-server_url = "http://localhost:9999/graphql"
diff --git a/scripts/kodi-helper/kodi-helper.py b/scripts/kodi-helper/kodi-helper.py
deleted file mode 100644
index 2e79f4d5..00000000
--- a/scripts/kodi-helper/kodi-helper.py
+++ /dev/null
@@ -1,335 +0,0 @@
-import argparse
-import os
-import requests
-import math
-import re
-import json
-
-import config
-
-BATCH_SIZE = 100
-
-def parseArgs():
-    parser = argparse.ArgumentParser(description="Generate nfo and strm files for Kodi integration.")
-    parser.add_argument("mode", metavar="MODE", choices=["generate-nfo", "generate-strm"], help="generate-nfo or generate-strm")
-    parser.add_argument("--inline", action="store_true", help="Generate nfo files along side video files")
-    parser.add_argument("--outdir", metavar="<output directory>", help="Generate files in <outdir>")
-    parser.add_argument("--preserve-path", action="store_true", help="Include source file directory structure in output directory (with --outdir only)")
-    parser.add_argument("--truncate-prefix", type=str, metavar="<path prefix>", help="Remove prefix from output directory (with --preserve-path only)")
-    parser.add_argument("--use-source-filenames", action="store_true", help="Use source filenames for strm files instead of stash id")
-    parser.add_argument("--overwrite", action="store_true", help="Overwrite nfo/strm files if already present")
-    parser.add_argument("--filter", metavar="<filter string>", help="JSON graphql string to filter scenes with")
-    parser.add_argument("--genre", metavar="<genre>", help="Genre to assign. May be included multiple times", action="append")
-    return parser.parse_args()
-
-# raw plugins may accept the plugin input from stdin, or they can elect
-# to ignore it entirely. In this case it optionally reads from the
-# command-line parameters.
-def main():
-    args = parseArgs()
-    
-    if args.mode == "generate-nfo":
-        generateNFOFiles(args)
-    elif args.mode == "generate-strm":
-        generateSTRMFiles(args)
-
-
-def generateNFOFiles(args):
-    if not args.inline and args.outdir == "":
-        print("--outdir or --inline must be set\n")
-        return
-
-    filter = args.filter or ""
-    if filter != "":
-        filter = json.loads(filter)
-    else:
-        filter = {}
-
-    total = getCount(filter)
-    pages = math.ceil(total / BATCH_SIZE)
-
-    i = 1
-    while i <= pages:
-        print("Processing page {} of {}".format(i, pages))
-        scenes = getScenes(i, filter)
-
-        for scene in scenes:
-            # don't regenerate if file already exists and not overwriting
-            output = getOutputNFOFile(scene["path"], args)
-            if not args.overwrite and os.path.exists(output):
-                continue
-            
-            nfo = generateNFO(scene, args) 
-            writeFile(output, nfo, True)
-
-        i += 1
-
-def generateSTRMFiles(args):
-    if args.outdir == "":
-        print("--outdir must be set\n")
-        return
-
-    filter = args.filter or ""
-    if filter != "":
-        filter = json.loads(filter)
-    else:
-        filter = {}
-
-    total = getCount(filter)
-    pages = math.ceil(total / BATCH_SIZE)
-
-    i = 1
-    while i <= pages:
-        print("Processing page {} of {}".format(i, pages))
-        scenes = getScenes(i, filter)
-
-        for scene in scenes:
-            name = ""
-            outdir = getOutputDir(scene["path"], args)
-            
-            if args.use_source_filenames:
-                name = basename(os.path.splitext(scene["path"])[0])
-            else:
-                name = scene["id"]
-            
-            name = os.path.join(outdir, name)
-
-            # don't regenerate if file already exists and not overwriting
-            strmOut = name + ".strm"
-            if args.overwrite or not os.path.exists(strmOut):
-                data = generateSTRM(scene)
-                writeFile(strmOut, data, False)
-
-            output = name + ".nfo"
-            if args.overwrite or not os.path.exists(output):
-                nfo = generateNFO(scene, args) 
-                writeFile(output, nfo, True)
-
-        i += 1
-
-def basename(f):
-    f = os.path.normpath(f)
-    return os.path.basename(f)
-
-def getOutputSTRMFile(sceneID, args):
-    return os.path.join(args.outdir, "{}.strm".format(sceneID))
-
-def getOutputDir(sourceFile, args):
-    ret = args.outdir
-
-    if args.preserve_path:
-        if args.truncate_prefix != None:
-            toRemove = args.truncate_prefix
-            if sourceFile.startswith(toRemove):
-                sourceFile = sourceFile[len(toRemove):]
-
-        sourceFile = os.path.normpath(sourceFile)
-        ret = os.path.join(args.outdir, os.path.dirname(sourceFile))
-
-    return ret
-
-def getOutputNFOFile(sourceFile, args):
-    if args.inline:
-        # just replace the extension
-        return os.path.splitext(sourceFile)[0]+".nfo"
-
-    outdir = getOutputDir(sourceFile, args)
-
-    ret = os.path.join(outdir, basename(sourceFile))
-    return os.path.splitext(ret)[0]+".nfo"
-
-def getCount(sceneFilter):
-    query = """
-query findScenes($filter: FindFilterType!, $scene_filter: SceneFilterType!) {
-  findScenes(filter: $filter, scene_filter: $scene_filter) {
-    count
-  }
-}
-"""
-    variables = {
-        'filter': {
-            'per_page': 0,
-        },
-        'scene_filter': sceneFilter
-    }
-
-    result = __callGraphQL(query, variables)
-
-    return result["findScenes"]["count"]
-
-
-def getScenes(page, sceneFilter):
-    query = """
-query findScenes($filter: FindFilterType!, $scene_filter: SceneFilterType!) {
-  findScenes(filter: $filter, scene_filter: $scene_filter) {
-    scenes {
-      id
-      title
-      path
-      rating
-      details
-      date
-      oshash
-      paths {
-        screenshot
-        stream
-      }
-      studio {
-        name
-        image_path
-      }
-      performers {
-        name
-        image_path
-      }
-      tags {
-        name
-      }
-      movies {
-        movie {
-          name
-        }
-      }
-    }
-  }
-}
-"""
-
-    variables = {
-        'filter': {
-            'per_page': BATCH_SIZE,
-            'page': page,
-        },
-        'scene_filter': sceneFilter
-    }
-
-    result = __callGraphQL(query, variables)
-
-    return result["findScenes"]["scenes"]
-
-def addAPIKey(url):
-    if config.api_key:
-        return url + "&apikey=" + config.api_key
-    return url
-
-def getSceneTitle(scene):
-    if scene["title"] != None and scene["title"] != "":
-        return scene["title"]
-    
-    return basename(scene["path"])
-
-def generateSTRM(scene):
-    return scene["paths"]["stream"]
-
-def generateNFO(scene, args):
-    ret = """
-<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
-<movie>
-    <title>{title}</title>
-    <userrating>{rating}</userrating>
-    <plot>{details}</plot>
-    <uniqueid type="stash">{id}</uniqueid>
-    {tags}
-    <premiered>{date}</premiered>
-    <studio>{studio}</studio>
-    {performers}
-    {thumbs}
-    {fanart}
-    {genres}
-</movie>
-"""
-    tags = ""
-    for t in scene["tags"]:
-        tags = tags + """
-    <tag>{}</tag>""".format(t["name"])
-
-    rating = ""
-    if scene["rating"] != None:
-        rating = scene["rating"]
-
-    date = ""
-    if scene["date"] != None:
-        date = scene["date"]
-
-    studio = ""
-    logo = ""
-    if scene["studio"] != None:
-        studio = scene["studio"]["name"]
-        logo = scene["studio"]["image_path"]
-        if not logo.endswith("?default=true"):
-            logo = addAPIKey(logo)
-        else:
-            logo = ""
-
-    performers = ""
-    i = 0
-    for p in scene["performers"]:
-        thumb = addAPIKey(p["image_path"])
-        performers = performers + """
-    <actor>
-        <name>{}</name>
-        <role></role>
-        <order>{}</order>
-        <thumb>{}</thumb>
-    </actor>""".format(p["name"], i, thumb)
-        i += 1
-
-    thumbs = [
-        """<thumb aspect="poster">{}</thumb>""".format(addAPIKey(scene["paths"]["screenshot"]))
-    ]
-    fanart = [
-        """<thumb>{}</thumb>""".format(addAPIKey(scene["paths"]["screenshot"]))
-    ]
-    if logo != "":
-        thumbs.append("""<thumb aspect="clearlogo">{}</thumb>""".format(logo))
-        fanart.append("""<thumb>{}</thumb>""".format(logo))
-
-    fanart = """<fanart>{}</fanart>""".format("\n".join(fanart))
-
-    genres = []
-    if args.genre != None:
-        for g in args.genre:
-            genres.append("<genre>{}</genre>".format(g))
-
-    ret = ret.format(title = getSceneTitle(scene), rating = rating, id = scene["id"], tags = tags, date = date, studio = studio, performers = performers, details = scene["details"] or "", thumbs = "\n".join(thumbs), fanart = fanart, genres = "\n".join(genres))
-
-    return ret
-
-def writeFile(fn, data, useUTF):
-    encoding = None
-    if useUTF:
-        encoding = "utf-8-sig"
-    os.makedirs(os.path.dirname(fn), exist_ok=True)
-    f = open(fn, "w", encoding=encoding)
-    f.write(data)
-    f.close()
-
-def __callGraphQL(query, variables = None):
-    headers = {
-		"Accept-Encoding": "gzip, deflate, br",
-		"Content-Type": "application/json",
-		"Accept": "application/json",
-		"Connection": "keep-alive",
-		"DNT": "1",
-        "ApiKey": config.api_key
-    }
-
-    json = {}
-    json['query'] = query
-    if variables != None:
-        json['variables'] = variables
-    
-    # handle cookies
-    response = requests.post(config.server_url, json=json, headers=headers)
-    
-    if response.status_code == 200:
-        result = response.json()
-        if result.get("error", None):
-            for error in result["error"]["errors"]:
-                raise Exception("GraphQL error: {}".format(error))
-        if result.get("data", None):
-            return result.get("data")
-    else:
-        raise Exception("GraphQL query failed:{} - {}. Query: {}. Variables: {}".format(response.status_code, response.content, query, variables))
-
-main()
\ No newline at end of file
diff --git a/scripts/stash-watcher/Dockerfile b/scripts/stash-watcher/Dockerfile
deleted file mode 100644
index 8ccda1c5..00000000
--- a/scripts/stash-watcher/Dockerfile
+++ /dev/null
@@ -1,15 +0,0 @@
-FROM python:3.11.5-alpine3.18
-
-WORKDIR /usr/src/app
-
-COPY requirements.txt ./
-RUN pip install --no-cache-dir -r requirements.txt
-
-COPY . .
-
-#Create an empty config file so that we can just use the defaults.  This file can be mounted if it needs to be
-#modified
-RUN touch /config.toml
-
-#Apparently using -u causes the logs to output immediately
-CMD [ "python", "-u", "./watcher.py", "/config.toml" ]
diff --git a/scripts/stash-watcher/README.md b/scripts/stash-watcher/README.md
deleted file mode 100644
index 8dc518c6..00000000
--- a/scripts/stash-watcher/README.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# Stash Watcher
-Stash Watcher is a service that watches your Stash library directories for changes and then triggers a Metadata Scan when new files are added to those directories.  It then waits a period of time before triggering another scan to keep Stash from constantly scanning if you're making many changes.  Note that updates are watched during that window; the update is merely delayed.
-
-## Configuration
-Modify a [config.toml](config.toml) for your environment.  The defaults match the Stash docker defaults, so they may work for you.  You are likely to have to update `Paths` and possibly `ApiKey`.  Check out [default.toml](default.toml) for all configurable options.  You can configure:
-* Url (host, domain, port)
-* Api Key (if your Stash is password protected)
-* Paths
-* Timeout - the minimum time between Metadata Scans
-* Scan options - The options for the Metadata Scan
-* Enable Polling - see [SMB/CIFS Shares](#smbcifs-shares)
-
-## Running Stash Watcher
-You can run Stash Watcher directly from the [command line](#running-directly-with-python) or from inside [docker](#running-with-docker).  
-
-### Running directly with python
-The directs below are for linux, but they should work on other operating systems.
-#### Step 0: Create a Virtual Environment (optional, but recommended)
-```
-python -m venv venv
-. venv/bin/activate
-```
-#### Step 1: Install dependencies
-```
-pip install -r requirements.txt
-```
-#### Step 2: Create/Modify Configuration
-Following the directions in [Configuration](#configuration), modify [config.toml](config.toml) if necessary.
-
-#### Step 3: Execute 
-```
-python watcher.py path_to_config.toml
-```
-That's it.  Now when you make changes to watched directories, Stash Watcher will make an API call to trigger a metadata scan.
-
-### Running with docker
-There is currently no published docker image, so you'll have to build it yourself.  The easiest way to do this is with docker compose:
-```
-version: "3.4"
-services:
-  stash-watcher:
-  container_name: stash-watcher
-  build: <path_to_stash-watcher_directory>
-  volumes:
-    #This is only required if you have to modify config.toml (if the defaults are fine you don't have to map this file)
-    - ./config.toml:/config.toml:ro
-    #This is the path to your stash content.  If you have multiple paths, map them here
-    - /stash:/data:ro
-  restart: unless-stopped
-```
-
-Then you can run
-```
-docker compose up -d --build
-```
-To start the watcher.
-
-## Notes
-### SMB/CIFS shares
-The library ([watchdog](https://pypi.org/project/watchdog/)) that Stash Watcher uses has some limitations when dealing with SMB/CIFS shares.  If you encounter some problems, set [PollInterval in your config.toml](https://github.com/DuctTape42/CommunityScripts/blob/main/scripts/stash-watcher/defaults.toml#L28).  This is a lot less efficient than the default mechanism, but is more likely to work.
-
-In my testing (this is from Windows to a share on another machine), if the machine running Stash Watcher wrote to the share, then the normal watcher worked fine.  However, if a different machine wrote to the share, then Stash Watcher did not see the write unless I used Polling.
-
diff --git a/scripts/stash-watcher/config.toml b/scripts/stash-watcher/config.toml
deleted file mode 100644
index d478dbf3..00000000
--- a/scripts/stash-watcher/config.toml
+++ /dev/null
@@ -1,16 +0,0 @@
-#This is the information about your stash instance
-[Host]
-#The scheme (either http or https)
-Scheme = http
-#The full hostname for your stash instance.  If you're running in docker you might want the
-#service name and not localhost here.
-Host = localhost
-#The port number for your stash instance
-Port = 9999
-#The api key, if your stash instance is password protected
-ApiKey = 
-
-#Configuration for the listener itself
-[Config]
-#A comma separated list of paths to watch.
-Paths = /data
diff --git a/scripts/stash-watcher/defaults.toml b/scripts/stash-watcher/defaults.toml
deleted file mode 100644
index a110845d..00000000
--- a/scripts/stash-watcher/defaults.toml
+++ /dev/null
@@ -1,48 +0,0 @@
-#This is the information about your stash instance
-[Host]
-#The scheme (either http or https)
-Scheme = http
-#The full hostname for your stash instance.  If you're running in docker you might want the
-#service name and not localhost here.
-Host = localhost
-#The port number for your stash instance
-Port = 9999
-#The api key, if your stash instance is password protected
-ApiKey = 
-
-#Configuration for the listener itself
-[Config]
-#A comma separated list of paths to watch.
-Paths = /data
-#The minimum time to wait between triggering scans
-Cooldown = 300
-#A list of file extensions to watch.  If this is omitted, it uses the extensions that are defined
-#in your Stash library (for videos, images, and galleries)
-Extensions =
-#If this is set to a non-zero numeric value, this forces the use of polling to
-#determine file system changes.  If it is left blank, then the OS appropriate
-#mechanism is used.  This is much less efficient than the OS mechanism, so it
-#should be used with care.  The docs claim that this is required to watch SMB
-#shares, though in my testing I could watch them on Windows with the regular
-#WindowsApiObserver
-PollInterval=
-#This enables debug logging
-Debug=
-
-#Options for the Stash Scan.  Stash defaults to everything disabled, so this is the default
-#Generate options that match up with what we can do in Scan
-[ScanOptions]
-#"Generate scene covers" from the UI
-Covers=true
-#"Generate previews" from the UI
-Previews=true
-#"Generate animated image previews" from the UI
-ImagePreviews=false
-#"Generate scrubber sprites" from the UI
-Sprites=false
-#"Generate perceptual hashes" from the UI
-Phashes=true
-#"Generate thumbnails for images" from the UI
-Thumbnails=true
-#"Generate previews for image clips" from the UI
-ClipPreviews=false
diff --git a/scripts/stash-watcher/requirements.txt b/scripts/stash-watcher/requirements.txt
deleted file mode 100644
index d1fe8a2a..00000000
--- a/scripts/stash-watcher/requirements.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-argparse
-stashapp-tools
-watchdog
diff --git a/scripts/stash-watcher/watcher.py b/scripts/stash-watcher/watcher.py
deleted file mode 100644
index 5eb8328f..00000000
--- a/scripts/stash-watcher/watcher.py
+++ /dev/null
@@ -1,240 +0,0 @@
-#!/usr/bin/python -w
-import argparse
-import configparser
-import time
-import os
-from threading import Lock, Condition
-from watchdog.observers import Observer
-from watchdog.observers.polling import PollingObserver
-from watchdog.events import PatternMatchingEventHandler
-from stashapi.stashapp import StashInterface
-import logging
-import sys
-from enum import Enum
-
-#the type of watcher being used; controls how to interpret the events
-WatcherType = Enum('WatcherType', ['INOTIFY', 'WINDOWS', 'POLLING', 'KQUEUE'])
-
-#Setup logger
-logger = logging.getLogger("stash-watcher")
-logger.setLevel(logging.INFO)
-ch = logging.StreamHandler()
-ch.setLevel(logging.INFO)
-ch.setFormatter(logging.Formatter("%(asctime)s %(message)s"))
-logger.addHandler(ch)
-
-#This signals that we should 
-shouldUpdate = False
-mutex = Lock()
-signal = Condition(mutex)
-
-modifiedFiles = {}
-
-
-currentWatcherType = None
-
-
-def log(msg):
-    logger.info(msg)
-
-def debug(msg):
-    logger.debug(msg)
-
-def handleEvent(event):
-    global shouldUpdate
-    global currentWatcherType
-    debug("========EVENT========")
-    debug(str(event))
-    #log(modifiedFiles)
-    #Record if the file was modified.  When a file is closed, see if it was modified.  If so, trigger
-    shouldTrigger = False
-
-    if event.is_directory == True:
-        return
-    #Depending on the watcher type, we have to handle these events differently
-    if currentWatcherType == WatcherType.WINDOWS:
-        #On windows here's what happens:
-        # File moved into a watched directory - Created Event
-        # File moved out of a watched directory - Deleted Event
-        # Moved within a watched directory (src and dst in watched directory) - Moved event
-        
-        # echo blah > foo.mp4 - Created then Modified
-        # copying a small file - Created then Modified
-        # copying a large file - Created then two (or more) Modified events (appears to be one when the file is created and another when it's finished)
-
-        #It looks like you can get an optional Created Event and then 
-        #either one or two Modified events.  You can also get Moved events
-
-        #For local files on Windows, they can't be opened if they're currently
-        #being written to.  Therefore, every time we get an event, attempt to
-        #open the file.  If we're successful, assume the write is finished and
-        #trigger the update.  Otherwise wait until the next event and try again
-        if event.event_type == "created" or event.event_type == "modified":
-            try:
-                with open(event.src_path) as file:
-                    debug("Successfully opened file; triggering")
-                    shouldTrigger = True
-            except:
-                pass
-
-        if event.event_type == "moved":
-            shouldTrigger = True
-    elif currentWatcherType == WatcherType.POLLING:
-        #Every interval you get 1 event per changed file
-        #  - If the file was not present in the previous poll, then Created
-        #  - If the file was present and has a new size, then Modified
-        #  - If the file was moved within the directory, then Moved
-        #  - If the file is gone, then deleted
-        #
-        # For now, just trigger on the created event.  In the future, create
-        # a timer at 2x polling interval.  Reschedule the timer on each event
-        # when it fires, trigger the update.
-        if event.event_type == "moved" or event.event_type == "created":
-            shouldTrigger = True
-    #Until someone tests this on mac, just do what INOTIFY does
-    elif currentWatcherType == WatcherType.INOTIFY or currentWatcherType == WatcherType.KQUEUE:
-        if event.event_type == "modified":
-            modifiedFiles[event.src_path] = 1
-        #These are for files being copied into the target
-        elif event.event_type == "closed":
-            if event.src_path in modifiedFiles:
-                del modifiedFiles[event.src_path]
-                shouldTrigger = True
-        #For download managers and the like that write to a temporary file and then move to the destination (real)
-        #path.  Note that this actually triggers if the destination is in the watched location, and not just if it's
-        #moved out of a watched directory
-        elif event.event_type == "moved":
-            shouldTrigger = True
-    else:
-        print("Unknown watcher type " + str(currentWatcherType))
-        sys.exit(1)
-
-    #Trigger the update
-    if shouldTrigger:
-        debug("Triggering updates")
-        with mutex:
-            shouldUpdate = True
-            signal.notify()
-
-
-def main(stash, scanFlags, paths, extensions, timeout, pollInterval):
-    global shouldUpdate
-    global currentWatcherType
-
-    if len(extensions) == 1 and extensions[0] == "*":
-        patterns = ["*"]
-    else:
-        patterns = list(map(lambda x : "*." + x, extensions))
-    eventHandler = PatternMatchingEventHandler(patterns, None, False, True)
-    eventHandler.on_any_event = handleEvent
-    observer = Observer()
-    observerName = type(observer).__name__
-    if pollInterval != None and pollInterval > 0:
-        currentWatcherType = WatcherType.POLLING
-        observer = PollingObserver()
-    elif observerName == "WindowsApiObserver":
-        currentWatcherType = WatcherType.WINDOWS
-    elif observerName == "KqueueObserver":
-        currentWatcherType = WatcherType.KQUEUE
-    elif observerName == "InotifyObserver":
-        currentWatcherType = WatcherType.INOTIFY
-    else:
-        print("Unknown watcher type " + str(observer))
-        sys.exit(1)
-        
-    debug(str(observer))
-    for path in paths:
-        observer.schedule(eventHandler, path, recursive=True)
-    observer.start()
-    try:
-        while True:
-            with mutex:
-                while not shouldUpdate:
-                    signal.wait()
-                shouldUpdate = False
-            log("Triggering stash scan")
-            stash.metadata_scan(flags = scanFlags)
-            log("Sleeping for " + str(timeout) + " seconds")
-            time.sleep(timeout)
-    except KeyboardInterrupt:
-        observer.stop()
-        observer.join()
-
-def listConverter(item):
-    debug("listConverter(" + str(item) + ")")
-    if not item:
-        return None
-    listItems = [i.strip() for i in item.split(',')]
-    if not listItems or (len(listItems) == 1 and not listItems[0]):
-        return None
-    return listItems
-
-def makeArgParser():
-    parser = argparse.ArgumentParser(description='Stash file watcher')
-    parser.add_argument('config_path', nargs=1, help='Config file path (toml)')
-    return parser
-
-def parseConfig(path):
-    config = configparser.ConfigParser(converters={'list': listConverter })
-    
-
-    #Load the defaults first
-    defaults_path = os.path.join(os.path.dirname('__file__'), 'defaults.toml')
-    config.read(defaults_path)
-
-    #Now read the user config
-    config.read(path)
-
-    return config
-
-if __name__ == '__main__':
-    #Parse the arguments
-    parser = makeArgParser()
-    args = parser.parse_args()
-    configPath = args.config_path
-    config = parseConfig(configPath)
-
-    #Set up Stash
-    stashArgs = {
-        "scheme": config["Host"]["Scheme"],
-        "host": config["Host"]["Host"],
-        "port": config["Host"]["Port"]
-        }
-
-    if config["Host"]["ApiKey"]:
-        stashArgs["ApiKey"] = config["Host"]["ApiKey"]
-
-    stash = StashInterface(stashArgs)
-    
-    #And now the flags for the scan
-    scanFlags = {
-            "scanGenerateCovers": config["ScanOptions"].getboolean("Covers"),
-            "scanGeneratePreviews": config["ScanOptions"].getboolean("Previews"),
-            "scanGenerateImagePreviews": config["ScanOptions"].getboolean("ImagePreviews"),
-            "scanGenerateSprites": config["ScanOptions"].getboolean("Sprites"),
-            "scanGeneratePhashes": config["ScanOptions"].getboolean("Phashes"),
-            "scanGenerateThumbnails": config["ScanOptions"].getboolean("Thumbnails"),
-            "scanGenerateClipPreviews": config["ScanOptions"].getboolean("ClipPreviews")
-            }
-
-    paths = config.getlist("Config", "Paths")
-    timeout = config["Config"].getint("Cooldown")
-
-    #If the extensions are in the config, use them.  Otherwise pull them from stash.
-    extensions = config.getlist('Config', 'Extensions')
-    if not extensions:
-        stashConfig = stash.get_configuration()
-        extensions = stashConfig['general']['videoExtensions'] + stashConfig['general']['imageExtensions'] + stashConfig['general']['galleryExtensions']
-
-    pollIntervalStr = config.get('Config', 'PollInterval')
-    if pollIntervalStr:
-        pollInterval = int(pollIntervalStr)
-    else:
-        pollInterval = None
-
-    if config.get('Config', 'Debug') == "true":
-        logger.setLevel(logging.DEBUG)
-        ch.setLevel(logging.DEBUG)
-
-
-    main(stash, scanFlags, paths, extensions, timeout, pollInterval)
diff --git a/stable/CropperJS.zip b/stable/CropperJS.zip
new file mode 100644
index 00000000..018db074
Binary files /dev/null and b/stable/CropperJS.zip differ
diff --git a/stable/StashUserscriptLibrary.zip b/stable/StashUserscriptLibrary.zip
new file mode 100644
index 00000000..bba9a707
Binary files /dev/null and b/stable/StashUserscriptLibrary.zip differ
diff --git a/stable/TPDBMarkers.zip b/stable/TPDBMarkers.zip
new file mode 100644
index 00000000..1a97b575
Binary files /dev/null and b/stable/TPDBMarkers.zip differ
diff --git a/stable/Theme-BlackHole.zip b/stable/Theme-BlackHole.zip
new file mode 100644
index 00000000..1c9db8fa
Binary files /dev/null and b/stable/Theme-BlackHole.zip differ
diff --git a/stable/Theme-ModernDark.zip b/stable/Theme-ModernDark.zip
new file mode 100644
index 00000000..7ad34c13
Binary files /dev/null and b/stable/Theme-ModernDark.zip differ
diff --git a/stable/Theme-NeonDark.zip b/stable/Theme-NeonDark.zip
new file mode 100644
index 00000000..cad71edf
Binary files /dev/null and b/stable/Theme-NeonDark.zip differ
diff --git a/stable/Theme-Night.zip b/stable/Theme-Night.zip
new file mode 100644
index 00000000..158b34fa
Binary files /dev/null and b/stable/Theme-Night.zip differ
diff --git a/stable/Theme-Plex.zip b/stable/Theme-Plex.zip
new file mode 100644
index 00000000..02667ba2
Binary files /dev/null and b/stable/Theme-Plex.zip differ
diff --git a/stable/Theme-PornHub.zip b/stable/Theme-PornHub.zip
new file mode 100644
index 00000000..45668627
Binary files /dev/null and b/stable/Theme-PornHub.zip differ
diff --git a/stable/Theme-Pulsar.zip b/stable/Theme-Pulsar.zip
new file mode 100644
index 00000000..db6344a4
Binary files /dev/null and b/stable/Theme-Pulsar.zip differ
diff --git a/stable/Theme-PulsarLight.zip b/stable/Theme-PulsarLight.zip
new file mode 100644
index 00000000..5fdc1d40
Binary files /dev/null and b/stable/Theme-PulsarLight.zip differ
diff --git a/stable/Theme-RoundedYellow.zip b/stable/Theme-RoundedYellow.zip
new file mode 100644
index 00000000..1ac0edec
Binary files /dev/null and b/stable/Theme-RoundedYellow.zip differ
diff --git a/stable/VideoScrollWheel.zip b/stable/VideoScrollWheel.zip
new file mode 100644
index 00000000..8968dde7
Binary files /dev/null and b/stable/VideoScrollWheel.zip differ
diff --git a/stable/comicInfoExtractor.zip b/stable/comicInfoExtractor.zip
new file mode 100644
index 00000000..08780366
Binary files /dev/null and b/stable/comicInfoExtractor.zip differ
diff --git a/stable/date_parser.zip b/stable/date_parser.zip
new file mode 100644
index 00000000..398c9def
Binary files /dev/null and b/stable/date_parser.zip differ
diff --git a/stable/defaultDataForPath.zip b/stable/defaultDataForPath.zip
new file mode 100644
index 00000000..30f6af02
Binary files /dev/null and b/stable/defaultDataForPath.zip differ
diff --git a/stable/dupeMarker.zip b/stable/dupeMarker.zip
new file mode 100644
index 00000000..e0e2573d
Binary files /dev/null and b/stable/dupeMarker.zip differ
diff --git a/stable/filenameParser.zip b/stable/filenameParser.zip
new file mode 100644
index 00000000..079d4e32
Binary files /dev/null and b/stable/filenameParser.zip differ
diff --git a/stable/index.yml b/stable/index.yml
new file mode 100644
index 00000000..79a6662e
--- /dev/null
+++ b/stable/index.yml
@@ -0,0 +1,320 @@
+- id: CropperJS
+  name: Cropper.JS
+  metadata:
+    description: Exports cropper.js functionality for JS/Userscripts
+  version: 1.6.1-862f16b
+  date: 2024-02-11 08:41:16
+  path: CropperJS.zip
+  sha256: b9a4f217e8722dcc6e57604e15d2356f55d58fc200512e6022c9ed3c9ea740e3
+- id: date_parser
+  name: Date Parser
+  metadata:
+    description: Find date in path or filename and add it
+  version: 0.2-228c294
+  date: 2024-02-06 23:25:44
+  path: date_parser.zip
+  sha256: 2000df4bff1ea828d443d87ab08e5b9307744d9ee14a6a25295e891d994587da
+- id: stashBatchResultToggle
+  name: Stash Batch Result Toggle.
+  metadata:
+    description: In Scene Tagger, adds button to toggle all stashdb scene match
+      result fields. Saves clicks when you only want to save a few metadata
+      fields. Instead of turning off every field, you batch toggle them off,
+      then toggle on the ones you want
+  version: 1.0-862f16b
+  date: 2024-02-11 08:41:16
+  path: stashBatchResultToggle.zip
+  sha256: 155f211aa07ae559468af3a50a07fd8ef915dcf67d6a4fccee4db1f7e39eaa91
+  requires:
+    - StashUserscriptLibrary
+- id: TPDBMarkers
+  name: The Porn DB Markers
+  metadata:
+    description: Sync Markers from The Porn DB aka metadataapi.net
+  version: 0.1-5f4e7d0
+  date: 2024-02-22 07:41:42
+  path: TPDBMarkers.zip
+  sha256: 114cd3c5bb4e7702889904efe24e4ff89b8269d00c9d82cb73a098e8aa0d47f1
+- id: VideoScrollWheel
+  name: VideoScrollWheel
+  metadata:
+    description: Adds functionality to change volume/time in scene video player by
+      hovering over left/right side of player and scrolling with mouse
+      scrollwheel. Scroll while hovering on left side to adjust volume, scroll
+      on right side to skip forward/back.
+  version: 0.1-3bf16a6
+  date: 2024-02-17 18:13:36
+  path: VideoScrollWheel.zip
+  sha256: 9be70f61559650272a9c892c3300bca7d60a47892b84cd2e973d45374ceafc6f
+  requires:
+    - StashUserscriptLibrary
+- id: comicInfoExtractor
+  name: Comic Info Extractor
+  metadata:
+    description: Extract the metadata from cbz with the Comicrack standard (ComicInfo.xml)
+  version: 0.1-228c294
+  date: 2024-02-06 23:25:44
+  path: comicInfoExtractor.zip
+  sha256: 18ae25dc9f94e7052ed918e2492ddb60d013829a29c14d5ee0593dff09824fc4
+- id: defaultDataForPath
+  name: Default Data For Path
+  metadata:
+    description: Adds configured Tags, Performers and/or Studio to all newly scanned
+      Scenes, Images and Galleries.
+  version: 1.1-862f16b
+  date: 2024-02-11 08:41:16
+  path: defaultDataForPath.zip
+  sha256: 5be12f617b7238d3d79a95afbf370a73f253446b4e81cbfd1d5c13096ec7bb1f
+- id: dupeMarker
+  name: Dupe Marker Detector
+  metadata:
+    description: Finds and marks duplicate markers
+  version: 0.1-228c294
+  date: 2024-02-06 23:25:44
+  path: dupeMarker.zip
+  sha256: 3adbe485d7523f4df9a8b83774628420d5a655ffb0b3aac89bc0a7290ae22390
+- id: filenameParser
+  name: Filename parser
+  metadata:
+    description: Parses filename into studio, date, performers and title
+  version: 0.1-862f16b
+  date: 2024-02-11 08:41:16
+  path: filenameParser.zip
+  sha256: 3be795b183ff7e0b23071e1116b35ee70f77aa336be40ddfa09087989dd57529
+- id: markerTagToScene
+  name: Scene Marker Tags to Scene
+  metadata:
+    description: Adds primary tag of Scene Marker to the Scene on marker create/update.
+  version: 1.0-228c294
+  date: 2024-02-06 23:25:44
+  path: markerTagToScene.zip
+  sha256: a183833207f46523877304fd6a3a1cba5d25203e9ef4b2f5071fb5f2737855f4
+- id: miscTags
+  name: Misc Tags
+  metadata:
+    description: Add extra tags for VR and other ues
+  version: 0.2-228c294
+  date: 2024-02-06 23:25:44
+  path: miscTags.zip
+  sha256: a5c392b41fc643203ff96111872bd444b1c7639f11480ee46e866208cc635e28
+- id: pathParser
+  name: Path Parser
+  metadata:
+    description: Updates scene info based on the file path.
+  version: 1.0-862f16b
+  date: 2024-02-11 08:41:16
+  path: pathParser.zip
+  sha256: 8847d9d1d59802995c0b0cd34136d0efaa60b4961b7bdecd76acb56691fbfb06
+- id: phashDuplicateTagger
+  name: PHash Duplicate Tagger
+  metadata:
+    description: Will tag scenes based on duplicate PHashes for easier/safer removal.
+  version: 0.1.3-983b28b
+  date: 2024-02-17 17:39:10
+  path: phashDuplicateTagger.zip
+  sha256: bf91e1c7301a7dacc40a3e4004a288f1cac9e0f9cfc299ce464697d36ff6e134
+- id: renamerOnUpdate
+  name: renamerOnUpdate
+  metadata:
+    description: Rename/move filename based on a template.
+  version: 2.5.0-228c294
+  date: 2024-02-06 23:25:44
+  path: renamerOnUpdate.zip
+  sha256: 29514d2c98ecab1206c559566ad0df6419fafc83b7d3ab7924ed301ac563931c
+- id: sceneCoverCropper
+  name: Scene Cover Cropper
+  metadata:
+    description: Crop Scene Cover Images
+  version: 1.0-862f16b
+  date: 2024-02-11 08:41:16
+  path: sceneCoverCropper.zip
+  sha256: 4c95ae35f3f7acde0d05eaff90946338b3605053720e520f07ea06dac63f8f75
+  requires:
+    - CropperJS
+- id: set_scene_cover
+  name: Set Scene Cover
+  metadata:
+    description: searches Stash for Scenes with a cover image in the same folder and
+      sets the cover image in stash to that image
+  version: 0.4-228c294
+  date: 2024-02-06 23:25:44
+  path: set_scene_cover.zip
+  sha256: 5d5e9c248b252107e88c7580ee611a962bf073467260bcf403593d4f7ab06dc6
+- id: stashai
+  name: Stash AI
+  metadata:
+    description: Add Tags or Markers to a video using AI
+  version: 1.0.2-862f16b
+  date: 2024-02-11 08:41:16
+  path: stashai.zip
+  sha256: 1dfa9ef270b7f0cb41b249e480092facf31c4f3a839051e39050bccb16c30e8e
+  requires:
+    - StashUserscriptLibrary
+- id: stashNotes
+  name: Stash Notes
+  metadata:
+    description: Adds a button to the navigation bar which opens a small window for
+      writing notes to your browser's local storage.
+  version: 1.0-983b28b
+  date: 2024-02-17 17:39:10
+  path: stashNotes.zip
+  sha256: 9b927dbf5e290528fc159473dfb3be9f700802560425baf1eaf7e52d00029c92
+- id: stash-realbooru
+  name: Stash Realbooru
+  metadata:
+    description: Add tags based on the realbooru model, This works on individual images.
+  version: 1.0.1-862f16b
+  date: 2024-02-11 08:41:16
+  path: stash-realbooru.zip
+  sha256: 1d59bf47d17852296f296d91bd49802d4d1eafb0194fe3b814bbae5a04df92a3
+  requires:
+    - StashUserscriptLibrary
+- id: StashUserscriptLibrary
+  name: Stash Userscript Library
+  metadata:
+    description: Exports utility functions and a Stash class that emits events
+      whenever a GQL response is received and whenenever a page navigation
+      change is detected
+  version: 1.0-862f16b
+  date: 2024-02-11 08:41:16
+  path: StashUserscriptLibrary.zip
+  sha256: a8e89abaefff9a3abc9626949fd45979ad7db96d8c7bb2ffd2035343eac4d12c
+- id: stashdb-performer-gallery
+  name: stashdb performer gallery
+  metadata:
+    description: Automatically download performer images from stashdb or other
+      stash-boxes. Add the [Stashbox Performer Gallery] tag to a performer and
+      it will create a gallery of images from that stash-box database. Apply the
+      tag [Set Profile Image] to an image to set it as the profile image of that
+      performer. Note you will need to configure the download path and add this
+      as a path under settings > library
+  version: 0.1-228c294
+  date: 2024-02-06 23:25:44
+  path: stashdb-performer-gallery.zip
+  sha256: 12aecd9f5c043ad49dcf4e3d8d7f3fae39630358cdfdb66bb0ab37aebcd4c8db
+- id: stats
+  name: Extended Stats
+  metadata:
+    description: Adds new stats to the stats page
+  version: 1.0-862f16b
+  date: 2024-02-11 08:41:16
+  path: stats.zip
+  sha256: bffbc542bcc5a416c1b927059f4cc7604607238be471b1bf9a3bedcf7c77b5f3
+  requires:
+    - StashUserscriptLibrary
+- id: tag_graph
+  name: Tag Graph
+  metadata:
+    description: Creates a visual of the Tag relations
+  version: 0.2-228c294
+  date: 2024-02-06 23:25:44
+  path: tag_graph.zip
+  sha256: e38517fd1858964ddadb2bb38f7828e4417665e5e7e437abebfbc9438549792f
+- id: themeSwitch
+  name: Theme Switch
+  metadata:
+    description: Theme and CSS script manager located in main menu bar top right.
+  version: 2.1-5f4e7d0
+  date: 2024-02-22 07:41:42
+  path: themeSwitch.zip
+  sha256: 4f84628c85ec3c677bfe896ac5e6f8efad5bd44af1a6f5ee941b6038c7bc423e
+  requires:
+    - stashUserscriptLibrary
+- id: timestampTrade
+  name: Timestamp Trade
+  metadata:
+    description: Sync Markers with timestamp.trade, a new database for sharing markers.
+  version: 0.4-02894d1
+  date: 2024-02-21 04:37:10
+  path: timestampTrade.zip
+  sha256: 1087ceefdd4113be7f11a44b3796249feccb4fa9e254e3d68dd1a114b82f3972
+- id: titleFromFilename
+  name: titleFromFilename
+  metadata:
+    description: Set a scene's title from it's filename
+  version: 1.2-228c294
+  date: 2024-02-06 23:25:44
+  path: titleFromFilename.zip
+  sha256: 0eac47aafa8f37a043b210aff70268e1a165d5394b9888651cde85622deea3bc
+- id: visage
+  name: Visage
+  metadata:
+    description: Use facial Recognition To Lookup Performers.
+  version: 1.0.2-862f16b
+  date: 2024-02-11 08:41:16
+  path: visage.zip
+  sha256: 35668131588286df89668a42e6fa8844c50ac9d847c19a727a0e1e1427fdd269
+  requires:
+    - StashUserscriptLibrary
+- id: Theme-BlackHole
+  name: Theme - BlackHole
+  metadata:
+    description: BlackHole Theme for Stash by BViking78
+  version: 2.0.0-228c294
+  date: 2024-02-06 23:25:44
+  path: Theme-BlackHole.zip
+  sha256: 15885a1fc1b419b65fa576b6b8b24ee28852f5b4b69df1b2cc22c647df9bae89
+- id: Theme-ModernDark
+  name: Theme - ModernDark
+  metadata:
+    description: ModernDark Theme for Stash by cj13
+  version: 1.2-228c294
+  date: 2024-02-06 23:25:44
+  path: Theme-ModernDark.zip
+  sha256: ab2f231e8d923b5d362e4ee38a171c5b791cc0e2dfbb513504488c4428a94a3d
+- id: Theme-NeonDark
+  name: Theme - NeonDark
+  metadata:
+    description: NeonDark Theme for Stash by Dankonite
+  version: 1.0-228c294
+  date: 2024-02-06 23:25:44
+  path: Theme-NeonDark.zip
+  sha256: 32bf6593076317a39f99d4e39dca21147c549f9e572ef34b9725a25f47607ebd
+- id: Theme-Night
+  name: Theme - Night
+  metadata:
+    description: Night Theme for Stash (unknown author)
+  version: 0.1-228c294
+  date: 2024-02-06 23:25:44
+  path: Theme-Night.zip
+  sha256: ed73b02811986c15ff164020a6934d291589d9290b85fce1493bcc9d033b8f5f
+- id: Theme-Plex
+  name: Theme - Plex
+  metadata:
+    description: Plex Theme for Stash by Fidelio 2020
+  version: 1.0.5-228c294
+  date: 2024-02-06 23:25:44
+  path: Theme-Plex.zip
+  sha256: 8ebdab1b8d933c20fe904b465f89e598455ab508845decc31c17f28ba6c390f8
+- id: Theme-PornHub
+  name: Theme - Pornhub
+  metadata:
+    description: PornHub Theme for Stash by ronilaukkarinen
+  version: 1.0-228c294
+  date: 2024-02-06 23:25:44
+  path: Theme-PornHub.zip
+  sha256: 7740a87b98147193fd16306340a4a3528b5d2ac19362211606ce64af0167e253
+- id: Theme-Pulsar
+  name: Theme - Pulsar
+  metadata:
+    description: Plex Theme for Stash by Fonzie 2020-21
+  version: 1.8.1-228c294
+  date: 2024-02-06 23:25:44
+  path: Theme-Pulsar.zip
+  sha256: 462230dfe3831090ab61e2eaa02f74002c11f675bbac76f3b236af680d656c8f
+- id: Theme-PulsarLight
+  name: Theme - PulsarLight
+  metadata:
+    description: Plex Theme for Stash by Fonzie 2021
+  version: 0.3.1-228c294
+  date: 2024-02-06 23:25:44
+  path: Theme-PulsarLight.zip
+  sha256: 015a9f3c1db44e71447b8deab9ee063a46c16d5ced317b565f794c2c8db77921
+- id: Theme-RoundedYellow
+  name: Theme - Rounded Yellow
+  metadata:
+    description: Theme with rounded corners and yellow accents
+  version: 1.0-228c294
+  date: 2024-02-06 23:25:44
+  path: Theme-RoundedYellow.zip
+  sha256: 67b9b89da7f566e4978e6fcd90b37363bfa6bd7858f410ca3fd45e06654ac2df
diff --git a/stable/markerTagToScene.zip b/stable/markerTagToScene.zip
new file mode 100644
index 00000000..ba111d3d
Binary files /dev/null and b/stable/markerTagToScene.zip differ
diff --git a/stable/miscTags.zip b/stable/miscTags.zip
new file mode 100644
index 00000000..2d888023
Binary files /dev/null and b/stable/miscTags.zip differ
diff --git a/stable/pathParser.zip b/stable/pathParser.zip
new file mode 100644
index 00000000..355be857
Binary files /dev/null and b/stable/pathParser.zip differ
diff --git a/stable/phashDuplicateTagger.zip b/stable/phashDuplicateTagger.zip
new file mode 100644
index 00000000..f2b61a70
Binary files /dev/null and b/stable/phashDuplicateTagger.zip differ
diff --git a/stable/renamerOnUpdate.zip b/stable/renamerOnUpdate.zip
new file mode 100644
index 00000000..6c59db55
Binary files /dev/null and b/stable/renamerOnUpdate.zip differ
diff --git a/stable/sceneCoverCropper.zip b/stable/sceneCoverCropper.zip
new file mode 100644
index 00000000..63b6a788
Binary files /dev/null and b/stable/sceneCoverCropper.zip differ
diff --git a/stable/set_scene_cover.zip b/stable/set_scene_cover.zip
new file mode 100644
index 00000000..d032d084
Binary files /dev/null and b/stable/set_scene_cover.zip differ
diff --git a/stable/stash-realbooru.zip b/stable/stash-realbooru.zip
new file mode 100644
index 00000000..755eaab3
Binary files /dev/null and b/stable/stash-realbooru.zip differ
diff --git a/stable/stashBatchResultToggle.zip b/stable/stashBatchResultToggle.zip
new file mode 100644
index 00000000..fa9261de
Binary files /dev/null and b/stable/stashBatchResultToggle.zip differ
diff --git a/stable/stashNotes.zip b/stable/stashNotes.zip
new file mode 100644
index 00000000..cd28f7e2
Binary files /dev/null and b/stable/stashNotes.zip differ
diff --git a/stable/stashai.zip b/stable/stashai.zip
new file mode 100644
index 00000000..c7d2b5b0
Binary files /dev/null and b/stable/stashai.zip differ
diff --git a/stable/stashdb-performer-gallery.zip b/stable/stashdb-performer-gallery.zip
new file mode 100644
index 00000000..1a775196
Binary files /dev/null and b/stable/stashdb-performer-gallery.zip differ
diff --git a/stable/stats.zip b/stable/stats.zip
new file mode 100644
index 00000000..4d567fdc
Binary files /dev/null and b/stable/stats.zip differ
diff --git a/stable/tag_graph.zip b/stable/tag_graph.zip
new file mode 100644
index 00000000..f2485df3
Binary files /dev/null and b/stable/tag_graph.zip differ
diff --git a/stable/themeSwitch.zip b/stable/themeSwitch.zip
new file mode 100644
index 00000000..7f377b98
Binary files /dev/null and b/stable/themeSwitch.zip differ
diff --git a/stable/timestampTrade.zip b/stable/timestampTrade.zip
new file mode 100644
index 00000000..963f3313
Binary files /dev/null and b/stable/timestampTrade.zip differ
diff --git a/stable/titleFromFilename.zip b/stable/titleFromFilename.zip
new file mode 100644
index 00000000..6c261898
Binary files /dev/null and b/stable/titleFromFilename.zip differ
diff --git a/stable/visage.zip b/stable/visage.zip
new file mode 100644
index 00000000..868f6751
Binary files /dev/null and b/stable/visage.zip differ
diff --git a/themes/plex/README.md b/themes/plex/README.md
deleted file mode 100644
index 64c6bb24..00000000
--- a/themes/plex/README.md
+++ /dev/null
@@ -1,29 +0,0 @@
-![plex theme logo](https://user-images.githubusercontent.com/63812189/79496351-dddbf780-7fda-11ea-9e68-46d0eeb4e92f.png)
-
-![plex theme preview](https://user-images.githubusercontent.com/1358708/178891502-c71e4278-0378-4154-91a6-07e1a8eaa1df.png)
-
-This is a community created theme for Stash inspired by the popular Plex Interface. Installation is quick and easy so you should be ready to install it in just a few simple steps.
-
-Feel free to experiment with CSS and modify it to fit your needs. In case you have any issues or improvements we will be happy to hear from you on our [Discord server](https://discord.gg/2TsNFKt)! You can also submit a PR to share improvements with others!
-
-The Plex Theme will only change the look and feel of the Stash interface. It will not affect any other data, so you are all safe and sound! :heart:
-
-## Install
-
-1. Open User Interface Configuration panel in settings. (http://localhost:9999/settings?tab=interface)
-
-2. Tick/Enable Custom CSS ✅
-
-3. Copy & Paste [CSS Code](https://github.com/stashapp/CommunityScripts/blob/main/themes/plex/plex.css) to the Custom CSS text area.
-
-### Optional - Host Backgrounds Locally
-
-_These steps are optional, by default this theme uses the Github hosted image links._
-
-1. Download [background.png](https://user-images.githubusercontent.com/63812189/79506691-4af78900-7feb-11ea-883e-87b8e05ceb1c.png) and [noise.png](https://user-images.githubusercontent.com/63812189/79506696-4c28b600-7feb-11ea-8176-12a46454d87a.png)
-
-2. Place `background.png` and `noise.png` in `~/.stash` on macOS / Linux or `C:\Users\YourUsername\.stash` on Windows. Then edit the `background-image: url("")` attributes like below:  
-
-The [body](https://github.com/stashapp/CommunityScripts/blob/main/themes/plex/plex.css#L7) one `background-image: url("./background.png");`
-
-The [root](https://github.com/stashapp/CommunityScripts/blob/main/themes/plex/plex.css#L18) one `background: rgba(0, 0, 0, 0) url("./noise.png") repeat scroll 0% 0%;`
diff --git a/themes/plex/plex.css b/themes/plex/plex.css
deleted file mode 100644
index 0eb2166e..00000000
--- a/themes/plex/plex.css
+++ /dev/null
@@ -1,204 +0,0 @@
-/*
-Originally created by Fidelio 2020
-StashApp Plex Theme - v1.0.5
-*/
-
-body {
-	background-image: url("https://user-images.githubusercontent.com/63812189/79506691-4af78900-7feb-11ea-883e-87b8e05ceb1c.png");
-	width: 100%;
-	height: 100%;
-	background-size: cover;
-	background-repeat: no-repeat;
-	background-color: #3f4245;
-	background-attachment: fixed;
-	background-position: center;
-}
-
-#root {
-	background: rgba(0, 0, 0, 0) url("https://user-images.githubusercontent.com/63812189/79506696-4c28b600-7feb-11ea-8176-12a46454d87a.png") repeat scroll 0% 0%;
-	position: absolute;
-	width: 100%;
-	height: 100%;
-	z-index: 2;
-}
-
-* {
-	scrollbar-color: hsla(0, 0%, 100%, .2) transparent;
-}
-
-.bg-dark {
-	background-color: #1f2326!important;
-}
-
-.job-table.card,
-.card {
-	background-color: #30404d;
-	border-radius: 3px;
-	box-shadow: 0 0 0 1px rgba(16, 22, 26, .4), 0 0 0 rgba(16, 22, 26, 0), 0 0 0 rgba(16, 22, 26, 0);
-	padding: 20px;
-	background-color: rgba(0, 0, 0, .3);
-}
-
-.bg-secondary {
-	background-color: #313437 !important;
-}
-
-.text-white {
-	color: #eee !important;
-}
-
-.border-secondary {
-	border-color: #2f3335 !important;
-}
-
-.btn-secondary.filter-item.col-1.d-none.d-sm-inline.form-control {
-	background-color: rgba(0, 0, 0, .15);
-}
-
-.btn-secondary {
-	color: #eee;
-	background-color: rgba(0, 0, 0, .15);
-}
-
-a {
-	color: hsla(0, 0%, 100%, .45);
-}
-
-.btn.active {
-	background-color: #2f3335;
-	color: #f5f8fa;
-}
-
-minimal.w-100.active.btn.btn-primary {
-	background-color: #2f3335;
-	color: #f5f8fa;
-}
-
-.btn-primary {
-	color: #fff;
-	background-color: #1f2326;
-	border-color: #374242;
-}
-
-.nav-tabs .nav-link.active {
-	color: #eee;
-}
-
-.nav-tabs .nav-link.active:hover {
-	border-bottom-color: #eee;
-	outline: 0;
-}
-
-.nav-tabs .nav-link {
-	outline: 0;
-}
-
-.input-control,
-.input-control:focus {
-	background-color: rgba(16, 22, 26, .3);
-}
-
-#performer-page .image-container .performer {
-	background-color: rgba(0, 0, 0, .45);
-	box-shadow: 0 0 2px rgba(0, 0, 0, .35);
-}
-
-.btn-primary:not(:disabled):not(.disabled).active,
-.btn-primary:not(:disabled):not(.disabled):active,
-.show>.btn-primary.dropdown-toggle {
-	color: #fff;
-	border-color: #eee;
-}
-
-.nav-pills .nav-link.active,
-.nav-pills .show>.nav-link {
-	background-color: #1f2326;
-}
-
-.btn-primary.focus,
-.btn-primary:focus,
-.btn-primary:not(:disabled):not(.disabled).active:focus,
-.btn-primary:not(:disabled):not(.disabled):active:focus,
-.show>.btn-primary.dropdown-toggle:focus {
-	box-shadow: none;
-}
-
-.btn-primary:not(:disabled):not(.disabled).active,
-.btn-primary:not(:disabled):not(.disabled):active,
-.show>.btn-primary.dropdown-toggle {
-	color: #fff;
-	background-color: #2f3335;
-	border-color: #eee;
-}
-
-input[type="range"]::-moz-range-track {
-	background: hsla(0, 0%, 100%, .25);
-}
-
-input[type="range"]::-moz-range-thumb {
-	background: #bcbcbc;
-}
-
-div.react-select__control {
-	background-color: hsla(0, 0%, 39.2%, .4);
-	color: #182026;
-	border-color: #394b59;
-	cursor: pointer;
-}
-
-.scene-wall-item-text-container {
-	background: radial-gradient(farthest-corner at 50% 50%, rgba(50, 50, 50, .5) 50%, #323232 100%);
-	color: #eee;
-}
-
-.filter-container,
-.operation-container {
-	background-color: rgba(0, 0, 0, .15);
-	box-shadow: none;
-	margin-top: -10px;
-	padding: 10px;
-}
-
-.container-fluid,
-.container-lg,
-.container-md,
-.container-sm,
-.container-xl {
-	width: 100%;
-	margin-right: 0px;
-	margin-left: 0px;
-}
-
-.btn-link {
-	font-weight: 500;
-	color: #eee;
-	text-decoration: none;
-}
-
-button.minimal.brand-link.d-none.d-md-inline-block.btn.btn-primary {
-	text-transform: uppercase;
-	font-weight: bold;
-}
-
-a:hover {
-	color: hsla(0, 0%, 100%, .7);
-}
-
-option {
-	background-color: #1f2326;
-}
-.folder-list .btn-link {
-    color: #2c2e30;
-}
-
-#performer-scraper-popover {
-  z-index: 10;
-}
-
-#tasks-panel .tasks-panel-queue {
-  background: rgba(0, 0, 0, 0);
-}
-
-div.react-select__menu-portal {
-  z-index: 2;
-}
diff --git a/userscripts/StashDB_Submission_Helper/README.md b/userscripts/StashDB_Submission_Helper/README.md
deleted file mode 100644
index fdabf91b..00000000
--- a/userscripts/StashDB_Submission_Helper/README.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# StashDB Submission Helper
-
-- Adds button to add all unmatched aliases to performer
-- Adds button to add all unmatched urls to performer
-- Adds button to add all unmatched measurements to performer (if they match expected formats)
-- Convert unmatched urls from regular strings to linked strings
-
-## [**INSTALL USERSCRIPT**](https://raw.githubusercontent.com/stashapp/CommunityScripts/main/userscripts/StashDB_Submission_Helper/stashdb_submission_helper.user.js)
-
-Installation requires a browser extension such as [Violentmonkey](https://violentmonkey.github.io/) / [Tampermonkey](https://www.tampermonkey.net/) / [Greasemonkey](https://www.greasespot.net/).
-
-### Screenshot
-![script preview](https://user-images.githubusercontent.com/1358708/178110989-3bc33371-e3bb-4064-8851-a9356b5a4882.png)
-
-### Demo GIF:
-![demo gif](https://monosnap.com/image/p4pkcqrKWYp3V5quHl5LWOAZUG3oAP)
-
-## Changelog
-
-### 0.7
-- Allow alias separator to also be `/` or ` or ` (space on either side of the or).
-- Allow measurements to be added without the cup size
-- Support full current list of sites for adding URLS (previously only IAFD, DATA18, Indexxx, and Twitter were supported because I forgot to add the others)
-
-### 0.6
-- Add input field / button to performer edit pages to add a comma separated list of aliases to a performer
-![alias input](https://user-images.githubusercontent.com/1358708/179358258-89385345-36ed-42ea-8b71-4f7e84d3a253.png)
-- Cleaned up code so that it doesn't run on non-performer drafts
-- Added performer add and edit pages to the pages it runs on (since alias function isn't just draft related)
-
-### 0.5
-Public Release
diff --git a/userscripts/StashDB_Submission_Helper/stashdb_submission_helper.user.js b/userscripts/StashDB_Submission_Helper/stashdb_submission_helper.user.js
deleted file mode 100644
index e125cf32..00000000
--- a/userscripts/StashDB_Submission_Helper/stashdb_submission_helper.user.js
+++ /dev/null
@@ -1,360 +0,0 @@
-// ==UserScript==
-// @name        StashDB Submission Helper
-// @author      halorrr
-// @version     0.7
-// @description Adds button to add all unmatched aliases, measurements, and urls to a performer.
-// @icon        https://raw.githubusercontent.com/stashapp/stash/develop/ui/v2.5/public/favicon.png
-// @namespace   https://github.com/halorrr
-// @match       https://stashdb.org/drafts/*
-// @match       https://stashdb.org/performers/*/edit
-// @match       https://stashdb.org/performers/add
-// @homepageURL https://github.com/stashapp/CommunityScripts/tree/main/userscripts/StashDB_Submission_Helper
-// @downloadURL https://raw.githubusercontent.com/stashapp/CommunityScripts/main/userscripts/StashDB_Submission_Helper/stashdb_submission_helper.user.js
-// @updateURL   https://raw.githubusercontent.com/stashapp/CommunityScripts/main/userscripts/StashDB_Submission_Helper/stashdb_submission_helper.user.js
-// ==/UserScript==
-
-function setNativeValue(element, value) {
-  const valueSetter = Object.getOwnPropertyDescriptor(element, 'value')?.set;
-  const prototype = Object.getPrototypeOf(element);
-  const prototypeValueSetter = Object.getOwnPropertyDescriptor(prototype, 'value')?.set;
-
-  if (prototypeValueSetter && valueSetter !== prototypeValueSetter) {
-    prototypeValueSetter.call(element, value);
-  } else if (valueSetter) {
-    valueSetter.call(element, value);
-  } else {
-    throw new Error('The given element does not have a value setter');
-  };
-
-  const eventName = element instanceof HTMLSelectElement ? 'change' : 'input';
-  element.dispatchEvent(new Event(eventName, { bubbles: true }));
-};
-
-function waitForElm(selector) {
-    return new Promise(resolve => {
-        if (document.querySelector(selector)) {
-            return resolve(document.querySelector(selector));
-        };
-
-        const observer = new MutationObserver(mutations => {
-            if (document.querySelector(selector)) {
-                resolve(document.querySelector(selector));
-                observer.disconnect();
-            };
-        });
-
-        observer.observe(document.body, {
-            childList: true,
-            subtree: true
-        });
-    });
-};
-
-const aliasInputSelector = 'label[for="aliases"] + div input';
-
-function unmatchedTargetElement(targetProperty) {
-  var targetRegex = '//h6/following-sibling::ul/li[b[contains(text(), "' + targetProperty + '")]]/span/text()';
-  var targetElement = document.evaluate(targetRegex, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
-  return targetElement;
-};
-
-function unmatchedTargetValue(targetProperty) {
-  var targetElement = unmatchedTargetElement(targetProperty)
-  if (targetElement == null) {
-    return;
-  }
-  return targetElement.data;
-};
-
-function unmatchedTargetButton(targetProperty) {
-  var targetRegex = '//h6/following-sibling::ul/li[b[contains(text(), "' + targetProperty + '")]]';
-  var targetElement = document.evaluate(targetRegex, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
-  return targetElement;
-};
-
-function wrapUrlTag(url) {
-  return "<a href='" + url + "' target='_blank'>" + url + "</a>";
-};
-
-function makeUrlLink(element) {
-  const currentUrls = element.data.split(", ");
-
-  const wrappedUrls = currentUrls.map(url => {
-    return wrapUrlTag(url);
-  });
-
-  element.parentElement.innerHTML = wrappedUrls.join(", ");
-};
-
-function formTab(tabName) {
-  const tabRegex = '//ul[@role="tablist"]/li/button[contains(text(), "' + tabName + '")]';
-  return document.evaluate(tabRegex, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
-};
-
-function addAlias(alias) {
-  alias = alias.trim()
-  const existingAliases = Array.from(document.querySelectorAll('label[for="aliases"] + div .react-select__multi-value__label'));
-  let aliasMatch = existingAliases.find(element => { return element.innerText == alias; });
-  if (typeof aliasMatch !== 'undefined') {
-    console.warn("Skipping alias '" + alias + "' as it is already added to this performer.");
-    return;
-  };
-  const aliasInput = document.querySelector(aliasInputSelector);
-  setNativeValue(aliasInput, alias);
-  var addButton = document.querySelector('label[for="aliases"] + div .react-select__option');
-  formTab("Personal Information").click();
-  addButton.click();
-};
-
-function existingUrlObjects() {
-  const existingUrls = Array.from(document.querySelectorAll('.URLInput ul .input-group'));
-  const urlObjects = existingUrls.map(urlGroup => {
-    let site = urlGroup.childNodes[1].innerText;
-    let url = urlGroup.childNodes[2].innerText;
-    let urlObject = {
-      site: site,
-      url: url
-    };
-    return urlObject;
-  });
-  return urlObjects;
-};
-
-function urlSite(url) {
-  let site;
-  if (/(^https?:\/\/(?:www\.)?adultfilmdatabase\.com\/(?:video|studio|actor)\/.+)\??/.test(url)) {
-    site = 'AFDB'
-  } else if (/(https?:\/\/www.babepedia.com\/babe\/[^?]+)\??/.test(url)) {
-    site = 'Babepedia'
-  } else if (/(^https?:\/\/(?:www\.)?bgafd\.co\.uk\/(?:films|actresses)\/details.php\/id\/[^?]+)\??/.test(url)) {
-    site = 'BGAFD'
-  } else if (/(https?:\/\/www.boobpedia.com\/boobs\/[^?]+)\??/.test(url)) {
-    site = 'Boobpedia'
-  } else if (/(https?:\/\/www.data18.com\/[^?]+)\??/.test(url)) {
-    site = 'DATA18'
-  } else if (/(^https?:\/\/(?:www\.)?egafd\.com\/(?:films|actresses)\/details.php\/id\/[^?]+)\??/.test(url)) {
-    site = 'EGAFD'
-  } else if (/(https?:\/\/(www\.)?eurobabeindex.com\/sbandoindex\/.*?.html)/.test(url)) {
-    site = 'Eurobabeindex'
-  } else if (/(^https?:\/\/(?:www.)?facebook\.com\/[^?]+)/.test(url)) {
-    site = 'Facebook'
-  } else if (/(https?:\/\/www.freeones.com\/[^/?]+)\??/.test(url)) {
-    site = 'FreeOnes'
-  } else if (/(https?:\/\/www.iafd.com\/[^?]+)\??/.test(url)) {
-    site = 'IAFD'
-  } else if (/(^https?:\/\/(?:www\.)?imdb\.com\/(?:name|title)\/[^?]+)\/?/.test(url)) {
-    site = 'IMDB'
-  } else if (/(https?:\/\/www.indexxx.com\/[^?]+)\??/.test(url)) {
-    site = 'Indexxx'
-  } else if (/(https?:\/\/www.instagram.com\/[^/?]+)\??/.test(url)) {
-    site = 'Instagram'
-  } else if (/(https?:\/\/www.manyvids.com\/[^?]+)\??/.test(url)) {
-    site = 'ManyVids'
-  } else if (/(^https?:\/\/(?:www.)?minnano-av\.com\/actress\d+.html)/.test(url)) {
-    site = 'Minnano-av'
-  } else if (/(^https?:\/\/(?:www.)?myspace\.com\/[^?]+)/.test(url)) {
-    site = 'Myspace'
-  } else if (/(https?:\/\/onlyfans.com\/[^?]+)\??/.test(url)) {
-    site = 'OnlyFans'
-  } else if (/(https?:\/\/www.thenude.com\/[^?]+\.htm)/.test(url)) {
-    site = 'theNude'
-  } else if (/(^https?:\/\/(?:www.)?tiktok\.com\/@[^?]+)/.test(url)) {
-    site = 'TikTok'
-  } else if (/(https?:\/\/twitter.com\/[^?]+)\??/.test(url)) {
-    site = 'Twitter'
-  } else if (/(^https?:\/\/(www\.)?wikidata.org\/wiki\/[^?]+)/.test(url)) {
-    site = 'Wikidata'
-  } else if (/(^https?:\/\/(?:\w+\.)?wikipedia\.org\/wiki\/[^?]+)/.test(url)) {
-    site = 'Wikipedia'
-  } else if (/(^https?:\/\/xslist\.org\/en\/model\/\d+\.html)/.test(url)) {
-    site = 'XsList'
-  } else if (/(^https?:\/\/(?:www.)?youtube\.com\/(?:c(?:hannel)?|user)\/[^?]+)/.test(url)) {
-    site = 'YouTube'
-  } else {
-    return;
-  };
-
-  return site;
-};
-
-function siteMatch(url, selections) {
-  const match = Array.from(selections.options).find((option) => option.text == urlSite(url));
-
-  return match;
-}
-
-function addUrl(url) {
-  const existingUrls = existingUrlObjects();
-  let urlMatch = existingUrls.find(element => { return element.url == url; });
-  if (typeof urlMatch !== 'undefined') {
-    console.warn("Skipping url '" + url + "' as it is already added to this performer.");
-    return;
-  };
-
-  const urlForm = document.querySelector('form .URLInput');
-  const urlInput = urlForm.querySelector(':scope > .input-group');
-  const selections = (urlInput.children[1]);
-  const inputField = (urlInput.children[2]);
-  const addButton = (urlInput.children[3]);
-
-  const selection = siteMatch(url, selections);
-  setNativeValue(selections, selection.value);
-  setNativeValue(inputField, url);
-  if (addButton.disabled) {
-    console.warn("Unable to add url (Add button is disabled)");
-  };
-
-  formTab("Links").click();
-  addButton.click();
-};
-
-function setStyles(element, styles) {
-  Object.assign(element.style, styles);
-  return element;
-};
-
-function baseButtonContainer() {
-  const container = document.createElement("span");
-  return container;
-};
-
-function baseButtonSet(name) {
-  const set = document.createElement("a");
-  set.innerText = "add " + name;
-  set.classList.add("fw-bold");
-  setStyles(set, { color: "var(--bs-yellow)", cursor: "pointer", "margin-left": "0.5em", });
-  return set;
-};
-
-function insertButton(action, element, name) {
-  const container = baseButtonContainer();
-  const set = baseButtonSet(name);
-  set.addEventListener("click", action);
-  container.append(set);
-  element.appendChild(container);
-};
-
-function addMeasurements(measurements) {
-  const splitMeasurements = measurements.split("-");
-
-  if (splitMeasurements.length > 0) {
-    const braSize = splitMeasurements[0].trim();
-    const braInput = document.querySelector('input[name="braSize"]');
-    setNativeValue(braInput, braSize);
-  };
-
-  if (splitMeasurements.length > 1) {
-    const waistSize = splitMeasurements[1].trim();
-    const waistInput = document.querySelector('input[name="waistSize"]');
-    setNativeValue(waistInput, waistSize);
-  };
-
-  if (splitMeasurements.length > 2) {
-    const hipSize = splitMeasurements[2].trim();
-    const hipInput = document.querySelector('input[name="hipSize"]');
-    setNativeValue(hipInput, hipSize);
-  };
-
-  formTab("Personal Information").click();
-}
-
-function createAliasButton(unmatched, element) {
-  const addAliases = () => unmatched.forEach(addAlias);
-  insertButton(addAliases, element, "aliases");
-};
-
-function createMeasurementsButton(unmatched, element) {
-  const insertMeasurements = () => addMeasurements(unmatched);
-  insertButton(insertMeasurements, element, "measurements");
-};
-
-function createUrlsButton(unmatched, element) {
-  const addUrls = () => unmatched.forEach(addUrl);
-  insertButton(addUrls, element, "urls");
-};
-
-function isValidMeasurements(measurements) {
-  const measurementsRegex = /(\d\d\w?\w?\w?\s?)(-\s?\d\d\s?)?(-\s?\d\d)?/;
-  const isValid = measurementsRegex.test(measurements);
-  if (!isValid) { console.warn("Measurement format '" + measurements + "' is invalid and cannot be automatically added.") };
-  return measurementsRegex.test(measurements);
-};
-
-function addAliasInputContainer() {
-  const performerForm = document.querySelector(".PerformerForm");
-  const aliasContainer = document.createElement ('div');
-  aliasContainer.innerHTML = '<button id="aliasButton">Add Aliases</button>';
-  aliasContainer.setAttribute ('id', 'aliasContainer');
-  performerForm.prepend(aliasContainer);
-
-  const aliasButton = document.createElement("input");
-  aliasButton.innerText = "Add Aliases";
-  aliasButton.setAttribute("id", "aliasButton");
-  aliasButton.setAttribute("style", "border-radius: 0.25rem;")
-
-  const aliasField = document.createElement("input");
-  aliasField.setAttribute("id", "aliasField");
-  aliasField.setAttribute("placeholder", " Comma separated aliases");
-  aliasField.setAttribute("size", "50px");
-  aliasField.setAttribute("style", "border-radius: 0.25rem; margin-right: 0.5rem;");
-
-  document.getElementById("aliasContainer").prepend(aliasField);
-  const enteredAliases = document.getElementById("aliasField").value;
-
-  document.getElementById("aliasButton").addEventListener('click', function handleClick(event) {
-    event.preventDefault();
-    const aliasField = document.getElementById("aliasField");
-    if (aliasField.value != '') {
-      aliasField.value.split(/,|\/|\sor\s/).forEach(addAlias);
-      aliasField.value = "";
-    };
-  });
-};
-
-function performerEditPage() {
-  const aliasValues = unmatchedTargetValue("Aliases");
-  if (aliasValues != null) {
-    const unmatchedAliases = aliasValues.split(/,|\/|\sor\s/);
-    const aliasElement = unmatchedTargetButton("Aliases");
-    createAliasButton(unmatchedAliases, aliasElement);
-  };
-
-  const urlsValues = unmatchedTargetValue("URLs");
-  if (urlsValues != null) {
-    const unmatchedUrls = urlsValues.split(", ");
-    if (unmatchedUrls) {
-      const umatchedUrlsElement = unmatchedTargetElement("URLs")
-      makeUrlLink(umatchedUrlsElement);
-    };
-    const urlsElement = unmatchedTargetButton("URLs");
-    createUrlsButton(unmatchedUrls, urlsElement);
-  };
-
-  const unmatchedMeasurements = unmatchedTargetValue("Measurements");
-  if (unmatchedMeasurements != null) {
-    if (isValidMeasurements(unmatchedMeasurements)) {
-      const measurementsElement = unmatchedTargetButton("Measurements");
-      createMeasurementsButton(unmatchedMeasurements, measurementsElement);
-    };
-  };
-
-  addAliasInputContainer();
-};
-
-function sceneEditPage() {
-  return;
-};
-
-function pageType() {
-  return document.querySelector(".NarrowPage form").className.replace("Form", "");
-};
-
-waitForElm(aliasInputSelector).then(() => {
-  if (pageType() == "Performer") {
-    performerEditPage();
-  } else if (pageType() == "Scene") {
-    sceneEditPage();
-  } else {
-    return;
-  };
-});