• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • toolbox-storage
  • squashPermalink

Function squashPermalink

  • squashPermalink(permalink: string): string

    Attempts to shorten a link into the Toolbox permalink format for usernotes. This format is described here: https://github.com/toolbox-team/reddit-moderator-toolbox/wiki/Subreddit-Wikis%3A-usernotes#link-string-formats

    Parameters

    • permalink: string

      The link to shorten

    Returns string

    A shortened link string, or the original URL if the link doesn't match any shortening format known to Toolbox.

    • Defined in usernotes/RawUsernotes.ts:82

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc