Collapsible markdown with <details>
<details>
<summary>Details</summary>
hidden, collapsable content...
</details>Demo:
| // Converted using Bookmarklet Creator with Script Includer - https://mrcoles.com/bookmarklet/ | |
| javascript:(function()%7Bjavascript%3A(function()%20%7Bfunction%20copyToClipboard(text)%20%7Bif%20(window.clipboardData%20%26%26%20window.clipboardData.setData)%20%7B%2F*IE%20specific%20code%20path%20to%20prevent%20textarea%20being%20shown%20while%20dialog%20is%20visible.*%2Freturn%20clipboardData.setData(%22Text%22%2C%20text)%3B%7D%20else%20if%20(document.queryCommandSupported%20%26%26%20document.queryCommandSupported(%22copy%22))%20%7Bvar%20textarea%20%3D%20document.createElement(%22textarea%22)%3Btextarea.textContent%20%3D%20text%3Btextarea.style.position%20%3D%20%22fixed%22%3B%20%20%2F*%20Prevent%20scrolling%20to%20bottom%20of%20page%20in%20MS%20Edge.*%2Fdocument.body.appendChild(textarea)%3Btextarea.select()%3Btry%20%7Breturn%20document.execCommand(%22copy%22)%3B%20%20%2F*%20Security%20exception%20may%20be%20thrown%20by%20some%20browsers.*%2F%7D%20catch%20(ex)%20%7Bconsole.warn(%22Copy%20to%20clipboard%20faile |
| session=lxqt | |
| geometry=1920x1080 | |
| localhost # comment this out to allow connections from anywhere | |
| alwaysshared |
| div#app |
<details><details>
<summary>Details</summary>
hidden, collapsable content...
</details>Demo:
| /** | |
| * Surfingkeys config. | |
| * | |
| * An extension that adds Vim-like bindings to your browser in order to extend | |
| * it using JavaScript and a keyboard. | |
| * | |
| * @link https://git.io/surfingkeys | |
| * @author Artem Medvedev <[email protected]> | |
| * | |
| * Created at : 2019-01-15 |
| // ==UserScript== | |
| // @name 0AutoPagerize Settings | |
| // @namespace http://ss-o.net/ | |
| // @description oAutoPagerize Settings | |
| // @include http* | |
| // ==/UserScript== | |
| (function(){ | |
| if (document) { | |
| //If the settings are loaded after the main script, shoudn't be the case. |
| #!/bin/bash | |
| # Tom Hale, 2016. MIT Licence. | |
| # Print out 256 colours, with each number printed in its corresponding colour | |
| # See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
| set -eu # Fail on errors or undeclared variables | |
| printable_colours=256 |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| makeSearchCommand({ | |
| name: "hulu", | |
| synonyms: ["video"], | |
| url: "http://www.hulu.com/videos/search?query={QUERY}", | |
| icon: "http://www.hulu.com/favicon.ico", | |
| description: "Searches <a href=\"http://www.hulu.com\">Hulu</a> for videos matching your words.", | |
| preview: function( pblock, thing ) { | |
| if (thing.text < 1) {pblock.innerHTML = "Search <b>Hulu</b>"; return;} | |
| jQuery.get(this.url.replace("{QUERY}", thing.text), | |
| function (doc) |