Skip to content

Commit

Permalink
FIX: Ugly hr (same fix as #296 in #244 branch’s 9f77c52)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesus2099 committed May 31, 2017
1 parent 25606c6 commit efab911
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mb_PENDING-EDITS.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name mb. PENDING EDITS
// @version 2016.8.10.1154
// @version 2017.5.31
// @changelog https://github.com/jesus2099/konami-command/commits/master/mb_PENDING-EDITS.user.js
// @description musicbrainz.org: Adds/fixes links to entity (pending) edits (if any); optionally adds links to associated artist(s) (pending) edits
// @homepage http://userscripts-mirror.org/scripts/show/42102
Expand Down Expand Up @@ -111,7 +111,7 @@ if (
checked.push(art.base);
art.editinghistory = createLink(pageEntity, "edits", art);
art.openedits = createLink(pageEntity, "open_edits", art);
addAfter(document.createElement("hr"), pageEntity.li);
getParent(art.openedits, "li").classList.add("separator");
checkOpenEdits(art);
}
}
Expand All @@ -126,7 +126,7 @@ function createLink(entity, historyType, associatedArtist) {
if (associatedArtist) {
addAfter(newLink, entity.li);
} else if (!associatedArtist && historyType == "edits") {
entity.ul.appendChild(document.createElement("hr"));
newLink.classList.add("separator");
entity.ul.appendChild(newLink);
} else {
entity.ul.insertBefore(newLink, entity.li);
Expand Down

0 comments on commit efab911

Please sign in to comment.