Ellipsis fix [C&C]

It prevents ellipsis for long texts in C&C Tiberium Alliances

当前为 2015-04-04 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Ellipsis fix [C&C]
  3. // @description It prevents ellipsis for long texts in C&C Tiberium Alliances
  4. // @namespace https://prodgame*.alliances.commandandconquer.com/*/index.aspx*
  5. // @include https://prodgame*.alliances.commandandconquer.com/*/index.aspx*
  6. // @version 1.0.0
  7. // @grant none
  8. // @author mehdi
  9. // ==/UserScript==
  10.  
  11. (function(){
  12. var ellipsisFix = function() {
  13. for (i = 0; i < document.getElementsByTagName("div").length; i++) {
  14. document.getElementsByTagName("div")[i].style["text-overflow"] = "";
  15. }
  16. }
  17. document.getElementsByTagName("html")[0].addEventListener("click", ellipsisFix);
  18. })();