From 4980a32a906fd4ee0b26ddff20945655bb47a68e Mon Sep 17 00:00:00 2001 From: beckpaul Date: Sun, 7 Jan 2024 17:22:00 -0500 Subject: [PATCH 01/15] Add disclaimer to register page about alternate accounts --- src/backend/templates/views/account/register.pug | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index f4f08656..60af032f 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -12,6 +12,11 @@ block content h2 Welcome to the FAF community br +flash-messages(flash) + br + hr + .multipleAccountDisclaimer + h3 Lost account / returning player + p If you previously had a FAF account you no longer can get access to, please contact the moderation team via discord or forums, or see if you can reset your password using the Steam API. Note that creating and operating multiple accounts is prohibited, and creating a secondary account could lead to moderation action. form( method='post', From f5ed09d50a885bcbc1d902b7e9a8d1e917379988 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Sun, 7 Jan 2024 17:22:44 -0500 Subject: [PATCH 02/15] remove unused class --- src/backend/templates/views/account/register.pug | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 60af032f..88858e87 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -14,7 +14,6 @@ block content +flash-messages(flash) br hr - .multipleAccountDisclaimer h3 Lost account / returning player p If you previously had a FAF account you no longer can get access to, please contact the moderation team via discord or forums, or see if you can reset your password using the Steam API. Note that creating and operating multiple accounts is prohibited, and creating a secondary account could lead to moderation action. From 32cc2028211d72a79c78de9b95c5ea16ef301505 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Sun, 7 Jan 2024 17:26:08 -0500 Subject: [PATCH 03/15] lint --- src/backend/templates/views/account/register.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 88858e87..7726904d 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -12,7 +12,7 @@ block content h2 Welcome to the FAF community br +flash-messages(flash) - br + br hr h3 Lost account / returning player p If you previously had a FAF account you no longer can get access to, please contact the moderation team via discord or forums, or see if you can reset your password using the Steam API. Note that creating and operating multiple accounts is prohibited, and creating a secondary account could lead to moderation action. From bce23433c12a5be41fcbc0a55df2d79aeeab6a89 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Sun, 7 Jan 2024 17:28:32 -0500 Subject: [PATCH 04/15] fix issue lint added --- src/backend/templates/views/account/register.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 7726904d..32b51b68 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -12,10 +12,10 @@ block content h2 Welcome to the FAF community br +flash-messages(flash) - br + hr - h3 Lost account / returning player - p If you previously had a FAF account you no longer can get access to, please contact the moderation team via discord or forums, or see if you can reset your password using the Steam API. Note that creating and operating multiple accounts is prohibited, and creating a secondary account could lead to moderation action. + h3 Lost account / returning player + p If you previously had a FAF account you no longer can get access to, please contact the moderation team via discord or forums, or see if you can reset your password using the Steam API. Note that creating and operating multiple accounts is prohibited, and creating a secondary account could lead to moderation action. form( method='post', From 9f70373e3d246dba0977cb94bc3166f243e61830 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Mon, 8 Jan 2024 07:47:18 -0500 Subject: [PATCH 05/15] Add links, shorten some of the wording --- src/backend/templates/views/account/register.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 32b51b68..e6c2bb57 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -15,8 +15,8 @@ block content hr h3 Lost account / returning player - p If you previously had a FAF account you no longer can get access to, please contact the moderation team via discord or forums, or see if you can reset your password using the Steam API. Note that creating and operating multiple accounts is prohibited, and creating a secondary account could lead to moderation action. - + p If you have a FAF account you can no longer access, please contact the moderation team via Discord or the Forums, or attempt to reset your password on Steam. + p Creating and operating multiple accounts is prohibited, and creating a secondary account will lead to moderation action. form( method='post', action='/account/register', From 1030488a05f51a7e69c63f7c90fac0f6d8c26003 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Mon, 8 Jan 2024 10:50:15 -0500 Subject: [PATCH 06/15] change order of recovery steps --- src/backend/templates/views/account/register.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index e6c2bb57..948e0a39 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -15,7 +15,8 @@ block content hr h3 Lost account / returning player - p If you have a FAF account you can no longer access, please contact the moderation team via Discord or the Forums, or attempt to reset your password on Steam. + + p If you have a FAF account you can no longer access, please attempt to reset your Steam password. For further assistance, contact the moderation team via Discord or the Forums. p Creating and operating multiple accounts is prohibited, and creating a secondary account will lead to moderation action. form( method='post', From 2ac1962bab4df46ccc4b13bb1c77371cd01bc0e7 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Tue, 9 Jan 2024 11:02:51 -0500 Subject: [PATCH 07/15] change discord and forum urls to global locales --- src/backend/AppKernel.js | 3 ++- src/backend/templates/layouts/default.pug | 12 ++++++------ src/backend/templates/views/account/register.pug | 8 ++++++-- src/backend/templates/views/campaign-missions.pug | 2 +- src/backend/templates/views/contribution.pug | 2 +- src/backend/templates/views/index.pug | 6 +++--- src/backend/templates/views/newshub.pug | 4 ++-- src/backend/templates/views/play.pug | 4 ++-- 8 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/backend/AppKernel.js b/src/backend/AppKernel.js index 4d3406d0..57b46914 100644 --- a/src/backend/AppKernel.js +++ b/src/backend/AppKernel.js @@ -45,7 +45,8 @@ class AppKernel { bootstrapExpress() { this.expressApp = express() - + this.expressApp.locals.discordUrl = 'https://discord.gg/mXahVSKGVb' + this.expressApp.locals.forumUrl = 'https://forum.faforever.com/' this.expressApp.locals.clanInvitations = {} this.expressApp.use((req, res, next) => { res.locals.navLinks = [] diff --git a/src/backend/templates/layouts/default.pug b/src/backend/templates/layouts/default.pug index dabe619f..e0f98786 100755 --- a/src/backend/templates/layouts/default.pug +++ b/src/backend/templates/layouts/default.pug @@ -57,11 +57,11 @@ html(lang='en') .topNavContainer a.topnav_item(href='/donation') Support FAF .topNavContainer - a.topnav_item(href='https://forum.faforever.com/') Forums + a.topnav_item(href=forumUrl) Forums .topNavContainer a.topnav_item(href='https://wiki.faforever.com/en/home') Wiki .topNavContainer - a(href='https://discord.gg/mXahVSKGVb') + a(href=discordUrl) img(src='/images/fontAwesomeIcons/discord.svg') .topNavContainer a(href='https://www.youtube.com/c/ForgedAllianceForever') @@ -211,7 +211,7 @@ html(lang='en') a(href='/logout') Log Out .mobileSocialMedia - a(href='https://discord.gg/mXahVSKGVb') + a(href=discordUrl) img(src='/images/fontAwesomeIcons/discord.svg') a(href='https://www.twitch.tv/faflive') img(src='/images/fontAwesomeIcons/twitch.svg') @@ -220,7 +220,7 @@ html(lang='en') a(href='https://github.com/FAForever') img(src='/images/fontAwesomeIcons/github.svg') .mobileOtherLinks - a(href='https://forum.faforever.com/') Forums + a(href=forumUrl) Forums a(href='https://wiki.faforever.com/en/home') FAF Wiki .splatForgedBorder.transformationReverse.absoluteBottom .movingBackground1 @@ -288,9 +288,9 @@ html(lang='en') ul CONTACT US li - a(href='https://discord.gg/mXahVSKGVb') DISCORD + a(href=discordUrl) DISCORD li - a(href='https://forum.faforever.com/') FORUMS + a(href=forumUrl) FORUMS script(src=webpackAssetJS('navigation')) script( diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 948e0a39..b94df4c1 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -15,8 +15,12 @@ block content hr h3 Lost account / returning player - - p If you have a FAF account you can no longer access, please attempt to reset your Steam password. For further assistance, contact the moderation team via Discord or the Forums. + p If you have a FAF account you can no longer access, please attempt to   + a(href="https://help.steampowered.com/en/wizard/HelpWithLoginInfo?reset=1&issueid=408" target="_blank") reset your Steam password. + |  For further assistance, contact the moderation team via  + a(href=discordUrl target="_blank") Discord + | or the  + a(href=forumUrl target="_blank") Forums. p Creating and operating multiple accounts is prohibited, and creating a secondary account will lead to moderation action. form( method='post', diff --git a/src/backend/templates/views/campaign-missions.pug b/src/backend/templates/views/campaign-missions.pug index 5b8716dd..b14fc6d2 100644 --- a/src/backend/templates/views/campaign-missions.pug +++ b/src/backend/templates/views/campaign-missions.pug @@ -13,7 +13,7 @@ block content p FAF has implemented the co-op feature into the campaign. This means now you can play either of the four original campaigns with up to three friends (four players)! But! That's not all, FAF contributors are also working on creating two new campaigns! One for Seraphim and another one for the coalition! However, be warned that the new campaigns are meant to present a real challenge to seasoned players. If you need some help or have questions, feel free joining the FAF Campaign Development Discord or the FAF Discord! a(href='https://discord.gg/ayzAVr9JUV') button Campaign Discord - a(href='https://discord.gg/mXahVSKGVb') + a(href=discordUrl) button Official Discord .mainShowcase .showcaseContainer.column6 diff --git a/src/backend/templates/views/contribution.pug b/src/backend/templates/views/contribution.pug index bc4aa0bc..3422c58f 100644 --- a/src/backend/templates/views/contribution.pug +++ b/src/backend/templates/views/contribution.pug @@ -16,7 +16,7 @@ block content h2.highlightText Fixing bugs, killing lag h1 Game development p Want to help fix a game issue? Create your own Co-op mission? Then you can help with development on Github. To start, join our discord so that you can talk with the correct dev and invite you to our Zulip. It is recommended (but not necessary!) knowing some Lua for game developlment, Python for the server work or Java for the FAF client. - a(target='_blank', href='https://discord.gg/mXahVSKGVb') + a(target='_blank', href=discordUrl) button Join our Discord a(target='_blank', href='https://github.com/faforever/') button FAF repository diff --git a/src/backend/templates/views/index.pug b/src/backend/templates/views/index.pug index c858badf..846f0cd8 100644 --- a/src/backend/templates/views/index.pug +++ b/src/backend/templates/views/index.pug @@ -47,9 +47,9 @@ block content h2.highlightText Thriving community h1 Make new friends or foes p Our diverse playerbase makes sure you have a spot in our community. Whether you want to experience surviving against waves of enemy AI, play custom games, rise in the matchmaking ladder or just have fun with friends, FAF has a space for you. - a(href='https://discord.gg/kTsxKu52WU') + a(href=discordUrl) button Join our Discord - a(href='https://forum.faforever.com') + a(href=forumUrl) button FAF forums .mainShowcase .showcaseContainer.column6 @@ -114,5 +114,5 @@ block content .bannerContainer.column12 a(href='/play') button PLAY NOW - a(href='https://discord.gg/mXahVSKGVb') + a(href=discordUrl) button Join our Discord diff --git a/src/backend/templates/views/newshub.pug b/src/backend/templates/views/newshub.pug index 6371a64b..7c73c451 100644 --- a/src/backend/templates/views/newshub.pug +++ b/src/backend/templates/views/newshub.pug @@ -44,7 +44,7 @@ body .featureLink.featureDiscord.column4 a( target='_blank', - href='https://discord.gg/mXahVSKGVb' + href=discordUrl ) img(src='/../../images/logos/discord.svg', alt='') .featureLink.featureTwitch.column4 @@ -102,7 +102,7 @@ body ) Community Guides .clientMenuContainer.column2 ul COMMUNITY - a(target='_blank', href='https://forum.faforever.com/') Forums + a(target='_blank', href=forumUrl) Forums a( target='_blank', href='https://kazbek.github.io/FAF-Analytics/' diff --git a/src/backend/templates/views/play.pug b/src/backend/templates/views/play.pug index 969f999b..44447d6d 100644 --- a/src/backend/templates/views/play.pug +++ b/src/backend/templates/views/play.pug @@ -62,9 +62,9 @@ block content button Download FAF br br - a(href='https://discord.gg/mXahVSKGVb') + a(href=discordUrl) button Discord - a(href='https://forum.faforever.com/') + a(href=forumUrl) button Forum a(href='https://wiki.faforever.com/en/Play/Linux-Install') button Linux Installation From 89a4515ae5340eff6326f046b23a25dda123d18e Mon Sep 17 00:00:00 2001 From: beckpaul Date: Tue, 9 Jan 2024 11:03:19 -0500 Subject: [PATCH 08/15] linting --- src/backend/templates/views/account/register.pug | 14 +++++++++----- src/backend/templates/views/newshub.pug | 5 +---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index b94df4c1..5b347239 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -16,11 +16,15 @@ block content hr h3 Lost account / returning player p If you have a FAF account you can no longer access, please attempt to   - a(href="https://help.steampowered.com/en/wizard/HelpWithLoginInfo?reset=1&issueid=408" target="_blank") reset your Steam password. - |  For further assistance, contact the moderation team via  - a(href=discordUrl target="_blank") Discord - | or the  - a(href=forumUrl target="_blank") Forums. + a( + href='https://help.steampowered.com/en/wizard/HelpWithLoginInfo?reset=1&issueid=408', + target='_blank' + ) reset your Steam password. + |  For further assistance, contact the moderation team via  + a(href=discordUrl, target='_blank') Discord + | + | or the  + a(href=forumUrl, target='_blank') Forums. p Creating and operating multiple accounts is prohibited, and creating a secondary account will lead to moderation action. form( method='post', diff --git a/src/backend/templates/views/newshub.pug b/src/backend/templates/views/newshub.pug index 7c73c451..4949a65f 100644 --- a/src/backend/templates/views/newshub.pug +++ b/src/backend/templates/views/newshub.pug @@ -42,10 +42,7 @@ body .featureSubGrid.column3.featureLink .featureSocial.column12 .featureLink.featureDiscord.column4 - a( - target='_blank', - href=discordUrl - ) + a(target='_blank', href=discordUrl) img(src='/../../images/logos/discord.svg', alt='') .featureLink.featureTwitch.column4 a( From 1f278e6b31a846e6dd60b3df07b83bf99dcd7135 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Wed, 10 Jan 2024 18:27:17 -0500 Subject: [PATCH 09/15] final iteration. --- src/backend/templates/views/account/register.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 5b347239..6505a926 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -15,17 +15,17 @@ block content hr h3 Lost account / returning player + p Creating and operating multiple accounts is prohibited. p If you have a FAF account you can no longer access, please attempt to   a( href='https://help.steampowered.com/en/wizard/HelpWithLoginInfo?reset=1&issueid=408', target='_blank' ) reset your Steam password. - |  For further assistance, contact the moderation team via  + p For further assistance, contact the moderation team via  a(href=discordUrl, target='_blank') Discord | - | or the  + | or the  a(href=forumUrl, target='_blank') Forums. - p Creating and operating multiple accounts is prohibited, and creating a secondary account will lead to moderation action. form( method='post', action='/account/register', From 5e9312e5a1b11d033a27699e38433b010d4216f7 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Wed, 10 Jan 2024 18:30:14 -0500 Subject: [PATCH 10/15] make header bold --- src/backend/templates/views/account/register.pug | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 6505a926..34c97fa2 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -14,7 +14,8 @@ block content +flash-messages(flash) hr - h3 Lost account / returning player + h3 + strong Lost account / returning player p Creating and operating multiple accounts is prohibited. p If you have a FAF account you can no longer access, please attempt to   a( From 38794c69e54af1f014f1ad1c41159a43256cc3e1 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Wed, 10 Jan 2024 18:31:28 -0500 Subject: [PATCH 11/15] found extra space --- src/backend/templates/views/account/register.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 34c97fa2..436bda75 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -17,7 +17,7 @@ block content h3 strong Lost account / returning player p Creating and operating multiple accounts is prohibited. - p If you have a FAF account you can no longer access, please attempt to   + p If you have a FAF account you can no longer access, please attempt to  a( href='https://help.steampowered.com/en/wizard/HelpWithLoginInfo?reset=1&issueid=408', target='_blank' From dd4852b5d8f5114305a4758e69941ccb46024734 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Thu, 11 Jan 2024 14:45:42 -0500 Subject: [PATCH 12/15] simplify and move stuff around --- .../templates/views/account/register.pug | 18 +++++++----------- .../views/account/requestPasswordReset.pug | 7 ++++++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 436bda75..ba6de26e 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -15,23 +15,19 @@ block content hr h3 - strong Lost account / returning player + strong + a( + href='/account/requestPasswordReset', + target='_blank' + ) Lost Account or Returning Player p Creating and operating multiple accounts is prohibited. - p If you have a FAF account you can no longer access, please attempt to  - a( - href='https://help.steampowered.com/en/wizard/HelpWithLoginInfo?reset=1&issueid=408', - target='_blank' - ) reset your Steam password. - p For further assistance, contact the moderation team via  - a(href=discordUrl, target='_blank') Discord - | - | or the  - a(href=forumUrl, target='_blank') Forums. form( method='post', action='/account/register', data-toggle='validator' ) + h2 + strong New Players +username br br diff --git a/src/backend/templates/views/account/requestPasswordReset.pug b/src/backend/templates/views/account/requestPasswordReset.pug index 8a32dbbb..1c6567c9 100644 --- a/src/backend/templates/views/account/requestPasswordReset.pug +++ b/src/backend/templates/views/account/requestPasswordReset.pug @@ -7,7 +7,7 @@ block bannerData - var bannerSubTitle = '' block content - .passResetContainer + .containerCenter .flashMessage.column12 +flash-error(errors) .passResetEmail.column12 @@ -33,6 +33,11 @@ block content br p We will send you an email to your accounts email address containing a link. The link will lead you to a page where you can set your new password. p If you don't receive an email please check your spam folder! + p For further assistance, contact the moderation team via  + a(href=discordUrl, target='_blank') Discord + | + | or the  + a(href=forumUrl, target='_blank') Forums. br .recaptchaForm label.column12 From d30a46a554c925e6063c546dc321da294d8364fe Mon Sep 17 00:00:00 2001 From: beckpaul Date: Thu, 11 Jan 2024 14:47:06 -0500 Subject: [PATCH 13/15] move stuff so line height isnt awful --- src/backend/templates/views/account/register.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index ba6de26e..2ded455c 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -20,7 +20,7 @@ block content href='/account/requestPasswordReset', target='_blank' ) Lost Account or Returning Player - p Creating and operating multiple accounts is prohibited. + p Creating and operating multiple accounts is prohibited. form( method='post', action='/account/register', From 746cc222392fde53dde9f125c5b8bbb5ca086559 Mon Sep 17 00:00:00 2001 From: beckpaul Date: Thu, 11 Jan 2024 14:50:46 -0500 Subject: [PATCH 14/15] remove hr to match other forms --- src/backend/templates/views/account/register.pug | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/templates/views/account/register.pug b/src/backend/templates/views/account/register.pug index 2ded455c..fd34d020 100644 --- a/src/backend/templates/views/account/register.pug +++ b/src/backend/templates/views/account/register.pug @@ -13,7 +13,6 @@ block content br +flash-messages(flash) - hr h3 strong a( From 5054a8a1cfde55d4edebb3d43d6d02379a34a1ac Mon Sep 17 00:00:00 2001 From: beckpaul Date: Thu, 11 Jan 2024 15:00:20 -0500 Subject: [PATCH 15/15] more input from the mostlostnoob --- .../views/account/requestPasswordReset.pug | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/backend/templates/views/account/requestPasswordReset.pug b/src/backend/templates/views/account/requestPasswordReset.pug index 1c6567c9..a2732ba8 100644 --- a/src/backend/templates/views/account/requestPasswordReset.pug +++ b/src/backend/templates/views/account/requestPasswordReset.pug @@ -33,11 +33,6 @@ block content br p We will send you an email to your accounts email address containing a link. The link will lead you to a page where you can set your new password. p If you don't receive an email please check your spam folder! - p For further assistance, contact the moderation team via  - a(href=discordUrl, target='_blank') Discord - | - | or the  - a(href=forumUrl, target='_blank') Forums. br .recaptchaForm label.column12 @@ -47,18 +42,18 @@ block content type='submit' ) Reset via email br - br - - br - br - .passResetSteam.column12 h1 Reset password via Steam p Click on the button below to get to the Steam login page. a(href=steamReset) button Reset via Steam br - br + p If you can't reset your password or regain access to your FAF account via the provided methods above, then please contact the moderation team via  + a(href=discordUrl, target='_blank') Discord + | + | or the + | + a(href=forumUrl, target='_blank') Forums. block js script(src='//www.google.com/recaptcha/api.js')