Comment Separator Fix

Fixes new SE comment separator to fit the existing style

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

  1. // ==UserScript==
  2. // @name Comment Separator Fix
  3. // @author Cameron Bernhardt (AstroCB)
  4. // @version 1.3
  5. // @namespace http://greasyfork.org/
  6. // @description Fixes new SE comment separator to fit the existing style
  7. // @include http://*.stackexchange.com/*
  8. // @include http://stackoverflow.com/*
  9. // @include http://meta.stackoverflow.com/*
  10. // @include http://serverfault.com/*
  11. // @include http://meta.serverfault.com/*
  12. // @include http://superuser.com/*
  13. // @include http://meta.superuser.com/*
  14. // @include http://askubuntu.com/*
  15. // @include http://meta.askubuntu.com/*
  16. // ==/UserScript==
  17.  
  18. // ==UserScript==
  19. // @name Comment Separator Fix
  20. // @author Cameron Bernhardt (AstroCB)
  21. // @version 1.2.8
  22. // @namespace http://greasyfork.org/
  23. // @description Fixes new SE comment separator to fit the existing style
  24. // @include http://*.stackexchange.com/*
  25. // @include http://stackoverflow.com/*
  26. // @include http://meta.stackoverflow.com/*
  27. // @include http://serverfault.com/*
  28. // @include http://meta.serverfault.com/*
  29. // @include http://superuser.com/*
  30. // @include http://meta.superuser.com/*
  31. // @include http://askubuntu.com/*
  32. // @include http://meta.askubuntu.com/*
  33. // ==/UserScript==
  34.  
  35. var separators = document.getElementsByClassName("js-link-separator");
  36. if (separators) {
  37. for (var i = 0; i < separators.length; i++) {
  38. if (separators[i].className === "js-link-separator dno") {
  39. separators[i].style.visibility = "hidden";
  40. }
  41. separators[i].className = "lsep";
  42. separators[i].innerHTML = "|";
  43. }
  44. }