Created
July 4, 2013 13:59
-
-
Save lgoldstien/5928021 to your computer and use it in GitHub Desktop.
phpKB - Copy text from articles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name KBMS Script | |
// @description Copy text from articles!!! | |
// @author Lawrence Goldstien ( lgoldstien@onmylemon.co.uk ) | |
// @icon http://csctools.internal.something.net/~lgoldstien/grease/img/kbms.png | |
// @namespace http://www.something.com | |
// @include http://kbms/* | |
// @include http://csctools.internal.something.net/~lgoldstien/beta/grease/tests/* | |
// @updateURL http://csctools.internal.something.net/~lgoldstien/grease/scripts/kbms.user.js | |
// @downloadURL http://csctools.internal.something.net/~lgoldstien/grease/scripts/kbms.user.js | |
// @version 0.1 | |
// @grant none | |
// ==/UserScript== | |
// Create the script to remove the nodrag from chrome | |
var script = document.createElement('script'); | |
script.type='text/javascript'; | |
script.innerHTML = "document.getElementById('nodrag').onselectstart = function() { };"; | |
var body = document.getElementsByTagName('body')[0]; | |
body.appendChild(script); | |
// Firefox / Other browsers fix | |
$('#nodrag').css('-moz-user-select', 'text'); | |
$('#nodrag').css('-khtml-user-select', 'text'); | |
$('#nodrag').css('user-select', 'text'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment