Skip to content

Latest commit

 

History

History
130 lines (65 loc) · 9.89 KB

CONTENT_SUMMARY.md

File metadata and controls

130 lines (65 loc) · 9.89 KB

Index of Files in 'oaustegard/bookmarklets/'

The provided files include scripts for manipulating Markdown content, conducting AI tests, searching a website, speeding up videos, and generating Markdown files from JIRA. There are also files for translating LaTeX books and copying URLs.

The file contains a list of file types and directories to be ignored by version control systems like Git, focusing on Visual Studio and related tools. It excludes user-specific files, build results, cache directories, test results, and various auto-generated files to maintain a clean repository.

The files in the 'oaustegard/bookmarklets/' repository include a variety of bookmarklets for tasks like extracting ride summaries from Strava, collecting Twitter data, converting HTML to Markdown, modifying webpage elements, and generating Markdown documentation using the OpenAI API. Each file serves a specific function, such as displaying ride summaries, extracting highlights, copying links, converting colors, and manipulating webpage content.

The code file is released under the MIT License by Oskar Austegard in 2023. It grants permission to use, modify, distribute, and sell the software with conditions. The software is provided without warranty, and the authors are not liable for any damages.

The code files in this collection contain various bookmarklets for different purposes. For detailed information, refer to the CONTENT_SUMMARY.md file.

The code retrieves stored ride summaries from local storage, removes specified phrases, and displays the formatted data in a new window.

The code defines functions to extract and display Strava ride highlights and interesting segments based on specified power and speed thresholds. It combines and formats the data for display in a new window.

The code retrieves the text from a specific section on a webpage and saves it in local storage as part of an array of ride summaries.

The code collects tweets and their popularity data from a webpage by scrolling and extracting text and popularity information from specific elements. It then displays the collected data in a new window.

The code snippet appends a script to ensure the availability of the console object for a bookmarklet, creating an alias _c for it if available, copying its properties to _c.

The code defines a utility function to copy text to the clipboard using execCommand, ensuring both formatted and plaintext versions are copied. It adds event listeners for copying, sets clipboard data, and removes the listener after copying.

The code snippet creates a function '_lg' that logs messages to the console in bookmarklets where 'console.log' does not work. It appends a script element to the document body for debugging purposes.

Minified code provides a TurndownService for converting HTML to Markdown. It includes rules for handling various HTML elements and generates Markdown output accordingly. The code uses a DOMParser for parsing HTML and implements rules for different Markdown elements like headings, lists, code blocks, and links.

The code checks if the current page is on 'arxiv.org', then replaces '/pdf/' with '/abs/' and removes '.pdf' from the URL before opening the new URL in a new tab.

The code extracts the parent element of the selected text, finds the nearest element with an ID or anchor name, and updates the URL hash with the element's ID or name if found.

The code dynamically creates a script element, copies specified content to the clipboard in HTML and plain text formats, and handles errors. It extracts page metadata from a Confluence page and generates markdown and HTML links for copying.

The code modifies a table on a webpage by adding a 'Preview' column to the header row and inserting image previews of file attachments next to each file link in the body rows.

The code dynamically adds a function to log messages, converts selected HTML content to Markdown format, copies it to the clipboard, and displays it in a new window. It also includes a Turndown library for HTML to Markdown conversion.

The code creates a pop-up window with a form to input a URL and link title. Upon clicking 'Copy & Close', it generates an HTML link and Markdown link, copies them to the clipboard, and closes the window.

The code file contains functions to convert RGB to HSL values and extract color rules from CSS stylesheets. It then sorts colors based on HSL values and displays color swatches with associated CSS rules in a new window.

The code defines functions to outline and move an element on hover, drag it on click, delete it on key press, and clean up event listeners. It enables interactive element manipulation on a webpage.

The code redirects the current webpage to open in the Microsoft Edge browser by modifying the URL with the "microsoft-edge:" protocol.

The code toggles the contentEditable property of the document body to enable/disable editing mode and sets the designMode accordingly for the webpage.

The code defines a function to replace text in an HTML element recursively. It prompts users to input text to find and text to replace, then replaces the found text with the replacement text in the HTML content.

The code defines functions to list files in a directory, read file content, invoke an API to generate Markdown documentation based on JavaScript code, and write the documentation to a file. It utilizes OpenAI's GPT-3 model to create structured documentation for bookmarklets in specified directories, skipping files over 10000 characters. The script also handles CLI arguments for directory selection and file exclusion, providing a comprehensive Markdown documentation generation process.

The code extracts data from a webpage and creates a markdown and HTML link with specific information like key, summary, status, priority, type, and assignee. It then copies this formatted data to the clipboard when triggered.

The code dynamically creates a 'TurndownService' to convert HTML content to Markdown. It identifies the main content element, removes unwanted elements, converts the content to Markdown, copies it to the clipboard, and displays it in a new window.

The code extracts a username from a meta tag with property 'profile:username' and opens a new window with the username appended to a Mastodon social link. It alerts if the meta tag is missing.

The code opens a new browser window with a Google search for specific terms within the current website's domain, excluding 'www.' from the search.

Appends a script to the body that enhances console functionality. Defines a function to increase playback rate of videos in iframes and logs the changes to the console. It recursively searches for videos in iframes and adjusts their playback rate.

The code defines functions to extract and display Strava ride highlights and interesting segments based on specified power and speed thresholds. It combines and formats the data for display in a new window.

The code adds a 'GPX Data' link next to elements with the attribute 'data-field-name=name' on a webpage, linking to the GPX export of the element's href.