Skip to content
This repository was archived by the owner on Jun 5, 2018. It is now read-only.

Commit fbd3caf

Browse files
authored
Update blockhead.user.js
1 parent e3d5b7e commit fbd3caf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

blockhead.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @namespace blockhead
44
// @description Blocks headers and other sticky elements from wasting precious vertical screen estate by pinning them down.
55
// @match *://*/*
6-
// @version 23
6+
// @version 24
77
// @grant GM.getValue
88
// @grant GM.setValue
99
// @grant GM_getValue
@@ -63,7 +63,7 @@ var toggle_rule_saving_handle;
6363

6464
var toggle_statistics_saving_handle;
6565

66-
66+
var stop_scrolling_triggers = true;
6767

6868
//debug switch. if on it prints out information in the java script console.
6969
var debug=GM_SuperValue.get ("debug")==true?GM_SuperValue.get ("debug"):0; //1=yes 2=no 3=intense change value in memory tab
@@ -132,7 +132,7 @@ function counted_element_walker(elm,orig){
132132
count_element_walker++;
133133

134134
//this disables all javascript that is being triggered when scrolling
135-
window.addEventListener("scroll", function (event) {
135+
if(stop_scrolling_triggers) window.addEventListener("scroll", function (event) {
136136
event.stopPropagation();
137137
}, true);
138138
console.log("check number "+count_element_walker+" from: "+orig);

0 commit comments

Comments
 (0)