t_config.0.sx 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. (
  2. (title string)
  3. (uid string)
  4. (pwd_bcrypt string)
  5. (cookie_secret string)
  6. (timezone Europe/Paris)
  7. (links_per_page 100)
  8. (ban_after 4)
  9. (ban_seconds 14400)
  10. (url_cleaner (
  11. ((regexp "[\\?&]utm_source=.*$")
  12. (replace_all_string ""))
  13. ((regexp "^(?i)(?:https?://)?(?:(?:www|m)\\.)?heise\\.de/.*?(-\\d+)(?:\\.html)?(?:[\\?#].*)?$")
  14. (replace_all_string https://heise.de/${1}))
  15. ((regexp "^(?i)(?:https?://)?(?:(?:www|m)\\.)?spiegel\\.de/.*?-(\\d+)(?:\\.html.*)?$")
  16. (replace_all_string https://spiegel.de/article.do?id=${1}))
  17. ((regexp "^(?i)(?:https?://)?(?:(?:www|m)\\.)?sueddeutsche\\.de/.*?-(\\d+\\.\\d+)(?:\\.html.*)?$")
  18. (replace_all_string https://sz.de/${1}))
  19. ((regexp "^(?i)(?:https?://)?(?:(?:www|m)\\.)?youtube.com/watch\\?v=([^&]+)(?:.*&(t=[^&]+))?(?:.*)$")
  20. (replace_all_string https://youtu.be/${1}?${2}))
  21. ))
  22. (posse (
  23. (Pinboard
  24. ((endpoint
  25. "https://api.pinboard.in/v1?auth_token= <- get from https://pinboard.in/settings/password")
  26. (prefix ""))
  27. )
  28. (Mastodon
  29. ((endpoint https://social.tchncs.de/api/v1/)
  30. (token "<- get access Token (only write:statuses) via new app at https://social.tchncs.de/settings/applications")
  31. (prefix ""))
  32. )
  33. ))
  34. )