README.org (3370B)
1 #+title: detubifier.el 2 #+author: Yuval Langer https://kaka.farm/ 3 #+TEXINFO_DIR_CATEGORY: Emacs misc features 4 #+TEXINFO_DIR_DESC: Replace enshittified URLs with nonenshittified front ends. 5 #+TEXINFO_DIR_TITLE: Emacs Detubifier: (emacs-detubifier) 6 #+TEXINFO_HEADER: @set MAINTAINERSITE @uref{https://kaka.farm/,maintainer webpage} 7 #+TEXINFO_HEADER: @set MAINTAINER Yuval Langer 8 #+TEXINFO_HEADER: @set MAINTAINEREMAIL @email{yuvallangerontheroad@gmail.com} 9 #+TEXINFO_HEADER: @set MAINTAINERCONTACT @uref{mailto:yuvallangerontheroad@gmail.com,contact the maintainer} 10 11 Functions that replace URLs of enshittified social media services with nonenshittified free software front ends. 12 13 * Introduction: 14 15 * Usage: 16 17 1. Set up `detubifier-regexp-replacement-pairs` using the customize-variable command. 18 2. Mark that text. 19 3. Kill it. 20 4. Run `detubifier-regexp-replacement-pairs'. 21 5. Yank it in your chat room. 22 23 * Help: 24 25 - https://codeberg.org/kakafarm/emacs-detubifier/ 26 - https://kaka.farm/~git/emacs-detubifier/ (web front end: <https://kaka.farm/~stagit/emacs-detubifier/>) 27 28 * API (alpha!): 29 30 ** Variables: 31 *** detubifier-regexp-replacement-pairs 32 #+index: detubifier-regexp-replacement-pairs 33 *** detubifier-farside-url 34 #+index: detubifier-farside-url 35 *** detubifier-detubifying-method 36 #+index: detubifier-detubifying-method 37 *** detubifier-enshittified-urls 38 #+index: detubifier-enshittified-urls 39 ** Functions 40 41 *** TODO detubifier-browse-url 42 #+findex: detubifier-browse-url 43 44 - [ ] Add real URLs. 45 46 *** TODO detubifier-custom-detubify-region 47 #+findex: detubifier-custom-detubify-region 48 49 - [ ] Add real URLs. 50 51 #+begin_src emacs-lisp 52 (equal (let () 53 (insert "https://youtube.com/moo 54 https://twitter.com/blah") 55 (detubifier-custom-detubify-region (point-min) 56 (point-max)) 57 (buffer-substring-no-properties (point-min) 58 (point-max))) 59 "sdfljdsf sdfkjl https://invidious.jing.rocks/moo 60 https://nitter.poast.org/blah") 61 #+end_src 62 63 *** TODO detubifier-custom-detubify-string 64 #+findex: detubifier-custom-detubify-string 65 66 - [ ] Add real URLs. 67 68 (equal (detubifier-custom-detubify-string "https://youtube.com/moo 69 https://twitter.com/blah") 70 (concat "sdfljdsf sdfkjl https://invidious.jing.rocks/moo 71 https://nitter.poast.org/blah")) 72 73 #+begin_src emacs-lisp 74 (let ((some-twitter-url "https://twitter.com/Nadav_Eyal/status/1809975194926055629")) 75 (detubifier-custom-detubify-string some-twitter-url)) 76 ;; => "https://nitter.poast.org/Nadav_Eyal/status/1809975194926055629" 77 #+end_src 78 79 *** TODO detubifier-detubify-top-kill 80 #+findex: detubifier-detubify-top-kill 81 82 - [ ] Add real URLs. 83 84 *** TODO detubifier-farsidify-region 85 #+findex: detubifier-farsidify-region 86 87 - [ ] Add real URLs. 88 89 *** TODO detubifier-farsidify-string 90 #+findex: detubifier-farsidify-string 91 92 - [ ] Add real URLs. 93 94 #+begin_src emacs-lisp 95 (let ((some-twitter-url "https://twitter.com/Nadav_Eyal/status/1809975194926055629")) 96 (detubifier-custom-detubify-string some-twitter-url)) 97 ;; => "https://nitter.poast.org/Nadav_Eyal/status/1809975194926055629" 98 #+end_src 99 100 ** Legalese: 101 :PROPERTIES: 102 :COPYING: t 103 :END: 104 105 Lorem ipsum blah blah yada yada. 106 107 * Support: 108 109 [[https://buymeacoffee.com/kakafarm][Support me 💰 on "buymeacoffee"]]! 110 111 * Functions Index 112 :PROPERTIES: 113 :INDEX: fn 114 :END: 115