diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-10-21 19:58:31 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-10-21 19:58:31 -0700 |
commit | d3230e8daf6af80f397ec41df2b8a3872b5b9483 (patch) | |
tree | 22d1d3abb00a2cdbae1211192cd43915198fa443 /youtube/templates | |
parent | 8b54a5f3aa376651bf063baa6893fe9b7f0e2ca0 (diff) | |
download | yt-local-d3230e8daf6af80f397ec41df2b8a3872b5b9483.tar.lz yt-local-d3230e8daf6af80f397ec41df2b8a3872b5b9483.tar.xz yt-local-d3230e8daf6af80f397ec41df2b8a3872b5b9483.zip |
Remove commenting system. Because:
- Actually using it will result in comments being shadowbanned,
even those posted from Youtube's interfacs, because your account
gets downranked since no analytics are present so it looks like a
bot posting the comment.
- It's been broken for awhile
Diffstat (limited to 'youtube/templates')
-rw-r--r-- | youtube/templates/comments.html | 24 | ||||
-rw-r--r-- | youtube/templates/comments_page.html | 3 | ||||
-rw-r--r-- | youtube/templates/delete_comment.html | 21 | ||||
-rw-r--r-- | youtube/templates/login.html | 57 | ||||
-rw-r--r-- | youtube/templates/post_comment.html | 20 |
5 files changed, 1 insertions, 124 deletions
diff --git a/youtube/templates/comments.html b/youtube/templates/comments.html index 32a67ad..8780e37 100644 --- a/youtube/templates/comments.html +++ b/youtube/templates/comments.html @@ -28,12 +28,9 @@ <a href="{{ comment['replies_url'] }}" class="replies-open-new-tab" target="_blank">Open in new tab</a> <div class="comment_page">loading..</div> </details> - {% else %} + {% elif comment['reply_count'] %} <a href="{{ comment['replies_url'] }}" class="replies">{{ comment['view_replies_text'] }}</a> {% endif %} - {% if 'delete_url' is in comment %} - <a href="{{ comment['delete_url'] }}" target="_blank">Delete</a> - {% endif %} </div> </div> @@ -56,25 +53,6 @@ {% endif %} {% endmacro %} -{% macro comment_posting_box(info) %} - <form action="{{ info['form_action'] }}" method="post" class="comment-form"> - <div id="comment-account-options"> - <label for="account-selection">Account:</label> - <select id="account-selection" name="channel_id"> - {% for account in info['accounts'] %} - <option value="{{ account[0] }}">{{ account[1] }}</option> - {% endfor %} - </select> - <a href="/https://youtube.com/login" target="_blank">Add account</a> - </div> - <textarea name="comment_text"></textarea> - {% if info['include_video_id_input'] %} - <input type="hidden" name="video_id" value="{{ info['video_id'] }}"> - {% endif %} - <button type="submit" class="post-comment-button">{{ 'Post reply' if info['replying'] else 'Post comment' }}</button> - </form> -{% endmacro %} - diff --git a/youtube/templates/comments_page.html b/youtube/templates/comments_page.html index 269ac83..2d914af 100644 --- a/youtube/templates/comments_page.html +++ b/youtube/templates/comments_page.html @@ -27,9 +27,6 @@ </section> {% endif %} - {% if not slim %} - {{ comments.comment_posting_box(comment_posting_box_info) }} - {% endif %} {% if not comments_info['is_replies'] %} <div class="comment-links"> diff --git a/youtube/templates/delete_comment.html b/youtube/templates/delete_comment.html deleted file mode 100644 index 28c8f2a..0000000 --- a/youtube/templates/delete_comment.html +++ /dev/null @@ -1,21 +0,0 @@ -{% set page_title = 'Delete comment?' %} -{% extends "base.html" %} - -{% block style %} - main > div, main > form{ - margin: auto; - margin-top:20px; - width: 640px; - } -{% endblock style %} - -{% block main %} - <div>Are you sure you want to delete this comment?</div> - <form action="" method="POST"> - {% for parameter_name, parameter_value in parameters %} - <input type="hidden" name="{{ parameter_name }}" value="{{ parameter_value }}"> - {% endfor %} - <input type="submit" value="Yes, delete it"> - </form> -{% endblock %} - diff --git a/youtube/templates/login.html b/youtube/templates/login.html deleted file mode 100644 index 384f1ac..0000000 --- a/youtube/templates/login.html +++ /dev/null @@ -1,57 +0,0 @@ -{% set page_title = 'Login' %} -{% extends "base.html" %} - -{% block style %} - main > * { - width: 640px; - margin: auto; - } - main form{ - background-color: var(--interface-color); - padding: 10px; - margin-top:20px; - display:grid; - justify-items: start; - align-content: start; - grid-row-gap: 10px; - } - - #username, #password{ - grid-column:2; - width: 250px; - } - #add-account-button{ - margin-top:20px; - } - #tor-note{ - background-color: var(--interface-color); - padding: 10px; - margin-top: 40px; - } -{% endblock style %} - -{% block main %} - <form action="" method="POST"> - <div class="form-field"> - <label for="username">Username:</label> - <input type="text" id="username" name="username"> - </div> - <div class="form-field"> - <label for="password">Password:</label> - <input type="password" id="password" name="password"> - </div> - <div id="save-account-checkbox"> - <input type="checkbox" id="save-account" name="save" checked> - <label for="save-account">Save account info to disk (password will not be saved, only the login cookie)</label> - </div> - <div> - <input type="checkbox" id="use-tor" name="use_tor"> - <label for="use-tor">Use Tor when logging in (WARNING: This will lock your Google account under normal circumstances, see note below)</label> - </div> - <input type="submit" value="Add account" id="add-account-button"> - </form> - <div id="tor-note"><b>Note on using Tor to log in</b><br> -Using Tor to log in should only be done if the account was created using a proxy/VPN/Tor to begin with and hasn't been logged in using your IP. Otherwise, it's pointless since Google already knows who the account belongs to. When logging into a google account, it must be logged in using an IP address geographically close to the area where the account was created or where it is logged into regularly. If the account was created using an IP address in America and is logged into from an IP in Russia, Google will block the Russian IP from logging in, assume someone knows your password, lock the account, and make you change your password. If creating an account using Tor, you must remember the IP (or geographic region) it was created in, and only log in using that geographic region for the exit node. This can be accomplished by <a href="https://tor.stackexchange.com/questions/733/can-i-exit-from-a-specific-country-or-node">putting the desired IP in the torrc file</a> to force Tor to use that exit node. Using the login cookie to post comments through Tor is perfectly safe, however. - </div> -{% endblock main %} - diff --git a/youtube/templates/post_comment.html b/youtube/templates/post_comment.html deleted file mode 100644 index ba6a22c..0000000 --- a/youtube/templates/post_comment.html +++ /dev/null @@ -1,20 +0,0 @@ -{% set page_title = 'Post reply' if replying else 'Post comment' %} -{% extends "base.html" %} -{% import "comments.html" as comments %} - -{% block style %} - .comment-form{ - width: 640px; - margin: auto; - justify-content:start; - } - textarea{ - width: 460px; - height: 85px; - } -{% endblock style %} - -{% block main %} - {{ comments.comment_posting_box(comment_posting_box_info) }} -{% endblock %} - |