This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- DROP FUNCTION public.archive_requirements_history(); | |
| CREATE OR REPLACE FUNCTION public.archive_requirements_history() | |
| RETURNS trigger | |
| LANGUAGE plpgsql | |
| AS $function$ | |
| BEGIN | |
| -- Archive old row to history only if version has changed | |
| IF OLD.version <> NEW.version THEN | |
| INSERT INTO public.requirements_history ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Grok Enhanced | |
| // @namespace https://gist.github.com/kiranwayne | |
| // @version 0.5 | |
| // @description Customize width & justification (main/secondary panels via slider/input/checkbox). Fixed for May 2024 Grok UI update. Show/hide via menu on grok.com. Handles Shadow DOM. Header added. | |
| // @author kiranwayne | |
| // @match https://grok.com/* | |
| // @updateURL https://gist.githubusercontent.com/kiranwayne/33c7340b4169617116cc8068cf10cb26/raw/grok_enhanced.js | |
| // @downloadURL https://gist.githubusercontent.com/kiranwayne/33c7340b4169617116cc8068cf10cb26/raw/grok_enhanced.js | |
| // @grant GM_getValue |