Greasy Fork is available in English.
Fix the bug that prevents users from selecting text with Shift and arrow keys on NGA forum
// ==UserScript==
// @name 修复NGA论坛shift+方向键失效的bug
// @namespace 通过微软new bing AI实现,对话见https://sl.bing.net/jevLvKdJjNs
// @version 1.0
// @description Fix the bug that prevents users from selecting text with Shift and arrow keys on NGA forum
// @match *://bbs.nga.cn/*
// @match *://ngabbs.com/*
// @match *://nga.178.com/*
// @grant none
// ==/UserScript==
//获取原来的postfunc.inputchar函数
var originalInputChar = postfunc.inputchar;
//重写postfunc.inputchar函数
postfunc.inputchar = function(e,o) {
//如果用户按下的是Shift或者Ctrl或者Alt键,就不执行后面的操作
if (e.shiftKey || e.ctrlKey || e.altKey) return;
//如果用户按下的是方向键,也不执行后面的操作
if (e.keyCode >= 37 && e.keyCode <= 40) return;
//调用原来的postfunc.inputchar函数
originalInputChar.call(this, e, o);
}