Comment Separator Fix

Changes new SE comment separator to fit the existing style

当前为 2014-07-28 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Comment Separator Fix
  3. // @author Cameron Bernhardt (AstroCB)
  4. // @version 2.0.1
  5. // @namespace http://greasyfork.org/
  6. // @description Changes new SE comment separator to fit the existing style
  7. // @include http://*.stackexchange.com/*
  8. // @include http://*.stackoverflow.com/*
  9. // @include http://*.serverfault.com/*
  10. // @include http://*.superuser.com/*
  11. // @include http://*.askubuntu.com/*
  12. // @include http://*.stackapps.com/*
  13. // ==/UserScript==
  14.  
  15. var separators = document.getElementsByClassName("js-link-separator");
  16. for (var i = 0; i < separators.length; i++) {
  17. if (separators[i].className === "js-link-separator dno") {
  18. separators[i].style.visibility = "hidden";
  19. }
  20. separators[i].className += "lsep";
  21. separators[i].innerHTML = "|";
  22. }