diff --git a/src/Miscellaneous/PSA.coffee b/src/Miscellaneous/PSA.coffee index 9d9da56cf..b4b747dd8 100644 --- a/src/Miscellaneous/PSA.coffee +++ b/src/Miscellaneous/PSA.coffee @@ -7,3 +7,13 @@ PSA = el = $.el 'div', {className: 'fcx-announcement'}, announcement $.onExists doc, '.boardBanner', (banner) -> $.after banner, el + + site: -> + if location.hostname is 'samachan.org' + $.onExists doc, '.navbar', (navbar) -> + link = $.el 'a', + href: 'https://sushigirl.us/yakuza/res/776.html' + target: '_blank' + rel: 'noopener' + textContent: 'Looking for a new home? Some users are regrouping on SushiChan. (a message from 4chan X)' + $.add navbar, [$.el('br'), link] diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 0e79a5d73..246b57a8d 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -125,6 +125,8 @@ Main = for key, val of Conf Conf[key] = items[key] ? val + try + PSA.site() Site.init Main.initFeatures upgrade: (items) ->