rules.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package rewrite // import "miniflux.app/reader/rewrite"
  5. // List of predefined rewrite rules (alphabetically sorted)
  6. // Available rules: "add_image_title", "add_youtube_video"
  7. // domain => rule name
  8. var predefinedRules = map[string]string{
  9. "abstrusegoose.com": "add_image_title",
  10. "amazingsuperpowers.com": "add_image_title",
  11. "cowbirdsinlove.com": "add_image_title",
  12. "drawingboardcomic.com": "add_image_title",
  13. "exocomics.com": "add_image_title",
  14. "happletea.com": "add_image_title",
  15. "imogenquest.net": "add_image_title",
  16. "lukesurl.com": "add_image_title",
  17. "mercworks.net": "add_image_title",
  18. "mrlovenstein.com": "add_image_title",
  19. "nedroid.com": "add_image_title",
  20. "oglaf.com": "add_image_title",
  21. "optipess.com": "add_image_title",
  22. "peebleslab.com": "add_image_title",
  23. "www.qwantz.com": "add_image_title,add_mailto_subject",
  24. "sentfromthemoon.com": "add_image_title",
  25. "thedoghousediaries.com": "add_image_title",
  26. "treelobsters.com": "add_image_title",
  27. "youtube.com": "add_youtube_video",
  28. "invidio.us": "add_invidious_video",
  29. "xkcd.com": "add_image_title",
  30. "framatube.org": "nl2br,convert_text_link",
  31. "medium.com": "fix_medium_images",
  32. }