Skip to content

Commit 1017e36

Browse files
committed
remove google adds
1 parent b2646a5 commit 1017e36

File tree

8 files changed

+10
-8
lines changed

8 files changed

+10
-8
lines changed

assets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"codeceptjs": "^3.3.6",
2525
"copy-webpack-plugin": "^11.0.0",
2626
"css-loader": "^6.7.1",
27-
"mini-css-extract-plugin": "^2.6.1",
2827
"css-minimizer-webpack-plugin": "^7.0.0",
28+
"mini-css-extract-plugin": "^2.6.1",
2929
"sass": "^1.53.0",
3030
"sass-loader": "^13.0.1",
3131
"terser-webpack-plugin": "^2.3.8",

assets/static/ads.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
google.com, pub-6706752364351336, DIRECT, f08c47fec0942fa0

devbox.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@
55
],
66
"shell": {
77
"init_hook": null
8+
},
9+
"nixpkgs": {
10+
"commit": "af9e00071d0971eb292fd5abef334e66eda3cb69"
811
}
912
}

lib/listudy_web/endpoint.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule ListudyWeb.Endpoint do
2727
gzip: false,
2828
cache_control_for_etags: "public, max-age=31536000",
2929
only:
30-
~w(css fonts images js sounds book_cover favicon.ico robots.txt
30+
~w(css fonts images js sounds book_cover favicon.ico robots.txt ads.txt
3131
android-chrome-192x192.png android-chrome-512x512.png apple-touch-icon.png browserconfig.xml favicon-16x16.png favicon-32x32.png favicon.ico mstile-144x144.png mstile-150x150.png mstile-310x150.png mstile-310x310.png mstile-70x70.png safari-pinned-tab.svg site.webmanifest)
3232

3333
plug Plug.Static,

lib/listudy_web/plugs/allow_iframe.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ defmodule ListudyWeb.Plugs.AllowIframe do
66
def call(conn, _options) do
77
conn
88
|> delete_resp_header("x-frame-options")
9+
|> delete_resp_header("cross-origin-window-policy")
910
end
1011
end

lib/listudy_web/plugs/stockfish.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ defmodule ListudyWeb.Plugs.Stockfish do
44
def init(default), do: default
55

66
def call(conn, _default) do
7-
conn = put_resp_header(conn, "cross-origin-embedder-policy", "require-corp")
8-
put_resp_header(conn, "cross-origin-opener-policy", "same-origin")
7+
put_resp_header(conn, "cross-origin-embedder-policy", "unsafe-none")
98
end
109
end

lib/listudy_web/router.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ defmodule ListudyWeb.Router do
2424
end
2525

2626
pipeline :stockfish do
27-
plug ListudyWeb.Plugs.Stockfish
27+
#plug ListudyWeb.Plugs.Stockfish
28+
plug ListudyWeb.Plugs.AllowIframe
2829
end
2930

3031
pipeline :logged_in do

lib/listudy_web/templates/layout/_head.html.eex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,3 @@
6565
<meta name="msapplication-TileColor" content="#2b5797">
6666
<meta name="theme-color" content="#ffffff">
6767
<%# Favicon end %>
68-
69-
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6706752364351336" crossorigin="anonymous"></script>
70-
<script <%= raw ListudyWeb.Plugs.CSP.put_nonce(@conn) %>>(adsbygoogle=window.adsbygoogle||[]).pauseAdRequests=1;</script>

0 commit comments

Comments
 (0)