uBlockOrigin-noMoreGiphy.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ! Title: uBO-noMoreGiphy
  2. ! Version: 2.20.7.1
  3. ! Expires: 7 days
  4. ! Last Modified: 2020-07-01T23:44:53+00:00
  5. ! Checksum (SHA256): e636643fdc1c8d1cb1b6b55ceb0d609e6b44ffc77b562fbcdebcf2276fdc752d
  6. ! Description: noMoreGiphy is designed for AdGuard & uBlock Origin to block the resources needed by Giphy to function.
  7. ! License: CC0
  8. ! Maintainer: intr0
  9. ! Contact: support@intr0.com
  10. !
  11. ! uBO Firefox Ruleset
  12. !
  13. !#if env_firefox
  14. !
  15. ! CSP rules:
  16. !
  17. ! default, script, style, img, media, connect, font rules are necessary to override policy set by Giphy.
  18. ! object possibly necessary if any <embed> (whether non-compliant or compliant with HTML5's living-standard) are in use; <object> (depreciated); or <applet> (depreciated) tags are in use.
  19. ! worker-src: - inhibit, e.g. EventListeners;
  20. ! frame-src: inhibit Frame (depreciated) & iFrame.
  21. ! sandbox (with no permissions given): turns Giphy.com into a restricted environment unable to perform several actions including: controlling specific user-resources such as the Storage Access API - Web Storage, IndexedDB & DOM Cache.
  22. !
  23. *$csp=connect-src 'none',domain=giphy.com
  24. *$csp=default-src 'none',important,domain=giphy.com
  25. *$csp=font-src 'none',important,domain=giphy.com
  26. *$csp=frame-src 'none',important,domain=giphy.com
  27. *$csp=img-src 'none',domain=giphy.com
  28. *$csp=media-src 'none',important,domain=giphy.com
  29. *$csp=object-src 'none',important,domain=giphy.com
  30. *$csp=sandbox,important,domain=giphy.com
  31. *$csp=script-src 'none',domain=giphy.com
  32. *$csp=style-src 'none',important,domain=giphy.com
  33. *$csp=worker-src 'none',important,domain=giphy.com
  34. !
  35. ! Block scripts served from fbcdn:
  36. !
  37. ||fbcdn.$script,important,domain=giphy.com
  38. !
  39. ! "resource" sanitation/disinfection (scripts, images & network requests):
  40. !
  41. ||giphy.$image,redirect=1x1.gif,important
  42. ||giphy.$script,redirect=noop.js,important
  43. ||giphy.$xhr,redirect=noop.txt,important
  44. !
  45. ! Disinfect Google Tracking:
  46. !
  47. ||google-analytics.$script,redirect=google-analytics_inpage_linkid.js,domain=giphy.com,important
  48. ||googletagmanager.$script,redirect=googletagmanager_gtm.js,domain=giphy.com,important
  49. !
  50. ! Disinfect Amazon Images:
  51. !
  52. ||cloudfront.$image,redirect=2x2.png,important,domain=giphy.com
  53. !
  54. ! Disinfect {localStorage}:
  55. !
  56. ||giphy.com/{localStorage}*$redirect=cookie-remover.js,important
  57. !
  58. !#endif