diff --git a/4chan_x.user.js b/4chan_x.user.js index cfde0aeee..1019fc25c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1233,7 +1233,8 @@ section = $('section', Settings.dialog); section.innerHTML = null; section.className = "section-" + (this.title.toLowerCase().replace(/\s+/g, '-')); - return this.open(section, g); + this.open(section, g); + return section.scrollTop = 0; }, main: function(section) { var ID, arr, checked, description, hiddenNum, key, li, obj, post, thread, ul, _ref, _ref1, _ref2; diff --git a/src/features.coffee b/src/features.coffee index 3ee66cb4c..2d5afccf6 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -223,6 +223,7 @@ Settings = section.innerHTML = null section.className = "section-#{@title.toLowerCase().replace /\s+/g, '-'}" @open section, g + section.scrollTop = 0 main: (section) -> for key, obj of Config.main