Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myVar = setInterval(func, 500);
- function func() {
- var treeWalker = document.createTreeWalker(document, NodeFilter.SHOW_TEXT, null, false),
- users = ["home", "boards",
- "board aleatória",
- "criar board",
- "moderar",
- "reportar bug",
- "opções",
- "catalog",
- "modo de postagem: resposta ",
- "voltar",
- "ir ao rodapé",
- "assunto",
- "responder",
- "o corpo do texto é pequeno demais ou inexistente.",
- "mensagem",
- "arquivo",
- "selecione, arraste ou cole arquivos aqui",
- "campo obrigatório",
- "exibir opções e limites",
- "ocultar opções e limites",
- "oekaki",
- "mostrar oekaki",
- "fechar oekaki",
- "clique em qualquer imagem neste site para carregá-lo no oekaki",
- "embutir",
- "substitui",
- "não bumpar",
- "você também pode escrever sage no e-mail",
- "imagem spoiler",
- "isso substitui a miniatura da sua imagem por uma interrogação",
- "senha",
- "para remover arquivos e mensagens",
- "formatos permitidos",
- "tamanho máximo",
- "dimensões máximas",
- "você pode enviar",
- "resposta rápida",
- "comentário",
- "expandir todas as imagens",
- "encolher todas as imagens",
- "últimas",
- "mensagens",
- "acompanhar thread",
- "muito longa. clique",
- "aqui",
- "para ver o texto completo.",
- "respostas com imagem omitidas.",
- "clique para expandir",
- "ocultar respostas expandidas",
- "omitidas",
- "esconder post",
- "unhide post",
- "adicionar filtro",
- "denunciar",
- "denúncia",
- "enter reason below",
- "deletar post",
- "deletar arquivo",
- "ir para o topo",
- "catálogo",
- "atualizar",
- "ir aos novos posts",
- "automático",
- "atualizando",
- "página",
- "todas",
- "anterior",
- "próxima",
- "seg",
- "ter",
- "qua",
- "qui",
- "sex",
- "sab",
- "dom",
- "anônimo",
- "você"
- ],
- reg = new RegExp(users.join("|"), "ig");
- while (treeWalker.nextNode()) {
- var el = treeWalker.currentNode;
- el.data = el.data.replace(reg, function(a) {
- return {
- "home" : "Главная",
- "boards" : "Доски",
- "board aleatória" : "На случайную доску",
- "criar board" : "Создать доску",
- "moderar" : "Админка",
- "reportar bug" : "Сообщить об ошибке",
- "opções" : "Опции",
- "catalog" : "Каталог",
- "modo de postagem: resposta " : "Ответить в тред ",
- "voltar" : "Назад",
- "ir ao rodapé" : "Вниз",
- "assunto" : "Имя",
- "responder" : "Ответить в тред",
- "o corpo do texto é pequeno demais ou inexistente." : "Текст слишком мал или отсутствует",
- "mensagem" : "Текст",
- "arquivo" : "Файл",
- "selecione, arraste ou cole arquivos aqui" : "Кликни / брось файл сюда.",
- "campo obrigatório" : "обязательное поле",
- "exibir opções e limites" : "Параметры и лимиты",
- "ocultar opções e limites" : "Свернуть параметры и лимиты",
- "oekaki" : "Оэкаки",
- "mostrar oekaki" : "Развернуть",
- "fechar oekaki" : "Свернуть",
- "clique em qualquer imagem neste site para carregá-lo no oekaki" : "Нажмите на любое изображение на этом сайте, чтобы загрузить его в оэкаки",
- "embutir" : "Ватермарка",
- "substitui" : "Заменить",
- "não bumpar" : "Sage",
- "você também pode escrever sage no e-mail" : "вы также можете подписаться на электронную почту",
- "imagem spoiler" : "Mark your image as a spoiler",
- "isso substitui a miniatura da sua imagem por uma interrogação" : "это заменяет эскиз вашего изображения знаком вопроса",
- "senha" : "Пароль",
- "para remover arquivos e mensagens" : "служит для удаления ваших постов",
- "formatos permitidos" : "Поддерживаемые форматы",
- "tamanho máximo" : "Максимальный объем",
- "dimensões máximas" : "Максимальный размер изображения",
- "você pode enviar" : "Число вложений в 1 посте:",
- "resposta rápida" : "Быстрый ответ",
- "comentário" : "Комментарий",
- "expandir todas as imagens" : "Развернуть все изображения",
- "encolher todas as imagens" : "Свернуть все изображения",
- "últimas" : "Последние",
- "mensagens" : "сообщений",
- "acompanhar thread" : "Следить",
- "muito longa. clique" : "слишком длинный. Нажмите",
- "aqui" : "здесь",
- "para ver o texto completo." : "чтобы увидеть весь текст.",
- "respostas com imagem omitidas." : "постов с изображениями.",
- "clique para expandir" : "Раскрыть",
- "ocultar respostas expandidas" : "Свернуть",
- "omitidas" : "скрыто",
- "esconder post" : "Скрыть пост",
- "unhide post" : "Развернуть пост",
- "adicionar filtro" : "Скрытие",
- "denunciar" : "Пожаловаться",
- "denúncia" : "Пожаловаться на ЦП",
- "enter reason below" : "Изложите причину",
- "deletar post" : "Удалить пост",
- "deletar arquivo" : "Удалить вложение",
- "ir para o topo" : "Вверх",
- "catálogo" : "Каталог",
- "atualizar" : "Обновить",
- "ir aos novos posts" : "Переходить к новым постам",
- "automático" : "Автообновление",
- "atualizando" : "Обновляю",
- "página" : "Страница",
- "todas" : "Все",
- "anterior" : "Назад",
- "próxima" : "Вперед",
- "seg" : "Пн",
- "ter" : "Вт",
- "qua" : "Ср",
- "qui" : "Чт",
- "sex" : "Пт",
- "sab" : "Сб",
- "dom" : "Вс",
- "anônimo" : "Аноним",
- "você" : "Ваш пост",
- }[a.toLowerCase()] || a
- })
- }};
- /*
- * local-time.js
- * https://github.com/savetheinternet/Tinyboard/blob/master/js/local-time.js
- *
- * Released under the MIT license
- * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org>
- * Copyright (c) 2013-2014 Marcin Łabanowski <marcin@6irc.net>
- *
- * Usage:
- * // $config['additional_javascript'][] = 'js/jquery.min.js';
- * // $config['additional_javascript'][] = 'js/strftime.min.js';
- * $config['additional_javascript'][] = 'js/local-time.js';
- *
- */
- $(document).ready(function(){
- 'use strict';
- var iso8601 = function(s) {
- s = s.replace(/\.\d\d\d+/,""); // remove milliseconds
- s = s.replace(/-/,"/").replace(/-/,"/");
- s = s.replace(/T/," ").replace(/Z/," UTC-2");
- s = s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"); // -04:00 -> -0400
- return new Date(s);
- };
- var zeropad = function(num, count) {
- return [Math.pow(10, count - num.toString().length), num].join('').substr(1);
- };
- var dateformat = (typeof strftime === 'undefined') ? function(t) {
- return zeropad(t.getMonth() + 1, 2) + "/" + zeropad(t.getDate(), 2) + "/" + t.getFullYear().toString().substring(2) +
- " (" + [_("Sun"), _("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat"), _("Sun")][t.getDay()] + ") " +
- // time
- zeropad(t.getHours(), 2) + ":" + zeropad(t.getMinutes(), 2) + ":" + zeropad(t.getSeconds(), 2);
- } : function(t) {
- // post_date is defined in templates/main.js
- return strftime(window.post_date, t, datelocale);
- };
- function timeDifference(current, previous) {
- var msPerMinute = 60 * 1000;
- var msPerHour = msPerMinute * 60;
- var msPerDay = msPerHour * 24;
- var msPerMonth = msPerDay * 30;
- var msPerYear = msPerDay * 365;
- var elapsed = current - previous;
- if (elapsed < msPerMinute) {
- return 'Just now';
- } else if (elapsed < msPerHour) {
- return Math.round(elapsed/msPerMinute) + (Math.round(elapsed/msPerMinute)<=1 ? ' minute ago':' minutes ago');
- } else if (elapsed < msPerDay ) {
- return Math.round(elapsed/msPerHour ) + (Math.round(elapsed/msPerHour)<=1 ? ' hour ago':' hours ago');
- } else if (elapsed < msPerMonth) {
- return Math.round(elapsed/msPerDay) + (Math.round(elapsed/msPerDay)<=1 ? ' day ago':' days ago');
- } else if (elapsed < msPerYear) {
- return Math.round(elapsed/msPerMonth) + (Math.round(elapsed/msPerMonth)<=1 ? ' month ago':' months ago');
- } else {
- return Math.round(elapsed/msPerYear ) + (Math.round(elapsed/msPerYear)<=1 ? ' year ago':' years ago');
- }
- }
- var do_localtime = function(elem) {
- var times = elem.getElementsByTagName('time');
- var currentTime = Date.now();
- for(var i = 0; i < times.length; i++) {
- var t = times[i].getAttribute('datetime');
- var postTime = new Date(t);
- times[i].setAttribute('data-local', 'true');
- if (!localStorage.show_relative_time || localStorage.show_relative_time === 'false') {
- times[i].innerHTML = dateformat(iso8601(t));
- times[i].setAttribute('title', timeDifference(currentTime, postTime.getTime()));
- } else {
- times[i].innerHTML = timeDifference(currentTime, postTime.getTime());
- times[i].setAttribute('title', dateformat(iso8601(t)));
- }
- }
- };
- if (window.Options && Options.get_tab('general') && window.jQuery) {
- var interval_id;
- Options.extend_tab('general', '<label id="show-relative-time"><input type="checkbox">' + _('Show relative time') + '</label>');
- $('#show-relative-time>input').on('change', function() {
- if (localStorage.show_relative_time === 'true') {
- localStorage.show_relative_time = 'false';
- clearInterval(interval_id);
- } else {
- localStorage.show_relative_time = 'true';
- interval_id = setInterval(do_localtime, 30000, document);
- }
- // no need to refresh page
- do_localtime(document);
- });
- if (localStorage.show_relative_time === 'true') {
- $('#show-relative-time>input').attr('checked','checked');
- interval_id = setInterval(do_localtime, 30000, document);
- }
- // allow to work with auto-reload.js, etc.
- $(document).on('new_post', function(e, post) {
- do_localtime(post);
- });
- }
- do_localtime(document);
- });
- RAW Paste Data
- var myVar = setInterval(func, 500);
- function func() {
- var treeWalker = document.createTreeWalker(document, NodeFilter.SHOW_TEXT, null, false),
- users = ["home", "boards",
- "board aleatória",
- "criar board",
- "moderar",
- "reportar bug",
- "opções",
- "catalog",
- "modo de postagem: resposta ",
- "voltar",
- "ir ao rodapé",
- "assunto",
- "responder",
- "o corpo do texto é pequeno demais ou inexistente.",
- "mensagem",
- "arquivo",
- "selecione, arraste ou cole arquivos aqui",
- "campo obrigatório",
- "exibir opções e limites",
- "ocultar opções e limites",
- "oekaki",
- "mostrar oekaki",
- "fechar oekaki",
- "clique em qualquer imagem neste site para carregá-lo no oekaki",
- "embutir",
- "substitui",
- "não bumpar",
- "você também pode escrever sage no e-mail",
- "imagem spoiler",
- "isso substitui a miniatura da sua imagem por uma interrogação",
- "senha",
- "para remover arquivos e mensagens",
- "formatos permitidos",
- "tamanho máximo",
- "dimensões máximas",
- "você pode enviar",
- "resposta rápida",
- "comentário",
- "expandir todas as imagens",
- "encolher todas as imagens",
- "últimas",
- "mensagens",
- "acompanhar thread",
- "muito longa. clique",
- "aqui",
- "para ver o texto completo.",
- "respostas com imagem omitidas.",
- "clique para expandir",
- "ocultar respostas expandidas",
- "omitidas",
- "esconder post",
- "unhide post",
- "adicionar filtro",
- "denunciar",
- "denúncia",
- "enter reason below",
- "deletar post",
- "deletar arquivo",
- "ir para o topo",
- "catálogo",
- "atualizar",
- "ir aos novos posts",
- "automático",
- "atualizando",
- "página",
- "todas",
- "anterior",
- "próxima",
- "seg",
- "ter",
- "qua",
- "qui",
- "sex",
- "sab",
- "dom",
- "anônimo",
- "você"
- ],
- reg = new RegExp(users.join("|"), "ig");
- while (treeWalker.nextNode()) {
- var el = treeWalker.currentNode;
- el.data = el.data.replace(reg, function(a) {
- return {
- "home" : "Главная",
- "boards" : "Доски",
- "board aleatória" : "На случайную доску",
- "criar board" : "Создать доску",
- "moderar" : "Админка",
- "reportar bug" : "Сообщить об ошибке",
- "opções" : "Опции",
- "catalog" : "Каталог",
- "modo de postagem: resposta " : "Ответить в тред ",
- "voltar" : "Назад",
- "ir ao rodapé" : "Вниз",
- "assunto" : "Имя",
- "responder" : "Ответить в тред",
- "o corpo do texto é pequeno demais ou inexistente." : "Текст слишком мал или отсутствует",
- "mensagem" : "Текст",
- "arquivo" : "Файл",
- "selecione, arraste ou cole arquivos aqui" : "Кликни / брось файл сюда.",
- "campo obrigatório" : "обязательное поле",
- "exibir opções e limites" : "Параметры и лимиты",
- "ocultar opções e limites" : "Свернуть параметры и лимиты",
- "oekaki" : "Оэкаки",
- "mostrar oekaki" : "Развернуть",
- "fechar oekaki" : "Свернуть",
- "clique em qualquer imagem neste site para carregá-lo no oekaki" : "Нажмите на любое изображение на этом сайте, чтобы загрузить его в оэкаки",
- "embutir" : "Ватермарка",
- "substitui" : "Заменить",
- "não bumpar" : "Sage",
- "você também pode escrever sage no e-mail" : "вы также можете подписаться на электронную почту",
- "imagem spoiler" : "Mark your image as a spoiler",
- "isso substitui a miniatura da sua imagem por uma interrogação" : "это заменяет эскиз вашего изображения знаком вопроса",
- "senha" : "Пароль",
- "para remover arquivos e mensagens" : "служит для удаления ваших постов",
- "formatos permitidos" : "Поддерживаемые форматы",
- "tamanho máximo" : "Максимальный объем",
- "dimensões máximas" : "Максимальный размер изображения",
- "você pode enviar" : "Число вложений в 1 посте:",
- "resposta rápida" : "Быстрый ответ",
- "comentário" : "Комментарий",
- "expandir todas as imagens" : "Развернуть все изображения",
- "encolher todas as imagens" : "Свернуть все изображения",
- "últimas" : "Последние",
- "mensagens" : "сообщений",
- "acompanhar thread" : "Следить",
- "muito longa. clique" : "слишком длинный. Нажмите",
- "aqui" : "здесь",
- "para ver o texto completo." : "чтобы увидеть весь текст.",
- "respostas com imagem omitidas." : "постов с изображениями.",
- "clique para expandir" : "Раскрыть",
- "ocultar respostas expandidas" : "Свернуть",
- "omitidas" : "скрыто",
- "esconder post" : "Скрыть пост",
- "unhide post" : "Развернуть пост",
- "adicionar filtro" : "Скрытие",
- "denunciar" : "Пожаловаться",
- "denúncia" : "Пожаловаться на ЦП",
- "enter reason below" : "Изложите причину",
- "deletar post" : "Удалить пост",
- "deletar arquivo" : "Удалить вложение",
- "ir para o topo" : "Вверх",
- "catálogo" : "Каталог",
- "atualizar" : "Обновить",
- "ir aos novos posts" : "Переходить к новым постам",
- "automático" : "Автообновление",
- "atualizando" : "Обновляю",
- "página" : "Страница",
- "todas" : "Все",
- "anterior" : "Назад",
- "próxima" : "Вперед",
- "seg" : "Пн",
- "ter" : "Вт",
- "qua" : "Ср",
- "qui" : "Чт",
- "sex" : "Пт",
- "sab" : "Сб",
- "dom" : "Вс",
- "anônimo" : "Аноним",
- "você" : "Ваш пост",
- }[a.toLowerCase()] || a
- })
- }};
- /*
- * local-time.js
- * https://github.com/savetheinternet/Tinyboard/blob/master/js/local-time.js
- *
- * Released under the MIT license
- * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org>
- * Copyright (c) 2013-2014 Marcin Łabanowski <marcin@6irc.net>
- *
- * Usage:
- * // $config['additional_javascript'][] = 'js/jquery.min.js';
- * // $config['additional_javascript'][] = 'js/strftime.min.js';
- * $config['additional_javascript'][] = 'js/local-time.js';
- *
- */
- $(document).ready(function(){
- 'use strict';
- var iso8601 = function(s) {
- s = s.replace(/\.\d\d\d+/,""); // remove milliseconds
- s = s.replace(/-/,"/").replace(/-/,"/");
- s = s.replace(/T/," ").replace(/Z/," UTC-2");
- s = s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"); // -04:00 -> -0400
- return new Date(s);
- };
- var zeropad = function(num, count) {
- return [Math.pow(10, count - num.toString().length), num].join('').substr(1);
- };
- var dateformat = (typeof strftime === 'undefined') ? function(t) {
- return zeropad(t.getMonth() + 1, 2) + "/" + zeropad(t.getDate(), 2) + "/" + t.getFullYear().toString().substring(2) +
- " (" + [_("Sun"), _("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat"), _("Sun")][t.getDay()] + ") " +
- // time
- zeropad(t.getHours(), 2) + ":" + zeropad(t.getMinutes(), 2) + ":" + zeropad(t.getSeconds(), 2);
- } : function(t) {
- // post_date is defined in templates/main.js
- return strftime(window.post_date, t, datelocale);
- };
- function timeDifference(current, previous) {
- var msPerMinute = 60 * 1000;
- var msPerHour = msPerMinute * 60;
- var msPerDay = msPerHour * 24;
- var msPerMonth = msPerDay * 30;
- var msPerYear = msPerDay * 365;
- var elapsed = current - previous;
- if (elapsed < msPerMinute) {
- return 'Just now';
- } else if (elapsed < msPerHour) {
- return Math.round(elapsed/msPerMinute) + (Math.round(elapsed/msPerMinute)<=1 ? ' minute ago':' minutes ago');
- } else if (elapsed < msPerDay ) {
- return Math.round(elapsed/msPerHour ) + (Math.round(elapsed/msPerHour)<=1 ? ' hour ago':' hours ago');
- } else if (elapsed < msPerMonth) {
- return Math.round(elapsed/msPerDay) + (Math.round(elapsed/msPerDay)<=1 ? ' day ago':' days ago');
- } else if (elapsed < msPerYear) {
- return Math.round(elapsed/msPerMonth) + (Math.round(elapsed/msPerMonth)<=1 ? ' month ago':' months ago');
- } else {
- return Math.round(elapsed/msPerYear ) + (Math.round(elapsed/msPerYear)<=1 ? ' year ago':' years ago');
- }
- }
- var do_localtime = function(elem) {
- var times = elem.getElementsByTagName('time');
- var currentTime = Date.now();
- for(var i = 0; i < times.length; i++) {
- var t = times[i].getAttribute('datetime');
- var postTime = new Date(t);
- times[i].setAttribute('data-local', 'true');
- if (!localStorage.show_relative_time || localStorage.show_relative_time === 'false') {
- times[i].innerHTML = dateformat(iso8601(t));
- times[i].setAttribute('title', timeDifference(currentTime, postTime.getTime()));
- } else {
- times[i].innerHTML = timeDifference(currentTime, postTime.getTime());
- times[i].setAttribute('title', dateformat(iso8601(t)));
- }
- }
- };
- if (window.Options && Options.get_tab('general') && window.jQuery) {
- var interval_id;
- Options.extend_tab('general', '<label id="show-relative-time"><input type="checkbox">' + _('Show relative time') + '</label>');
- $('#show-relative-time>input').on('change', function() {
- if (localStorage.show_relative_time === 'true') {
- localStorage.show_relative_time = 'false';
- clearInterval(interval_id);
- } else {
- localStorage.show_relative_time = 'true';
- interval_id = setInterval(do_localtime, 30000, document);
- }
- // no need to refresh page
- do_localtime(document);
- });
- if (localStorage.show_relative_time === 'true') {
- $('#show-relative-time>input').attr('checked','checked');
- interval_id = setInterval(do_localtime, 30000, document);
- }
- // allow to work with auto-reload.js, etc.
- $(document).on('new_post', function(e, post) {
- do_localtime(post);
- });
- }
- do_localtime(document);
- });
- RAW Paste Data
- var myVar = setInterval(func, 500);
- function func() {
- var treeWalker = document.createTreeWalker(document, NodeFilter.SHOW_TEXT, null, false),
- users = ["home", "boards",
- "board aleatória",
- "criar board",
- "moderar",
- "reportar bug",
- "opções",
- "catalog",
- "modo de postagem: resposta ",
- "voltar",
- "ir ao rodapé",
- "assunto",
- "responder",
- "o corpo do texto é pequeno demais ou inexistente.",
- "mensagem",
- "arquivo",
- "selecione, arraste ou cole arquivos aqui",
- "campo obrigatório",
- "exibir opções e limites",
- "ocultar opções e limites",
- "oekaki",
- "mostrar oekaki",
- "fechar oekaki",
- "clique em qualquer imagem neste site para carregá-lo no oekaki",
- "embutir",
- "substitui",
- "não bumpar",
- "você também pode escrever sage no e-mail",
- "imagem spoiler",
- "isso substitui a miniatura da sua imagem por uma interrogação",
- "senha",
- "para remover arquivos e mensagens",
- "formatos permitidos",
- "tamanho máximo",
- "dimensões máximas",
- "você pode enviar",
- "resposta rápida",
- "comentário",
- "expandir todas as imagens",
- "encolher todas as imagens",
- "últimas",
- "mensagens",
- "acompanhar thread",
- "muito longa. clique",
- "aqui",
- "para ver o texto completo.",
- "respostas com imagem omitidas.",
- "clique para expandir",
- "ocultar respostas expandidas",
- "omitidas",
- "esconder post",
- "unhide post",
- "adicionar filtro",
- "denunciar",
- "denúncia",
- "enter reason below",
- "deletar post",
- "deletar arquivo",
- "ir para o topo",
- "catálogo",
- "atualizar",
- "ir aos novos posts",
- "automático",
- "atualizando",
- "página",
- "todas",
- "anterior",
- "próxima",
- "seg",
- "ter",
- "qua",
- "qui",
- "sex",
- "sab",
- "dom",
- "anônimo",
- "você"
- ],
- reg = new RegExp(users.join("|"), "ig");
- while (treeWalker.nextNode()) {
- var el = treeWalker.currentNode;
- el.data = el.data.replace(reg, function(a) {
- return {
- "home" : "Главная",
- "boards" : "Доски",
- "board aleatória" : "На случайную доску",
- "criar board" : "Создать доску",
- "moderar" : "Админка",
- "reportar bug" : "Сообщить об ошибке",
- "opções" : "Опции",
- "catalog" : "Каталог",
- "modo de postagem: resposta " : "Ответить в тред ",
- "voltar" : "Назад",
- "ir ao rodapé" : "Вниз",
- "assunto" : "Имя",
- "responder" : "Ответить в тред",
- "o corpo do texto é pequeno demais ou inexistente." : "Текст слишком мал или отсутствует",
- "mensagem" : "Текст",
- "arquivo" : "Файл",
- "selecione, arraste ou cole arquivos aqui" : "Кликни / брось файл сюда.",
- "campo obrigatório" : "обязательное поле",
- "exibir opções e limites" : "Параметры и лимиты",
- "ocultar opções e limites" : "Свернуть параметры и лимиты",
- "oekaki" : "Оэкаки",
- "mostrar oekaki" : "Развернуть",
- "fechar oekaki" : "Свернуть",
- "clique em qualquer imagem neste site para carregá-lo no oekaki" : "Нажмите на любое изображение на этом сайте, чтобы загрузить его в оэкаки",
- "embutir" : "Ватермарка",
- "substitui" : "Заменить",
- "não bumpar" : "Sage",
- "você também pode escrever sage no e-mail" : "вы также можете подписаться на электронную почту",
- "imagem spoiler" : "Mark your image as a spoiler",
- "isso substitui a miniatura da sua imagem por uma interrogação" : "это заменяет эскиз вашего изображения знаком вопроса",
- "senha" : "Пароль",
- "para remover arquivos e mensagens" : "служит для удаления ваших постов",
- "formatos permitidos" : "Поддерживаемые форматы",
- "tamanho máximo" : "Максимальный объем",
- "dimensões máximas" : "Максимальный размер изображения",
- "você pode enviar" : "Число вложений в 1 посте:",
- "resposta rápida" : "Быстрый ответ",
- "comentário" : "Комментарий",
- "expandir todas as imagens" : "Развернуть все изображения",
- "encolher todas as imagens" : "Свернуть все изображения",
- "últimas" : "Последние",
- "mensagens" : "сообщений",
- "acompanhar thread" : "Следить",
- "muito longa. clique" : "слишком длинный. Нажмите",
- "aqui" : "здесь",
- "para ver o texto completo." : "чтобы увидеть весь текст.",
- "respostas com imagem omitidas." : "постов с изображениями.",
- "clique para expandir" : "Раскрыть",
- "ocultar respostas expandidas" : "Свернуть",
- "omitidas" : "скрыто",
- "esconder post" : "Скрыть пост",
- "unhide post" : "Развернуть пост",
- "adicionar filtro" : "Скрытие",
- "denunciar" : "Пожаловаться",
- "denúncia" : "Пожаловаться на ЦП",
- "enter reason below" : "Изложите причину",
- "deletar post" : "Удалить пост",
- "deletar arquivo" : "Удалить вложение",
- "ir para o topo" : "Вверх",
- "catálogo" : "Каталог",
- "atualizar" : "Обновить",
- "ir aos novos posts" : "Переходить к новым постам",
- "automático" : "Автообновление",
- "atualizando" : "Обновляю",
- "página" : "Страница",
- "todas" : "Все",
- "anterior" : "Назад",
- "próxima" : "Вперед",
- "seg" : "Пн",
- "ter" : "Вт",
- "qua" : "Ср",
- "qui" : "Чт",
- "sex" : "Пт",
- "sab" : "Сб",
- "dom" : "Вс",
- "anônimo" : "Аноним",
- "você" : "Ваш пост",
- }[a.toLowerCase()] || a
- })
- }};
- /*
- * local-time.js
- * https://github.com/savetheinternet/Tinyboard/blob/master/js/local-time.js
- *
- * Released under the MIT license
- * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org>
- * Copyright (c) 2013-2014 Marcin Łabanowski <marcin@6irc.net>
- *
- * Usage:
- * // $config['additional_javascript'][] = 'js/jquery.min.js';
- * // $config['additional_javascript'][] = 'js/strftime.min.js';
- * $config['additional_javascript'][] = 'js/local-time.js';
- *
- */
- $(document).ready(function(){
- 'use strict';
- var iso8601 = function(s) {
- s = s.replace(/\.\d\d\d+/,""); // remove milliseconds
- s = s.replace(/-/,"/").replace(/-/,"/");
- s = s.replace(/T/," ").replace(/Z/," UTC-2");
- s = s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"); // -04:00 -> -0400
- return new Date(s);
- };
- var zeropad = function(num, count) {
- return [Math.pow(10, count - num.toString().length), num].join('').substr(1);
- };
- var dateformat = (typeof strftime === 'undefined') ? function(t) {
- return zeropad(t.getMonth() + 1, 2) + "/" + zeropad(t.getDate(), 2) + "/" + t.getFullYear().toString().substring(2) +
- " (" + [_("Sun"), _("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat"), _("Sun")][t.getDay()] + ") " +
- // time
- zeropad(t.getHours(), 2) + ":" + zeropad(t.getMinutes(), 2) + ":" + zeropad(t.getSeconds(), 2);
- } : function(t) {
- // post_date is defined in templates/main.js
- return strftime(window.post_date, t, datelocale);
- };
- function timeDifference(current, previous) {
- var msPerMinute = 60 * 1000;
- var msPerHour = msPerMinute * 60;
- var msPerDay = msPerHour * 24;
- var msPerMonth = msPerDay * 30;
- var msPerYear = msPerDay * 365;
- var elapsed = current - previous;
- if (elapsed < msPerMinute) {
- return 'Just now';
- } else if (elapsed < msPerHour) {
- return Math.round(elapsed/msPerMinute) + (Math.round(elapsed/msPerMinute)<=1 ? ' minute ago':' minutes ago');
- } else if (elapsed < msPerDay ) {
- return Math.round(elapsed/msPerHour ) + (Math.round(elapsed/msPerHour)<=1 ? ' hour ago':' hours ago');
- } else if (elapsed < msPerMonth) {
- return Math.round(elapsed/msPerDay) + (Math.round(elapsed/msPerDay)<=1 ? ' day ago':' days ago');
- } else if (elapsed < msPerYear) {
- return Math.round(elapsed/msPerMonth) + (Math.round(elapsed/msPerMonth)<=1 ? ' month ago':' months ago');
- } else {
- return Math.round(elapsed/msPerYear ) + (Math.round(elapsed/msPerYear)<=1 ? ' year ago':' years ago');
- }
- }
- var do_localtime = function(elem) {
- var times = elem.getElementsByTagName('time');
- var currentTime = Date.now();
- for(var i = 0; i < times.length; i++) {
- var t = times[i].getAttribute('datetime');
- var postTime = new Date(t);
- times[i].setAttribute('data-local', 'true');
- if (!localStorage.show_relative_time || localStorage.show_relative_time === 'false') {
- times[i].innerHTML = dateformat(iso8601(t));
- times[i].setAttribute('title', timeDifference(currentTime, postTime.getTime()));
- } else {
- times[i].innerHTML = timeDifference(currentTime, postTime.getTime());
- times[i].setAttribute('title', dateformat(iso8601(t)));
- }
- }
- };
- if (window.Options && Options.get_tab('general') && window.jQuery) {
- var interval_id;
- Options.extend_tab('general', '<label id="show-relative-time"><input type="checkbox">' + _('Show relative time') + '</label>');
- $('#show-relative-time>input').on('change', function() {
- if (localStorage.show_relative_time === 'true') {
- localStorage.show_relative_time = 'false';
- clearInterval(interval_id);
- } else {
- localStorage.show_relative_time = 'true';
- interval_id = setInterval(do_localtime, 30000, document);
- }
- // no need to refresh page
- do_localtime(document);
- });
- if (localStorage.show_relative_time === 'true') {
- $('#show-relative-time>input').attr('checked','checked');
- interval_id = setInterval(do_localtime, 30000, document);
- }
- // allow to work with auto-reload.js, etc.
- $(document).on('new_post', function(e, post) {
- do_localtime(post);
- });
- }
- do_localtime(document);
- });
- RAW Paste Data
- var myVar = setInterval(func, 500);
- function func() {
- var treeWalker = document.createTreeWalker(document, NodeFilter.SHOW_TEXT, null, false),
- users = ["home", "boards",
- "board aleatória",
- "criar board",
- "moderar",
- "reportar bug",
- "opções",
- "catalog",
- "modo de postagem: resposta ",
- "voltar",
- "ir ao rodapé",
- "assunto",
- "responder",
- "o corpo do texto é pequeno demais ou inexistente.",
- "mensagem",
- "arquivo",
- "selecione, arraste ou cole arquivos aqui",
- "campo obrigatório",
- "exibir opções e limites",
- "ocultar opções e limites",
- "oekaki",
- "mostrar oekaki",
- "fechar oekaki",
- "clique em qualquer imagem neste site para carregá-lo no oekaki",
- "embutir",
- "substitui",
- "não bumpar",
- "você também pode escrever sage no e-mail",
- "imagem spoiler",
- "isso substitui a miniatura da sua imagem por uma interrogação",
- "senha",
- "para remover arquivos e mensagens",
- "formatos permitidos",
- "tamanho máximo",
- "dimensões máximas",
- "você pode enviar",
- "resposta rápida",
- "comentário",
- "expandir todas as imagens",
- "encolher todas as imagens",
- "últimas",
- "mensagens",
- "acompanhar thread",
- "muito longa. clique",
- "aqui",
- "para ver o texto completo.",
- "respostas com imagem omitidas.",
- "clique para expandir",
- "ocultar respostas expandidas",
- "omitidas",
- "esconder post",
- "unhide post",
- "adicionar filtro",
- "denunciar",
- "denúncia",
- "enter reason below",
- "deletar post",
- "deletar arquivo",
- "ir para o topo",
- "catálogo",
- "atualizar",
- "ir aos novos posts",
- "automático",
- "atualizando",
- "página",
- "todas",
- "anterior",
- "próxima",
- "seg",
- "ter",
- "qua",
- "qui",
- "sex",
- "sab",
- "dom",
- "anônimo",
- "você"
- ],
- reg = new RegExp(users.join("|"), "ig");
- while (treeWalker.nextNode()) {
- var el = treeWalker.currentNode;
- el.data = el.data.replace(reg, function(a) {
- return {
- "home" : "Главная",
- "boards" : "Доски",
- "board aleatória" : "На случайную доску",
- "criar board" : "Создать доску",
- "moderar" : "Админка",
- "reportar bug" : "Сообщить об ошибке",
- "opções" : "Опции",
- "catalog" : "Каталог",
- "modo de postagem: resposta " : "Ответить в тред ",
- "voltar" : "Назад",
- "ir ao rodapé" : "Вниз",
- "assunto" : "Имя",
- "responder" : "Ответить в тред",
- "o corpo do texto é pequeno demais ou inexistente." : "Текст слишком мал или отсутствует",
- "mensagem" : "Текст",
- "arquivo" : "Файл",
- "selecione, arraste ou cole arquivos aqui" : "Кликни / брось файл сюда.",
- "campo obrigatório" : "обязательное поле",
- "exibir opções e limites" : "Параметры и лимиты",
- "ocultar opções e limites" : "Свернуть параметры и лимиты",
- "oekaki" : "Оэкаки",
- "mostrar oekaki" : "Развернуть",
- "fechar oekaki" : "Свернуть",
- "clique em qualquer imagem neste site para carregá-lo no oekaki" : "Нажмите на любое изображение на этом сайте, чтобы загрузить его в оэкаки",
- "embutir" : "Ватермарка",
- "substitui" : "Заменить",
- "não bumpar" : "Sage",
- "você também pode escrever sage no e-mail" : "вы также можете подписаться на электронную почту",
- "imagem spoiler" : "Mark your image as a spoiler",
- "isso substitui a miniatura da sua imagem por uma interrogação" : "это заменяет эскиз вашего изображения знаком вопроса",
- "senha" : "Пароль",
- "para remover arquivos e mensagens" : "служит для удаления ваших постов",
- "formatos permitidos" : "Поддерживаемые форматы",
- "tamanho máximo" : "Максимальный объем",
- "dimensões máximas" : "Максимальный размер изображения",
- "você pode enviar" : "Число вложений в 1 посте:",
- "resposta rápida" : "Быстрый ответ",
- "comentário" : "Комментарий",
- "expandir todas as imagens" : "Развернуть все изображения",
- "encolher todas as imagens" : "Свернуть все изображения",
- "últimas" : "Последние",
- "mensagens" : "сообщений",
- "acompanhar thread" : "Следить",
- "muito longa. clique" : "слишком длинный. Нажмите",
- "aqui" : "здесь",
- "para ver o texto completo." : "чтобы увидеть весь текст.",
- "respostas com imagem omitidas." : "постов с изображениями.",
- "clique para expandir" : "Раскрыть",
- "ocultar respostas expandidas" : "Свернуть",
- "omitidas" : "скрыто",
- "esconder post" : "Скрыть пост",
- "unhide post" : "Развернуть пост",
- "adicionar filtro" : "Скрытие",
- "denunciar" : "Пожаловаться",
- "denúncia" : "Пожаловаться на ЦП",
- "enter reason below" : "Изложите причину",
- "deletar post" : "Удалить пост",
- "deletar arquivo" : "Удалить вложение",
- "ir para o topo" : "Вверх",
- "catálogo" : "Каталог",
- "atualizar" : "Обновить",
- "ir aos novos posts" : "Переходить к новым постам",
- "automático" : "Автообновление",
- "atualizando" : "Обновляю",
- "página" : "Страница",
- "todas" : "Все",
- "anterior" : "Назад",
- "próxima" : "Вперед",
- "seg" : "Пн",
- "ter" : "Вт",
- "qua" : "Ср",
- "qui" : "Чт",
- "sex" : "Пт",
- "sab" : "Сб",
- "dom" : "Вс",
- "anônimo" : "Аноним",
- "você" : "Ваш пост",
- }[a.toLowerCase()] || a
- })
- }};
- /*
- * local-time.js
- * https://github.com/savetheinternet/Tinyboard/blob/master/js/local-time.js
- *
- * Released under the MIT license
- * Copyright (c) 2012 Michael Save <savetheinternet@tinyboard.org>
- * Copyright (c) 2013-2014 Marcin Łabanowski <marcin@6irc.net>
- *
- * Usage:
- * // $config['additional_javascript'][] = 'js/jquery.min.js';
- * // $config['additional_javascript'][] = 'js/strftime.min.js';
- * $config['additional_javascript'][] = 'js/local-time.js';
- *
- */
- $(document).ready(function(){
- 'use strict';
- var iso8601 = function(s) {
- s = s.replace(/\.\d\d\d+/,""); // remove milliseconds
- s = s.replace(/-/,"/").replace(/-/,"/");
- s = s.replace(/T/," ").replace(/Z/," UTC-2");
- s = s.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"); // -04:00 -> -0400
- return new Date(s);
- };
- var zeropad = function(num, count) {
- return [Math.pow(10, count - num.toString().length), num].join('').substr(1);
- };
- var dateformat = (typeof strftime === 'undefined') ? function(t) {
- return zeropad(t.getMonth() + 1, 2) + "/" + zeropad(t.getDate(), 2) + "/" + t.getFullYear().toString().substring(2) +
- " (" + [_("Sun"), _("Mon"), _("Tue"), _("Wed"), _("Thu"), _("Fri"), _("Sat"), _("Sun")][t.getDay()] + ") " +
- // time
- zeropad(t.getHours(), 2) + ":" + zeropad(t.getMinutes(), 2) + ":" + zeropad(t.getSeconds(), 2);
- } : function(t) {
- // post_date is defined in templates/main.js
- return strftime(window.post_date, t, datelocale);
- };
- function timeDifference(current, previous) {
- var msPerMinute = 60 * 1000;
- var msPerHour = msPerMinute * 60;
- var msPerDay = msPerHour * 24;
- var msPerMonth = msPerDay * 30;
- var msPerYear = msPerDay * 365;
- var elapsed = current - previous;
- if (elapsed < msPerMinute) {
- return 'Just now';
- } else if (elapsed < msPerHour) {
- return Math.round(elapsed/msPerMinute) + (Math.round(elapsed/msPerMinute)<=1 ? ' minute ago':' minutes ago');
- } else if (elapsed < msPerDay ) {
- return Math.round(elapsed/msPerHour ) + (Math.round(elapsed/msPerHour)<=1 ? ' hour ago':' hours ago');
- } else if (elapsed < msPerMonth) {
- return Math.round(elapsed/msPerDay) + (Math.round(elapsed/msPerDay)<=1 ? ' day ago':' days ago');
- } else if (elapsed < msPerYear) {
- return Math.round(elapsed/msPerMonth) + (Math.round(elapsed/msPerMonth)<=1 ? ' month ago':' months ago');
- } else {
- return Math.round(elapsed/msPerYear ) + (Math.round(elapsed/msPerYear)<=1 ? ' year ago':' years ago');
- }
- }
- var do_localtime = function(elem) {
- var times = elem.getElementsByTagName('time');
- var currentTime = Date.now();
- for(var i = 0; i < times.length; i++) {
- var t = times[i].getAttribute('datetime');
- var postTime = new Date(t);
- times[i].setAttribute('data-local', 'true');
- if (!localStorage.show_relative_time || localStorage.show_relative_time === 'false') {
- times[i].innerHTML = dateformat(iso8601(t));
- times[i].setAttribute('title', timeDifference(currentTime, postTime.getTime()));
- } else {
- times[i].innerHTML = timeDifference(currentTime, postTime.getTime());
- times[i].setAttribute('title', dateformat(iso8601(t)));
- }
- }
- };
- if (window.Options && Options.get_tab('general') && window.jQuery) {
- var interval_id;
- Options.extend_tab('general', '<label id="show-relative-time"><input type="checkbox">' + _('Show relative time') + '</label>');
- $('#show-relative-time>input').on('change', function() {
- if (localStorage.show_relative_time === 'true') {
- localStorage.show_relative_time = 'false';
- clearInterval(interval_id);
- } else {
- localStorage.show_relative_time = 'true';
- interval_id = setInterval(do_localtime, 30000, document);
- }
- // no need to refresh page
- do_localtime(document);
- });
- if (localStorage.show_relative_time === 'true') {
- $('#show-relative-time>input').attr('checked','checked');
- interval_id = setInterval(do_localtime, 30000, document);
- }
- // allow to work with auto-reload.js, etc.
- $(document).on('new_post', function(e, post) {
- do_localtime(post);
- });
- }
- do_localtime(document);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement