您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
11/15/2021, 5:51:25 PM
// ==UserScript== // @name Fixowa // @namespace Violentmonkey Scripts // @match https://owa.tetracore.com/owa/* // @grant none // @version 1.0 // @author mrculler // @description 11/15/2021, 5:51:25 PM // @license Public domain // ==/UserScript== // Got the actual JS fix from: // https://bugs.chromium.org/p/chromium/issues/detail?id=410989#c32 // Then copied out the minified code he references and made the change. Here we patch the object // Don't know why it still works after throwing the exception but it does SelectionRange.prototype.select = function SelectionRange$select() { if (this.w3c) { var a = this.document.defaultView.getSelection(); if (a.removeAllRanges) { a.removeAllRanges(); a.addRange(this.range) } else a.setBaseAndExtent(this.range.startContainer, this.range.startOffset, this.range.endContainer, this.range.endOffset); return this.range } else return this.range.select() }; console.log("patched OWA");