The version of vichan running on lainchan.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.9KB

  1. /*
  2. * settings.js
  3. * https://github.com/savetheinternet/Tinyboard/blob/master/js/settings.js
  4. *
  5. * Optional settings. Used to customize some scripts without needing to tweak their code.
  6. * Notes:
  7. * - You must include this script first.
  8. * - This file is just an example.
  9. * - You should copy settings.js to something like instance.settings.js to prevent conflicts when upgrading.
  10. * - This file should always be optional.
  11. *
  12. * Released under the MIT license
  13. * Copyright (c) 2013 Michael Save <savetheinternet@tinyboard.org>
  14. * Copyright (c) 2013-2014 Marcin Łabanowski <marcin@6irc.net>
  15. *
  16. * Usage:
  17. * $config['additional_javascript'][] = 'js/jquery.min.js';
  18. * $config['additional_javascript'][] = 'js/instance.settings.js';
  19. * // $config['additional_javascript'][] = 'js/quick-reply.js';
  20. *
  21. * Usage in scripts:
  22. * var settings = new script_settings('my-script');
  23. * var some_value = settings.get('option', 'default value');
  24. *
  25. */
  26. var tb_settings = {};
  27. // quick-reply.js
  28. tb_settings['quick-reply'] = {
  29. // Hide form when scrolled to top of page (where original form is visible)
  30. hide_at_top: true,
  31. // "Quick reply" button floating at the top right hand corner of the page at all times
  32. floating_link: false,
  33. // Show remote in quick reply
  34. show_remote: false,
  35. // Show embedding in quick reply
  36. show_embed: false
  37. };
  38. // ajax.js
  39. tb_settings['ajax'] = {
  40. // Always act as if "noko" was typed when posting replies with the ajax script
  41. always_noko_replies: false
  42. };
  43. // wpaint.js
  44. tb_settings['wpaint'] = {
  45. // Canvas width
  46. width: 500,
  47. // Canvas height
  48. height: 250
  49. };
  50. // auto-reload.js
  51. tb_settings['auto-reload'] = {
  52. // Minimum delay before reloading the page when at the bottom
  53. min_delay_bottom: 5000,
  54. // Maximum delay before reloading the page
  55. max_delay: 600000,
  56. // Delay if there was an error
  57. error_delay: 30000,
  58. // Reset the delay to the minimum upon focussing the window.
  59. reset_focus: true
  60. };