From dbf5114896bef7386ff90c6981dcf88b3f742518 Mon Sep 17 00:00:00 2001 From: anonish Date: Thu, 29 Jan 2015 21:44:11 -0600 Subject: [PATCH 1/5] QR fix for tablet (portrait) mode in laptops Quick reply will now show up on tablets in portrait mode where width can be < 800px as originally coded (mainly 768x1280 and 800x1280) --- js/quick-reply.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/quick-reply.js b/js/quick-reply.js index 9ac1a593..48d7864e 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -115,7 +115,7 @@ #quick-reply td.recaptcha-response {\ padding: 0 0 1px 0;\ }\ - @media screen and (max-width: 800px) {\ + @media screen and (max-width: 600px) {\ #quick-reply {\ display: none !important;\ }\ @@ -369,7 +369,7 @@ $(window).ready(function() { if (settings.get('hide_at_top', true)) { $(window).scroll(function() { - if ($(this).width() <= 800) + if ($(this).width() <= 600) return; if ($(this).scrollTop() < $origPostForm.offset().top + $origPostForm.height() - 100) $postForm.fadeOut(100); @@ -391,7 +391,7 @@ }; $(window).on('cite', function(e, id, with_link) { - if ($(this).width() <= 800) + if ($(this).width() <= 600) return; show_quick_reply(); if (with_link) { @@ -446,7 +446,7 @@ $('.quick-reply-btn').hide(); $(window).scroll(function() { - if ($(this).width() <= 800) + if ($(this).width() <= 600) return; if ($(this).scrollTop() < $('form[name="post"]:first').offset().top + $('form[name="post"]:first').height() - 100) $('.quick-reply-btn').fadeOut(100); From 54a00f9c4d4f153a2c5e13e28e1b1dbf7f8967ee Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 30 Jan 2015 21:09:44 -0800 Subject: [PATCH 2/5] FAQ update --- faq.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/faq.php b/faq.php index bfb7bd22..75448146 100644 --- a/faq.php +++ b/faq.php @@ -58,6 +58,19 @@ $body = <<Can you add some new feature?

Open a Github issue. Better yet, write it yourself and open a pull request. +

What is "sage"?

+

Posters may reply to threads without bumping them to the top of the index by putting "sage" in the email field.

+ +

What is a tripcode?

+

Most posts on 8chan are made anonymously, but this is not the only way to post. The name field can be used four ways to establish identity:

+
    +
  1. By simply writing a name in the box. This is insecure as any other poster can write the same name.
  2. +
  3. By writing a # character and then a password. Putting #example in the name field would become !KtW6XcghiY. This is reasonably secure, but with increasing GPU speeds these tripcodes can be cracked in a few days by a dedicated attacker.
  4. +
  5. By writing two # characters and then a password. Putting ##example in the name field would become !!Dz.MSNRw9M. This is quite secure, but it relies on a secret salt on the server so the code will not work on sites other than 8chan.
  6. +
  7. Board owners and volunteers can enter the special codes "## Board Owner" and "## Board Volunteer" which become capcodes that display after the name. The 8chan administrator can type "## Admin" which becomes 8chan Administrator.
  8. +
+

Please note, many boards on 8chan have an option set called "Forced anonymity" which causes the name field to not work. This is because many users (and therefore board owners) do not like tripcode users.

+

How do I format my text?

  • **spoiler** or [spoiler]spoiler[/spoiler] -> spoiler
  • From f4e0b415acc0daf7cc7bc3361fd33808d6b1c7e4 Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 30 Jan 2015 21:12:03 -0800 Subject: [PATCH 3/5] [aa] tags - ASCII art --- inc/config.php | 24 ++++++++++++++++++++++++ stylesheets/style.css | 8 ++++++++ 2 files changed, 32 insertions(+) diff --git a/inc/config.php b/inc/config.php index 5cee7ce1..812d0558 100644 --- a/inc/config.php +++ b/inc/config.php @@ -633,6 +633,30 @@ * ==================== */ + // JIS ASCII art. This *must* be the first markup or it won't work. + $config['markup'][] = array( + "/\[(aa|code)\](.+?)\[\/(?:aa|code)\]/ms", + function($matches) { + $markupchars = array('_', '\'', '~', '*', '='); + $replacement = $markupchars; + array_walk($replacement, function(&$v) { + $v = "&#".ord($v).";"; + }); + + // These are hacky fixes for ###board-tags### and >quotes. + $markupchars[] = '###'; + $replacement[] = '###'; + $markupchars[] = '>'; + $replacement[] = '>'; + + if ($matches[1] === 'aa') { + return '' . str_replace($markupchars, $replacement, $matches[2]) . ''; + } else { + return str_replace($markupchars, $replacement, $matches[0]); + } + } + ); + // "Wiki" markup syntax ($config['wiki_markup'] in pervious versions): $config['markup'][] = array("/'''(.+?)'''/", "\$1"); $config['markup'][] = array("/''(.+?)''/", "\$1"); diff --git a/stylesheets/style.css b/stylesheets/style.css index bd97e099..bd899756 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -1016,4 +1016,12 @@ span.pln { } div.mix { display: inline-block; +} + +/* Mona Font */ + +.aa { + font-family: Mona, "MS PGothic", "MS Pゴシック", sans-serif; + display: block!important; + font-size: 12pt; } From 546e49f560998affe52ae0a8d9e24543ade6ee9f Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 30 Jan 2015 21:12:20 -0800 Subject: [PATCH 4/5] Add the subject field to forced anonymous by default --- inc/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/config.php b/inc/config.php index 812d0558..956395c9 100644 --- a/inc/config.php +++ b/inc/config.php @@ -549,7 +549,7 @@ // When true, there will be no subject field. $config['field_disable_subject'] = false; // When true, there will be no subject field for replies. - $config['field_disable_reply_subject'] = false; + $config['field_disable_reply_subject'] = &$config['field_disable_name']; // When true, a blank password will be used for files (not usable for deletion). $config['field_disable_password'] = false; From 3a01469dc19d643acbc1bf953c4e185293aa9df9 Mon Sep 17 00:00:00 2001 From: bbielsa Date: Sat, 31 Jan 2015 10:36:02 -0500 Subject: [PATCH 5/5] Fixed add_favorites to append to the correct element Issue #346 https://github.com/ctrlcctrlv/infinity/issues/346#issuecomment-71119100 --- js/favorites.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/favorites.js b/js/favorites.js index acef9c7e..e4d89086 100644 --- a/js/favorites.js +++ b/js/favorites.js @@ -41,15 +41,15 @@ function handle_boards(data) { return $('').append(' [ '+boards.join(" / ")+' ] '); } else { return $(''); - } + } } function add_favorites() { - $('.favorite-boards').remove(); - + $('.favorite-boards').empty(); + var boards = handle_boards(localStorage.favorites); - $('.boardlist').append(boards); + $('.favorite-boards').append(boards); }; if (active_page == 'thread' || active_page == 'index' || active_page == 'catalog') {