Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crashing
  • Loading branch information
SthephanShinkufag committed Oct 13, 2016
1 parent c34c7e6 commit 7871368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dollchan_Extension_Tools.user.js
Expand Up @@ -2942,7 +2942,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var _marked = [getFormElements, getStored, getStoredObj, readCfg, readPostsData, html5Submit, runMain].map(regeneratorRuntime.mark);

var version = '16.8.17.0';
var commit = '6cea569';
var commit = 'c34c7e6';

var defaultCfg = {
'disabled': 0,
Expand Down Expand Up @@ -18040,7 +18040,7 @@ true, true],
return _2chRip;
}(BaseBoard);

ibDomains['2ch.rip'] = DvaChNet;
ibDomains['2ch.rip'] = _2chRip;

var _2chRu = function (_BaseBoard8) {
_inherits(_2chRu, _BaseBoard8);
Expand Down
4 changes: 2 additions & 2 deletions src/Dollchan_Extension_Tools.es6.user.js
Expand Up @@ -24,7 +24,7 @@
'use strict';

const version = '16.8.17.0';
const commit = '6cea569';
const commit = 'c34c7e6';

const defaultCfg = {
'disabled': 0, // script enabled by default
Expand Down Expand Up @@ -13061,7 +13061,7 @@ function getImageBoard(checkDomains, checkEngines) {
});
}
}
ibDomains['2ch.rip'] = DvaChNet;
ibDomains['2ch.rip'] = _2chRip;

