NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Fanfiction.net, make text selectable again
// @match *://*.fanfiction.net/*
// @match *://*.fictionpress.com/*
// @match *://*.wildhareproject.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @version 3.7.0
// @grant GM_addStyle
// @updateURL https://openuserjs.org/install/Ubereng/Fanfiction.net,_make_text_selectable_again.user.js
// @downloadURL https://openuserjs.org/install/Ubereng/Fanfiction.net,_make_text_selectable_again.user.js
// @license MIT
// ==/UserScript==
$(".nocopy").removeClass ("nocopy");
setInterval (fixInlineStyles, 1999);
function fixInlineStyles () {
$("[style*='user-select']").each ( function () {
var jThis = $(this);
var styleAttr = jThis.attr ("style");
styleAttr = styleAttr.replace (/user-select:\s*none/g, "user-select: text");
jThis.attr ("style", styleAttr);
} );
//unsafeWindow actually still works in these cases!
//unsafeWindow.jQuery(document).unbind ("keydown"); // Now killed by GM changes.
}
GM_addStyle ( `
* {
-moz-user-select: text !important;
user-select: text !important;
-webkit-user-select: text !important;
}
` );