Skip to content

Instantly share code, notes, and snippets.

@lgoldstien
Created July 4, 2013 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgoldstien/5928021 to your computer and use it in GitHub Desktop.
Save lgoldstien/5928021 to your computer and use it in GitHub Desktop.
phpKB - Copy text from articles
// ==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