class _2chRu extends BaseBoard {
constructor(prot, dm) {
Expand Down

45 comments on commit 7871368

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hqdefault

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ты не поверишь, но он вообще-то https://dva-ch.com/

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да он заебал менять домены..

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не, не. Ком это основной, а рип это вспомогательный. Так вышло.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему-то я об этом узнаю последним.

@Y0ba
Copy link
Collaborator

@Y0ba Y0ba commented on 7871368 Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предлагаю такой мегакостыль: первичное определение будет не по домену, а по селектору, но затем домен вносится в конфиг и страница перезагружается. Т.е. сделать отдельный конфиг для подобных доменов.

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кто ж знал что за домен платить надо? Вот старый и просрали.

Почему-то я об этом узнаю последним.

Не переживай. Было бы всё плохо, был бы тикет или пулл реквест.

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Y0ba как-то сложно. Имхо проще делать детект по домену, а вот если там фейл, тогда по селекторам.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не-не, в движки вносить не будем. Добавим еще один домен, и все.

@Y0ba
Copy link
Collaborator

@Y0ba Y0ba commented on 7871368 Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@desudesutalk так и делается. Просто из-за детекта по домену можно часть внутренних скриптов "отключить" ещё до их запуска. Этим скрипт и пользуется.

@Y0ba
Copy link
Collaborator

@Y0ba Y0ba commented on 7871368 Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хотя конкретно тут такого нет, тут только по домену.

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну, тут я к сожалению не знаю как у вас всё устроено. Но именно с этой бордой я бы ничего не менял, оно и так работает. просто доменов у неё два.

К слову, как обрубаются внутренние скрипты?

@SthephanShinkufag
Copy link
Owner Author

@SthephanShinkufag SthephanShinkufag commented on 7871368 Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Чем плох детект по селектору - он запускается на всех открываемых страницах. Поэтому внесение в "ibEngines" это крайняя мера. Такое надо проделать с TinyIB, кстати, ни одна борда с этим движком не работает с куклой.

@Y0ba
Copy link
Collaborator

@Y0ba Y0ba commented on 7871368 Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

К слову, как обрубаются внутренние скрипты?

Обычно вырубается не все скрипты (для этого нужно писать расширение), а только часть. Выполняешь на странице какой-нибудь window.FormData = void 0; и встроенные скрипты не выполняют код, связанный с этой фичей.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

window.FormData = void 0;

Кстати, напомни, зойчем это делается (на том же мейлаче), а то не могу вспомнить.

@Y0ba
Copy link
Collaborator

@Y0ba Y0ba commented on 7871368 Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну скорее всего, чтобы тот не инициализировал свою отправку формы. Хотя я не знаю, нужно ли это сейчас.

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SthephanShinkufag, а TinyIB вообще поддерживается? Когда-то давно заходил на такую борду, Скрипт завёлся, но лучше бы этого не делал.

@Y0ba, просто вырубаете функционал частично значит. Я думал есть какое-то хитрое решение типа beforescriptexecute но кросбраузерное.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TinyIB

Да, есть несколько досок.
Я вчера провёл ревизию мелкоборд по списку.

lampach.net
0nyan.ml
ozuchan.ru

Подозреваю, что дело просто-напросто в том, что владельцы борд в нынешнее время сильно увлекаются прикручиванием разной ерунды и шатанием движков.

@UserNaem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Подозреваю, что дело просто-напросто в том, что владельцы борд в нынешнее время сильно увлекаются прикручиванием разной ерунды и шатанием движков.

Если позволите вставить свои пять копеек, недавно на 2watch.su сломали раскрытие картинок по центру. Говорят, раньше работало.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кстати, так и не остановился, на каком движке запустить свою мелкоборду для обсуждения куклы.
Есть несколько стульев:

  1. Вакаба. Не рассматривается. Перл ковырять моветон.
  2. Кусаба. Устарела, и вообсче создатель забил на ея фаллос и сейчас развивает что бы вы думали? TinyIB, ліл.
  3. TinyIB. Фиг его знае. Более-менее значимых ресурсов на нем нема, но автор что-то там постоянно пилит.
  4. Пики точены — tinyboard + vichan. Походу, единственный актуально и регулярно разрабатываемый движок на данный момент. Только нужно отключить спамбот-защиту.
  5. Разрабатывать велосипед самому. На это уйдёт очень много времени и интеллектуального ресурса, отводимого на сие кодерское хобби. Или кукла, или это. Не рассматривается.

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пики точены

This.

Антиспам кажется вырубается в настройках. В тех же настройках можно поменять викимарк на вакабамарк. Ну и ++без куклоскрипта вичан весьма хорош!++

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хотя, я наверное путаю скриптовый обвес Инфинити с Вичаном...

@UserNaem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А пока такой борды ещё не существует, никто не будет возражать, если я создам новый тред-обсуждение на Ычане?

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

на Ычане

Зачем? Этот тред там не ждут.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если схватите бан с делолом, я не виноват.

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Оп-па. Всё так плохо? А что случилось, не расскажешь?

Вообще для начала я бы посоветовал не париться и поднять саппорт-борду на http://8ch.pl - регается за пять секунд, модерки тамошней вполне достаточно чтоб рулить своей доской. Если не устроит (или если поляч таки забанят в след за восьмичаном) тогда можно подумать и о своей собсвтенной саппорт-борде.

@UserNaem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Прошлый набрал 517 постов и утонул в архив, переката не было. Кстати, там что-то про брчан и капчу:
barch_-dollchan_extension_tools-_firefox_devel 13 10 16 15-04-58
http://iichan.hk/b/arch/res/4065720.html

Если схватите бан с делолом, я не виноват.

Рискну ради любимого скрипта.
http://iichan.hk/b/res/4214680.html

@SthephanShinkufag
Copy link
Owner Author

@SthephanShinkufag SthephanShinkufag commented on 7871368 Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Понятия не имею. Просто тред молча и без предупреждения перенесли в архив.
Народ говорит, надо идти в тематику http://410chan.org/b/.
А еще получил предложение от одмина одной из борд переехать к ним.
Новый тред в /b создавать не рискую.

@UserNaem

Рискну ради любимого скрипта.

Ну и зачем провоцировать? =\

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тогда уж в http://410chan.org/dev/

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/dev я имел в виду. Очепятка, и да.

@UserNaem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне показалось, на многих медленных бордах треды переносят в архив после бамплимита, чтобы не топили другие. Извиняюсь, не имел желания кому-либо навредить.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пусть висит, посмотрим.

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ты кажется перегибаешь. Скорей всего бамплимитный тред перенесли в архив даже не посмотрев что новый ещё не создан. Чисто по привычке. Его ж архивнули небось с первой страницы, а то и со второй?

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Просто на Ычане действительно провели хорошую чистку, даже удалили несколько досок. Мод-тян (и co.) занимаются оптимизацией и оживлением тематики.

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

С другой стороны, я был бы не прочь потусить на борде имени куклоскрипта и потрещать там с другими любителями поговнокодить для борд.

@UserNaem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@desudesutalk
В отсутствие других идей (и надлежащих навыков погромирования) наговнокодил кнопку для подсветки постов, отвечающих на мои посты. Работает примерно так: https://aww.moe/hz43si.webm

@SthephanShinkufag
Copy link
Owner Author

@SthephanShinkufag SthephanShinkufag commented on 7871368 Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я от этого плана не откажусь, даже если тред на ычане взлетит.
Создать джве доски — одну для обсуждения околобордовых скриптов и погромирования, другую для тестов.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В ЧЕТЫРЕ РАЗА

А, уже в три. Ну да, сутки для ычана вчера еще не прошли, не справедливое немного было сравнение.

@desudesutalk
Copy link

@desudesutalk desudesutalk commented on 7871368 Oct 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сложно соревноваться с букетом чатиков доброчанского /b/.

А как борду запилишь - маякни, буду у тебя раковать в /b/.

@Reisenfag
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://twitter.com/UdongeinChan/status/686939497829941249
за июль 2016 — 35к (~1200 в сутки)
за август — 31к (1000 в сутки)
за сентябрь — 30800.
Meh... Ычан СТАБИЛЕН, причём в долгосрочной перспективе.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну вот. Подпись красненьким.
hqdefault

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

На моем хостинге сегодня профилактика, ліл. Чанстат пока недоступен.

@SthephanShinkufag
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну так что, ребята? Перекат на автобус?

@desudesutalk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Но ведь это твой тред, тебе и решать.

@SthephanShinkufag
Copy link
Owner Author

@SthephanShinkufag SthephanShinkufag commented on 7871368 Oct 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Шалом! Меня не было пару дней. зато было время на философские раздумия, и осмысление сути бытия среди безлюдных морозных пезйжей.
В общем, ребята, я много подумай и решил нигде тред о скрипте не создавать. Чому? А мне даже некогда issues разгребать, а ведь там хватит на целую гору работы. А времени на куклоскрипт я довольно давно уже много выделять не могу. Буду разгребать то, що есть в issues, ну и просто по желанию левой пятки. По чуть-чуть, неспеша. А трепаться в тредах некогда. Создашь тред, там еще 100500 репортов накидают, которых я даже не гляну. У Йобы, думаю, тоже не очень то много времени на чистку унитазов вилкой.
Вот так.

Please sign in to comment.