// ==UserScript== // @name List Scripts and Styles // @namespace https://github.com/tily // @description list scripts and styles of page at top-right of window // @include http://* // @include https://* // ==/UserScript== // TODO: use window.jQuery if exists (function() { function addJQuery(callback) { var script = document.createElement("script") script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js") script.setAttribute("class", "userscript") script.addEventListener('load', function() { var script = document.createElement("script") script.setAttribute("class", "userscript") script.textContent = "(" + callback.toString() + ")($)" document.body.appendChild(script) }, false) document.body.appendChild(script) } function main($) { var ul = $("