Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated placement of Ignore Topics section on search results screens …

…so it only as wide as the existing topic listing
  • Loading branch information...
commit b3cebb7f39a4c049081ce29c6c5702d3b14e0d1f 1 parent d364b6c
@insin authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 rllmuktopicignorelist.user.js
View
12 rllmuktopicignorelist.user.js
@@ -258,16 +258,18 @@ var TIL =
var ignoredSection = document.createElement("div");
ignoredSection.innerHTML = toggleableSectionHTML;
- var footer = document.getElementById("forum_footer")
- if (footer)
+ ignoredSection.style.marginTop = '10px';
+
+ if (this.pageType == 'search')
{
- ignoredSection.style.marginTop = '10px';
+ ignoredSection.style.clear = "both";
+ document.querySelector("div.ipsLayout_content").appendChild(ignoredSection);
}
else
{
- footer = document.querySelector(".breadcrumb.bottom");
+ var footer = document.getElementById("forum_footer")
+ footer.parentNode.insertBefore(ignoredSection, footer);
}
- footer.parentNode.insertBefore(ignoredSection, footer);
var control = document.getElementById("toggle_ignored_topics");
control.addEventListener("click", function(e)
Please sign in to comment.
Something went wrong with that request. Please try again.