fix github

widens the page when viewing code

  1. // ==UserScript==
  2. // @name fix github
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description widens the page when viewing code
  6. // @author justrunmyscripts
  7. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js
  8. // @match https://github.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function($) {
  13. 'use strict';
  14.  
  15. console.log('the script "fix github" is running! (don\'t forget to refresh the page! after ajax)');
  16.  
  17. var theelement = $('.container.new-discussion-timeline.experiment-repo-nav');
  18. theelement.css('width','95%');
  19. theelement.css('margin','10px');
  20. theelement.css('display','block');
  21. theelement.css('flex', '1');
  22. $(theelement.parent()).css('display','flex');
  23. $(theelement.parent()).css('justify-content','center');
  24. $(theelement.parent()).css('align-items','center');
  25. $(theelement.parent()).css('flex-flow','nowrap column');
  26.  
  27. }).bind(this)(jQuery);

QingJ © 2025

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