Skip to content

Instantly share code, notes, and snippets.

@yasithdev
Created September 21, 2023 13:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasithdev/cf99793e6b83cca73497566484548ced to your computer and use it in GitHub Desktop.
Save yasithdev/cf99793e6b83cca73497566484548ced to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Disable Bing Search Engine Scroll
// @namespace your-namespace
// @description Disables scrolling on the Bing search engine page to prevent accidental scrolling into the Bing chat feature.
// @match https://www.bing.com/*
// @version 1
// @grant none
// ==/UserScript==
window.addEventListener("wheel", e=> {
if(e.target.className.includes("cib-serp-main")) e.stopPropagation();
});
window.addEventListener("touchmove", e => {
e.stopImmediatePropagation();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment