Skip to content

Instantly share code, notes, and snippets.

@bernikr
Created November 19, 2017 16:51
Show Gist options
  • Save bernikr/e1590708d113648cf3cdbd0416281b01 to your computer and use it in GitHub Desktop.
Save bernikr/e1590708d113648cf3cdbd0416281b01 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Aurora Lock Reviews
// @version 0.1
// @description Verhindert das versehentliche Verschieben von Text-Teilen in fertigen reviews
// @author bernikr
// @match https://aurora.iguw.tuwien.ac.at/*
// ==/UserScript==
(function() {
'use strict';
// Your code here...
var styling = { "background-color": "white"
, "border": "1px solid lightgray"
, "border-radius": "3px"
, "margin": 0
, "padding": "0.4em 0.6em"
, "outline": "none"
};
var content = $(".submitted-content > trix-editor").html();
$(".submitted-content > trix-editor").replaceWith($('<div>' + content + '</div>').addClass('trix-content').css(styling));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment