Skip to content

Commit 22aa9fe

Browse files
authored
Remove no-longer-fully-functional Markdown-style keyboard shortcut (#2068)
1 parent 724989d commit 22aa9fe

5 files changed

Lines changed: 0 additions & 215 deletions

File tree

‎include/header.inc‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ $css_files = [
1212
if (isset($config['css'])) {
1313
$css_files = array_merge($css_files, (array) $config['css']);
1414
}
15-
if (isset($config["css_overwrite"])) {
16-
$css_files = $config["css_overwrite"];
17-
}
1815

1916
// The fancy footer is the default for classic pages (see footer.inc); load its
2017
// standalone stylesheet everywhere except the release landing pages, which ship

‎include/layout.inc‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,6 @@ META
503503
$curr = $config["current"];
504504
$classes = $config['classes'];
505505

506-
if (isset($_COOKIE["MD"]) || isset($_GET["MD"])) {
507-
$classes .= "markdown-content";
508-
$config["css_overwrite"] = ["/styles/i-love-markdown.css"];
509-
}
510-
511506
// shorturl; http://wiki.snaplog.com/short_url
512507
if (isset($_SERVER['BASE_PAGE']) && $shortname = get_shortname($_SERVER["BASE_PAGE"])) {
513508
$shorturl = "https://www.php.net/" . $shortname;

‎phpstan-baseline.neon‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,6 @@ parameters:
318318
count: 1
319319
path: include/header.inc
320320

321-
-
322-
message: '#^Variable \$CSS might not be defined\.$#'
323-
identifier: variable.undefined
324-
count: 1
325-
path: include/header.inc
326-
327321
-
328322
message: '#^Variable \$MYSITE might not be defined\.$#'
329323
identifier: variable.undefined

‎public/js/common.js‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -311,14 +311,6 @@ Mousetrap.bind("l o g o enter", function (e) {
311311
var time = new Date().getTime();
312312
$(".navbar__brand img").attr("src", "/images/logo.php?refresh&time=" + time);
313313
});
314-
Mousetrap.bind("u n r e a d a b l e enter", function (e) {
315-
document.cookie = 'MD=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT';
316-
location.reload(true);
317-
});
318-
Mousetrap.bind("r e a d a b l e enter", function (e) {
319-
document.cookie = 'MD=1; path=/';
320-
location.reload(true);
321-
});
322314

323315
function fixTimeout() {
324316
Mousetrap.trigger("m i r r o r enter");

‎public/styles/i-love-markdown.css‎

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)