.js/lobste.rs.js

changeset 679
2c32255d5c84
parent 678
4c569c2420f1
child 680
b89661b25b51
deleted file mode 100644
--- a/.js/lobste.rs.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// If story previews are enabled, set regular spacing and place byline below
-// title.
-if (document.querySelector('div.story_content')) {
-  var sheet = document.createElement('style')
-  sheet.innerHTML = "\
-    ol.list li.story { height: 9em; } \
-    li.story div.byline { color: #777; } \
-    li.story div.byline a { color: #777; } \
-    li.story div.story_content { color: #999; font-size: 95%; max-height: 3em !important; }"
-  document.body.appendChild(sheet)
-
-  var bylines = document.querySelectorAll('div.story_content + div.byline')
-  for (var e of bylines) {
-    e.parentNode.insertBefore(e, e.previousElementSibling)
-  }
-}
-
-// only safe when you've guaranteed a parent matches
-function parentSelector (el, selector) {
-    while ((el = el.parentElement) && !el.matches(selector));
-    return el;
-}
-
-['angersock'].forEach(function (u) {
-  var collapse = document.querySelectorAll('div.comment > div.details > div.byline > a[href="/u/' + u + '"]')
-  for (var el of collapse) {
-    parentSelector(el, 'div.comment').previousElementSibling.click()
-  }
-})

mercurial