Redmine Username Shorten

Shorten username

  1. // ==UserScript==
  2. // @name Redmine Username Shorten
  3. // @description:en Shorten username
  4. // @version 0.1
  5. // @namespace http://twitter.com/foldrr/
  6. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
  7. // @match http://*/redmine/projects/*/issues*
  8. // @description Shorten username
  9. // ==/UserScript==
  10.  
  11. (function(){
  12. function takeFirstName(i, elem){
  13. $(elem).text($(elem).text().split(" ")[0]);
  14. }
  15. $('.author a').each(takeFirstName);
  16. $('.assigned_to a').each(takeFirstName);
  17. })();

QingJ © 2025

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