urich tables fix for notion rtl

fixing notion table RTL

  1. // ==UserScript==
  2. // @name urich tables fix for notion rtl
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-10-06
  5. // @description fixing notion table RTL
  6. // @author You
  7. // @match https://www.notion.so/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=notion.so
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var UC_addStyle =
  16. function(css) {
  17. var style = document.getElementById("GM_addStyleBy8626") || (function() {
  18. var style = document.createElement('style');
  19. style.type = 'text/css';
  20. style.id = "GM_addStyleBy8626";
  21. document.head.appendChild(style);
  22. return style;
  23. })();
  24. var sheet = style.sheet;
  25. sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length);
  26. };
  27.  
  28. UC_addStyle(".notion-table-view-row { text-align: start !important; direction: rtl }");
  29. UC_addStyle(".notion-table-view-row * { text-align: start !important; direction: rtl }");
  30. UC_addStyle(".notion-list-view *[dir=ltr] { text-align: start !important; direction: rtl }");
  31. UC_addStyle(".notion-table-view-header-row *[dir=ltr] { text-align: start !important; direction: rtl }");
  32. UC_addStyle(".notion-table-view-header-row { text-align: start !important; direction: rtl }");
  33. // Your code here...
  34. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址