-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixesForBing.js
30 lines (28 loc) · 934 Bytes
/
fixesForBing.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// ==UserScript==
// @name Fixes for Bing
// @namespace http://tampermonkey.net/
// @version 0.13.2
// @description Stop doing weird things, Bing! ;)
// @author Geekness
// @author Wayne Dupree
// @match http*://*.bing.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bing.com
// @grant none
// @license MIT
// @require https://code.jquery.com/jquery-3.6.0.min.js
// ==/UserScript==
/* global $, jQuery */
(function() {
this.$ = this.jQuery = jQuery.noConflict(true);
AwayTimeThreshold = 2_592_000; //Stop the scoll to top on focus
})();
//Stop opening news items in a new tab
window.addEventListener('load', function() {
$('.tobitem_info').each(function() {
var $this = $(this);
$this.on('click', function(){
event.preventDefault();
window.open($this.attr('href'),"_self")
});
});
}, false);