Skip to content

Commit

Permalink
Support more HTML5 websites with custom layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sv3k committed Mar 2, 2017
1 parent 3b33304 commit 99adee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ topScroll = {
},

findBiggestDiv: function() {
var items = document.getElementsByTagName('div');
var items = document.querySelectorAll('main,div');
var biggest = { scrollHeight: 0 };
for (var i = 0; i < items.length; i++) {
if (items[i].scrollHeight > biggest.scrollHeight) {
Expand Down

0 comments on commit 99adee2

Please sign in to comment.