From 1c6b178dc537f1daf88cb5a16f9dd51390dc3a37 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 19 Jan 2014 14:27:24 +0100 Subject: [PATCH] add copyright notices for javascripts based on commit history --- js/ajax.js | 1 + js/auto-reload.js | 1 + js/catalog-link.js | 14 +++++++++++++- js/download-original.js | 1 + js/expand-all-images.js | 1 + js/expand.js | 2 ++ js/forced-anon.js | 1 + js/hide-images.js | 1 + js/inline-expanding.js | 1 + js/local-time.js | 1 + js/post-hover.js | 2 ++ js/quick-post-controls.js | 2 ++ js/quick-reply-old.js | 2 ++ js/quick-reply.js | 1 + js/settings.js | 1 + js/show-backlinks.js | 1 + js/smartphone-spoiler.js | 1 + js/style-select.js | 1 + js/toggle-images.js | 7 ++++--- js/toggle-locked-threads.js | 1 + js/youtube.js | 1 + 21 files changed, 40 insertions(+), 4 deletions(-) diff --git a/js/ajax.js b/js/ajax.js index 6bc7388f..94f033c3 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -4,6 +4,7 @@ * * Released under the MIT license * Copyright (c) 2013 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/auto-reload.js b/js/auto-reload.js index 7acb8f32..34acca90 100644 --- a/js/auto-reload.js +++ b/js/auto-reload.js @@ -7,6 +7,7 @@ * Released under the MIT license * Copyright (c) 2012 Michael Save * Copyright (c) 2013-2014 Marcin Łabanowski + * Copyright (c) 2013 undido * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/catalog-link.js b/js/catalog-link.js index fea57785..899e6859 100644 --- a/js/catalog-link.js +++ b/js/catalog-link.js @@ -1,4 +1,16 @@ -// This script puts a link to the catalog below the board subtitle, and next to the board list. +/* + * catalog-link.js - This script puts a link to the catalog below the board + * subtitle and next to the board list. + * https://github.com/vichan-devel/Tinyboard/blob/master/js/catalog-link.js + * + * Released under the MIT license + * Copyright (c) 2013 copypaste + * Copyright (c) 2013-2014 Marcin Łabanowski + * + * Usage: + * $config['additional_javascript'][] = 'js/jquery.min.js'; + * $config['additional_javascript'][] = 'js/catalog-link.js'; + */ function catalog() { var board = $("input[name='board']"); diff --git a/js/download-original.js b/js/download-original.js index 56f9a4ab..9bd8b406 100644 --- a/js/download-original.js +++ b/js/download-original.js @@ -7,6 +7,7 @@ * * Released under the MIT license * Copyright (c) 2012-2013 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/expand-all-images.js b/js/expand-all-images.js index b3a2d4af..6ef58ca9 100644 --- a/js/expand-all-images.js +++ b/js/expand-all-images.js @@ -6,6 +6,7 @@ * * Released under the MIT license * Copyright (c) 2012-2013 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/expand.js b/js/expand.js index 1d0d944d..c75f0576 100644 --- a/js/expand.js +++ b/js/expand.js @@ -4,6 +4,8 @@ * * Released under the MIT license * Copyright (c) 2012-2013 Michael Save + * Copyright (c) 2013 Czterooki + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/forced-anon.js b/js/forced-anon.js index 74f2dffb..d1d79d87 100644 --- a/js/forced-anon.js +++ b/js/forced-anon.js @@ -4,6 +4,7 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/hide-images.js b/js/hide-images.js index 1e00dc47..21f3241f 100644 --- a/js/hide-images.js +++ b/js/hide-images.js @@ -6,6 +6,7 @@ * * Released under the MIT license * Copyright (c) 2013 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/inline-expanding.js b/js/inline-expanding.js index 2afb61bf..2aa77329 100644 --- a/js/inline-expanding.js +++ b/js/inline-expanding.js @@ -4,6 +4,7 @@ * * Released under the MIT license * Copyright (c) 2012-2013 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * // $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/local-time.js b/js/local-time.js index d581e304..ee22ab04 100644 --- a/js/local-time.js +++ b/js/local-time.js @@ -4,6 +4,7 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * // $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/post-hover.js b/js/post-hover.js index 5bf3375f..0af5b164 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -4,6 +4,8 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski + * Copyright (c) 2013 Macil Tech * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/quick-post-controls.js b/js/quick-post-controls.js index 80c3356a..78f45dd3 100644 --- a/js/quick-post-controls.js +++ b/js/quick-post-controls.js @@ -4,6 +4,8 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save + * Copyright (c) 2013 undido + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/quick-reply-old.js b/js/quick-reply-old.js index bee204b7..662ba62a 100644 --- a/js/quick-reply-old.js +++ b/js/quick-reply-old.js @@ -4,6 +4,8 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski + * Copyright (c) 2013 lancee * * Usage: * $config['quick_reply'] = true; diff --git a/js/quick-reply.js b/js/quick-reply.js index 02769bb4..b2a60099 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -4,6 +4,7 @@ * * Released under the MIT license * Copyright (c) 2013 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/settings.js b/js/settings.js index 0fb80b09..7cd35981 100644 --- a/js/settings.js +++ b/js/settings.js @@ -11,6 +11,7 @@ * * Released under the MIT license * Copyright (c) 2013 Michael Save +* Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/show-backlinks.js b/js/show-backlinks.js index f23cfc38..21e8810f 100644 --- a/js/show-backlinks.js +++ b/js/show-backlinks.js @@ -4,6 +4,7 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/smartphone-spoiler.js b/js/smartphone-spoiler.js index ee904b54..24629a3d 100644 --- a/js/smartphone-spoiler.js +++ b/js/smartphone-spoiler.js @@ -4,6 +4,7 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/mobile-style.js'; diff --git a/js/style-select.js b/js/style-select.js index 6dcb11e4..f0fe3c16 100644 --- a/js/style-select.js +++ b/js/style-select.js @@ -6,6 +6,7 @@ * * Released under the MIT license * Copyright (c) 2013 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/toggle-images.js b/js/toggle-images.js index bd92e366..554aa111 100644 --- a/js/toggle-images.js +++ b/js/toggle-images.js @@ -3,6 +3,7 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; @@ -58,10 +59,10 @@ $(document).ready(function(){ .click(function() { hide_images = !hide_images; if (hide_images) { - $('img.post-image').each(hideImage); + $('img.post-image, .theme-catalog .thread>a>img').each(hideImage); localStorage.hideimages = true; } else { - $('img.post-image').each(restoreImage); + $('img.post-image, .theme-catalog .thread>a>img').each(restoreImage); delete localStorage.hideimages; } @@ -71,7 +72,7 @@ $(document).ready(function(){ }); if (hide_images) { - $('img.post-image, .catalog-theme .thread img').each(hideImage); + $('img.post-image, .theme-catalog .thread>a>img').each(hideImage); show_hide_hide_images_buttons(); } diff --git a/js/toggle-locked-threads.js b/js/toggle-locked-threads.js index 313542e1..0e850f27 100644 --- a/js/toggle-locked-threads.js +++ b/js/toggle-locked-threads.js @@ -3,6 +3,7 @@ * * Released under the MIT license * Copyright (c) 2012 Michael Save + * Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['additional_javascript'][] = 'js/jquery.min.js'; diff --git a/js/youtube.js b/js/youtube.js index de32db44..0db65067 100644 --- a/js/youtube.js +++ b/js/youtube.js @@ -10,6 +10,7 @@ * * Released under the MIT license * Copyright (c) 2013 Michael Save +* Copyright (c) 2013-2014 Marcin Łabanowski * * Usage: * $config['embedding'] = array();