// ==UserScript== // @name PTH Request notes // @version 0.2 // @description Store notes on requests at PTH // @author Chameleon // @include http*://*redacted.ch/requests.php* // @include http*://*passthepopcorn.me/requests.php* // @grant none // @namespace https://greasyfork.org/users/87476 // @downloadURL none // ==/UserScript== (function() { 'use strict'; var before=document.getElementById('request_comments'); if(!before) before=document.getElementById('comments'); if(!before) return; var requestId=parseInt(window.location.href.split('id=')[1]); var comment=getComment(requestId); var div=document.createElement('div'); before.parentNode.insertBefore(div, before); div.setAttribute('class', 'box box2'); div.innerHTML='