Skip to content

Instantly share code, notes, and snippets.

@gunar
Created October 11, 2016 20:50
Show Gist options
  • Save gunar/6a4724674a40768948bd84d88079ed02 to your computer and use it in GitHub Desktop.
Save gunar/6a4724674a40768948bd84d88079ed02 to your computer and use it in GitHub Desktop.
Make osho.com selectable again
// ==UserScript==
// @name OSHO.com selectable
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://www.osho.com/*
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
(function() {
'use strict';
const libover = document.getElementsByClassName('libover')[0];
libover.parentNode.removeChild(libover);
const libtop = document.getElementsByClassName('libtop')[0];
libtop.ondragstart = '';
libtop.onselectstart = '';
addGlobalStyle(`* {
pointer-events: auto !important;
-moz-user-select: text !important;
-webkit-user-select: text !important;
-ms-user-select: text !important;
-o-user-select: text !important;
user-select: text !important;
}`);
console.log("select now");
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment