Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
josencarnacao authored May 25, 2024
1 parent 8cc00b4 commit dbcfc8c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Query Microsoft Copilot-0.1.user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// ==UserScript==
// @name Query Microsoft Copilot
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Open a new tab to query Microsoft Copilot when 'Control + *' is pressed
// @author Microsoft CoPilot
// @match *://*/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Function to handle keydown events
function handleKeydown(event) {
// Check if the pressed key is '*' and if the Control key is held down
if (event.key === '*' && event.ctrlKey) {
// Open a new tab to query Microsoft Copilot
window.open('https://copilot.microsoft.com/query', '_blank');
}
}

// Add the event listener to the document
document.addEventListener('keydown', handleKeydown, true);
})();

0 comments on commit dbcfc8c

Please sign in to comment.