mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-28 02:21:24 +00:00
@@ -136,6 +136,12 @@
|
||||
<input name="visitor_data" id="visitor_data" type="text" value="<%= preferences.visitor_data %>">
|
||||
</div>
|
||||
|
||||
<% if env.get?("user") %>
|
||||
<div class="pure-control-group">
|
||||
<a href="/generate_tokens?referer=<%= URI.encode_www_form(referer) %>"><%= translate(locale, "Generate po_token and visitor_data for your account") %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<legend><%= translate(locale, "preferences_category_visual") %></legend>
|
||||
|
||||
<div class="pure-control-group">
|
||||
|
||||
15
src/invidious/views/user/tokens.ecr
Normal file
15
src/invidious/views/user/tokens.ecr
Normal file
@@ -0,0 +1,15 @@
|
||||
<% content_for "header" do %>
|
||||
<title><%= translate(locale, "Invidious token generator") %> - Invidious</title>
|
||||
<% end %>
|
||||
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1 pure-u-lg-1-5"></div>
|
||||
<div class="pure-u-1 pure-u-lg-3-5">
|
||||
<div class="h-box">
|
||||
<p>po_token and visitor_data successfully generated!</p>
|
||||
<p>po_token: <%= po_token %></p>
|
||||
<p>visitor_data: <%= visitor_data %></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pure-u-1 pure-u-lg-1-5"></div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user