Skip to content

Instantly share code, notes, and snippets.

@count23all
count23all / gist:49b83be49a587efab83af3dfa04f9d8c
Last active October 29, 2024 15:35
This userscript creates a right aligned overlay that accesses the Perplexity.AI Restful API for a user while htey are searching to provide an indication of the remaining limits they have for their searches for the refresh interval.
// ==UserScript==
// @name Perplexity.ai Limits Overlay (Dark Mode, Draggable)
// @namespace http://tampermonkey.net/
// @version 2.0
// @description Overlays various limit values on Perplexity.ai main and search pages, updates on submit
// @match https://www.perplexity.ai/
// @match https://www.perplexity.ai/search*
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
@count23all
count23all / gist:6eee9b3845e375c2cf522b6aa2fd0074
Last active November 8, 2024 04:16
This userscript creates a CSS box on the right hand side of any Perplexity AI chat expressing the approximate word counter and token counter based on the openAI recommended 1 token ~= 0.75 words.
// ==UserScript==
// @name Perplexity Word Counter 2 (Dark Mode, Draggable)
// @namespace http://tampermonkey.net/
// @version 1.5
// @description Counts words on Perplexity search pages and estimates context, updates every 5 seconds, draggable
// @match https://www.perplexity.ai/search/*
// @grant none
// ==/UserScript==
(function() {