resize-o-don

resizeable columns in mastodon

当前为 2022-11-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name resize-o-don
  3. // @license DWTFYW
  4. // @namespace http://pureandapplied.com.au/resizodon
  5. // @version 0.1
  6. // @description resizeable columns in mastodon
  7. // @author You
  8. // @match https://*.social/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=aus.social
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. let cols = document.getElementsByClassName("column");
  15. for(let i=0; i< cols.length; i++){
  16. cols[i].style.resize = "horizontal";
  17. cols[i].style.flex = "1 1 auto";
  18. }
  19. let drw = document.getElementsByClassName("drawer");
  20. for(let i=0; i< cols.length; i++){
  21. drw[i].style.resize = "horizontal";
  22. drw[i].style.flex = "1 1 auto";
  23.  
  24. }
  25. })();