make sure all external urls have rel="nofollow noopener noreferrer"

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-10 07:22:18 +02:00
parent e74108ae65
commit a20f5723bf
15 changed files with 34 additions and 34 deletions

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,7 @@ class OauthApp(Base):
@property @property
@lazy @lazy
def permalink(self): def permalink(self):
return f"/admin/app/{self.id}" return f"{SITE_FULL}/admin/app/{self.id}"
@lazy @lazy
def idlist(self, page=1): def idlist(self, page=1):

View File

@ -258,7 +258,7 @@
<img alt="/h/{{sub}} banner" onclick="expandDesktopImage()" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:min(42vh,30vw)!important"> <img alt="/h/{{sub}} banner" onclick="expandDesktopImage()" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:min(42vh,30vw)!important">
</a> </a>
{% elif SITE_NAME == 'rDrama' %} {% elif SITE_NAME == 'rDrama' %}
<a href="https://secure.transequality.org/site/Donation2?df_id=1480"> <a rel="nofollow noopener noreferrer" href="https://secure.transequality.org/site/Donation2?df_id=1480">
{% if v and (v.is_banned or v.agendaposter) %} {% if v and (v.is_banned or v.agendaposter) %}
<img alt="site banner" src="/i/{{SITE_NAME}}/banner2.webp?v=2000" width="100%"> <img alt="site banner" src="/i/{{SITE_NAME}}/banner2.webp?v=2000" width="100%">
{% else %} {% else %}

View File

@ -11,11 +11,11 @@
<tbody> <tbody>
<tr> <tr>
<td>Gumroad (subscription)</td> <td>Gumroad (subscription)</td>
<td><a href="{{GUMROAD_LINK}}">{{GUMROAD_LINK}}</a></td> <td><a rel="nofollow noopener noreferrer" href="{{GUMROAD_LINK}}">{{GUMROAD_LINK}}</a></td>
</tr> </tr>
<tr> <tr>
<td>Gumroad (one-time)</td> <td>Gumroad (one-time)</td>
<td><a href="https://kippy.gumroad.com/l/onetime">https://kippy.gumroad.com/l/onetime</a></td> <td><a rel="nofollow noopener noreferrer" href="https://kippy.gumroad.com/l/onetime">https://kippy.gumroad.com/l/onetime</a></td>
</tr> </tr>
<tr> <tr>
<td>Ethereum/Brave Attention Token</td> <td>Ethereum/Brave Attention Token</td>
@ -28,4 +28,4 @@
</tbody> </tbody>
</table> </table>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -11,7 +11,7 @@
<tbody> <tbody>
<tr> <tr>
<td>Kofi</td> <td>Kofi</td>
<td><a href="{{KOFI_LINK}}">{{KOFI_LINK}}</a></td> <td><a rel="nofollow noopener noreferrer" href="{{KOFI_LINK}}">{{KOFI_LINK}}</a></td>
</tr> </tr>
<tr> <tr>
<td>Ethereum/Brave Attention Token</td> <td>Ethereum/Brave Attention Token</td>
@ -28,4 +28,4 @@
</tbody> </tbody>
</table> </table>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -11,7 +11,7 @@
<tbody> <tbody>
<tr> <tr>
<td>Gumroad</td> <td>Gumroad</td>
<td><a href="{{GUMROAD_LINK}}">{{GUMROAD_LINK}}</a></td> <td><a rel="nofollow noopener noreferrer" href="{{GUMROAD_LINK}}">{{GUMROAD_LINK}}</a></td>
</tr> </tr>
<tr> <tr>
<td>Ethereum/Brave Attention Token</td> <td>Ethereum/Brave Attention Token</td>
@ -27,13 +27,13 @@
</tr> </tr>
<tr> <tr>
<td>NFTs</td> <td>NFTs</td>
<td><a href="https://opensea.io/collection/marsey">https://opensea.io/collection/marsey</a></td> <td><a rel="nofollow noopener noreferrer" href="https://opensea.io/collection/marsey">https://opensea.io/collection/marsey</a></td>
</tr> </tr>
<tr> <tr>
<td>Merch</td> <td>Merch</td>
<td><a href="https://redbubble.com/people/rdramanet/explore?sortOrder=top%20selling">https://redbubble.com/people/rdramanet/explore?sortOrder=top%20selling</a></td> <td><a rel="nofollow noopener noreferrer" href="https://redbubble.com/people/rdramanet/explore?sortOrder=top%20selling">https://redbubble.com/people/rdramanet/explore?sortOrder=top%20selling</a></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -87,7 +87,7 @@
</head> </head>
<body id="error-502"> <body id="error-502">
<a href="https://secure.transequality.org/site/Donation2?df_id=1480"> <a rel="nofollow noopener noreferrer" href="https://secure.transequality.org/site/Donation2?df_id=1480">
<img alt="site banner" src="/i/rDrama/cached.webp?v=3009" width="100%" /> <img alt="site banner" src="/i/rDrama/cached.webp?v=3009" width="100%" />
</a> </a>
@ -138,4 +138,4 @@
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -521,7 +521,7 @@ line breaks
This is a &lt;a href='https://www.w3schools.com/tags/tag_a.asp'&gt;link&lt;/a&gt; This is a &lt;a href='https://www.w3schools.com/tags/tag_a.asp'&gt;link&lt;/a&gt;
</td> </td>
<td> <td>
This is a <a href='https://www.w3schools.com/tags/tag_a.asp'>link</a> This is a <a rel="nofollow noopener noreferrer" href='https://www.w3schools.com/tags/tag_a.asp'>link</a>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@ -253,8 +253,8 @@
<a class="dropdown-item" rel="nofollow noopener noreferrer" href="https://rdrama.net/post/18459"><i class="fas fa-bug fa-fw mr-3"></i>Bugs/Suggestions</a> <a class="dropdown-item" rel="nofollow noopener noreferrer" href="https://rdrama.net/post/18459"><i class="fas fa-bug fa-fw mr-3"></i>Bugs/Suggestions</a>
{% if SITE_NAME == 'rDrama' %} {% if SITE_NAME == 'rDrama' %}
<a class="dropdown-item" href="https://t.me/rdramanet"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Channel</a> <a rel="nofollow noopener noreferrer" class="dropdown-item" href="https://t.me/rdramanet"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Channel</a>
<a class="dropdown-item" href="https://t.me/+tOgq7xeeir83OTU0"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Chat</a> <a rel="nofollow noopener noreferrer" class="dropdown-item" href="https://t.me/+tOgq7xeeir83OTU0"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Chat</a>
<a class="dropdown-item" href="/discord"><i class="fab fa-discord fa-fw mr-3"></i>Discord</a> <a class="dropdown-item" href="/discord"><i class="fab fa-discord fa-fw mr-3"></i>Discord</a>
{% endif %} {% endif %}
@ -319,8 +319,8 @@
<a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="https://rdrama.net/post/18459"><i class="fas fa-bug fa-fw mr-3"></i>Bugs/Suggestions</a> <a class="nav-item nav-link" rel="nofollow noopener noreferrer" href="https://rdrama.net/post/18459"><i class="fas fa-bug fa-fw mr-3"></i>Bugs/Suggestions</a>
{% if SITE_NAME == 'rDrama' %} {% if SITE_NAME == 'rDrama' %}
<a class="nav-item nav-link" href="https://t.me/rdramanet"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Channel</a> <a rel="nofollow noopener noreferrer" class="nav-item nav-link" href="https://t.me/rdramanet"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Channel</a>
<a class="nav-item nav-link" href="https://t.me/+tOgq7xeeir83OTU0"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Chat</a> <a rel="nofollow noopener noreferrer" class="nav-item nav-link" href="https://t.me/+tOgq7xeeir83OTU0"><i class="fab fa-telegram fa-fw mr-3"></i>Telegram Chat</a>
<a class="nav-item nav-link" href="/discord"><i class="fab fa-discord fa-fw mr-3"></i>Discord</a> <a class="nav-item nav-link" href="/discord"><i class="fab fa-discord fa-fw mr-3"></i>Discord</a>
{% endif %} {% endif %}

View File

@ -204,7 +204,7 @@
</style> </style>
<div id="mobile-prompt-container" class="fixed-top"> <div id="mobile-prompt-container" class="fixed-top">
<div id="mobile-prompt" href="javascript:void(0)" data-bs-toggle="tooltip" data-bs-container="#mobile-prompt-container" data-bs-placement="top" data-bs-trigger="click" data-bs-html="true" title="<i class='beg-icon fas fa-x'></i>Install the {{SITE_NAME}} webapp by saving this page to your home screen!"></div> <div id="mobile-prompt" data-bs-toggle="tooltip" data-bs-container="#mobile-prompt-container" data-bs-placement="top" data-bs-trigger="click" data-bs-html="true" title="<i class='beg-icon fas fa-x'></i>Install the {{SITE_NAME}} webapp by saving this page to your home screen!"></div>
</div> </div>
<script> <script>

View File

@ -29,6 +29,6 @@ set JOURNOID_BANNERS = [
-%} -%}
{% set journoid = JOURNOID_BANNERS|random %} {% set journoid = JOURNOID_BANNERS|random %}
<a id="srd-link" href="{{ journoid[1] }}">{{ journoid[0] }}</a> <a rel="nofollow noopener noreferrer" id="srd-link" href="{{journoid[1]}}">{{ journoid[0] }}</a>
<span id="srd-separator">&mdash;</span> <span id="srd-separator">&mdash;</span>
<a id="srd-discuss" href="{{ journoid[2] }}">(discuss)</a> <a id="srd-discuss" href="{{journoid[2]}}">(discuss)</a>

View File

@ -60,9 +60,9 @@
{% if FEATURES['PROCOINS'] %} {% if FEATURES['PROCOINS'] %}
<span class="text-small text-muted pl-1">Must be same email as the one you used to donate on <span class="text-small text-muted pl-1">Must be same email as the one you used to donate on
{% if KOFI_TOKEN %} {% if KOFI_TOKEN %}
<a class="text-primary" href="{{KOFI_LINK}}">Kofi</a> <a rel="nofollow noopener noreferrer" class="text-primary" href="{{KOFI_LINK}}">Kofi</a>
{% else %} {% else %}
<a class="text-primary" href="{{GUMROAD_LINK}}">Gumroad</a> <a rel="nofollow noopener noreferrer" class="text-primary" href="{{GUMROAD_LINK}}">Gumroad</a>
{% endif %} {% endif %}
</span> </span>
{% endif %} {% endif %}
@ -275,4 +275,4 @@
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -29,11 +29,11 @@
<a class="btn btn-primary btn-block" href="/post/4103">BUGS/SUGGESTIONS MEGATHREAD</a> <a class="btn btn-primary btn-block" href="/post/4103">BUGS/SUGGESTIONS MEGATHREAD</a>
<a class="btn btn-primary btn-block" href="/post/9694" >OFFICIAL CONSPIRACY THEORY THREAD</a> <a class="btn btn-primary btn-block" href="/post/9694" >OFFICIAL CONSPIRACY THEORY THREAD</a>
<a class="btn btn-primary btn-block" href="/post/10415">OFFICIAL GAMBLING THREAD</a> <a class="btn btn-primary btn-block" href="/post/10415">OFFICIAL GAMBLING THREAD</a>
<a class="btn btn-primary btn-block" href="https://imgur.com/a/UFGJybS">PCM Watermark Collection</a> <a rel="nofollow noopener noreferrer" class="btn btn-primary btn-block" href="https://imgur.com/a/UFGJybS">PCM Watermark Collection</a>
<a class="btn btn-primary btn-block" href="https://imgur.com/a/HxBfECG">TRS</a> <a rel="nofollow noopener noreferrer" class="btn btn-primary btn-block" href="https://imgur.com/a/HxBfECG">TRS</a>
<a class="btn btn-primary btn-block" href="https://imgur.com/a/Wkw11eX">Current RV Cutouts</a> <a rel="nofollow noopener noreferrer" class="btn btn-primary btn-block" href="https://imgur.com/a/Wkw11eX">Current RV Cutouts</a>
<a class="btn btn-primary btn-block" href="https://imgur.com/a/B3XHKnD">PCM Shitposter Cutouts (1/?)</a> <a rel="nofollow noopener noreferrer" class="btn btn-primary btn-block" href="https://imgur.com/a/B3XHKnD">PCM Shitposter Cutouts (1/?)</a>
<a class="btn btn-primary btn-block" href="https://imgur.com/a/2wDZddF">PCM Shitposter Cutouts (2/?)</a> <a rel="nofollow noopener noreferrer" class="btn btn-primary btn-block" href="https://imgur.com/a/2wDZddF">PCM Shitposter Cutouts (2/?)</a>
<p class="mt-4"> Rules: No doxing, No CP or other clearly illegal shit. Thanks.</p> <p class="mt-4"> Rules: No doxing, No CP or other clearly illegal shit. Thanks.</p>
<p class="mt-4"> This website has nothing to do with Political Compass Memes.</p> <p class="mt-4"> This website has nothing to do with Political Compass Memes.</p>
@ -48,4 +48,4 @@
<img class="mb-4" alt="sidebar image" onclick="expandDesktopImage()" loading="lazy" src="{{image}}" width=100%> <img class="mb-4" alt="sidebar image" onclick="expandDesktopImage()" loading="lazy" src="{{image}}" width=100%>
</a> </a>
{% endif %} {% endif %}
</div> </div>

View File

@ -297,7 +297,7 @@
<div class="container-fluid pb-0 text-center bg-white d-md-none" style="margin-top:-6px;border-radius:0!important;"> <div class="container-fluid pb-0 text-center bg-white d-md-none" style="margin-top:-6px;border-radius:0!important;">
<div class="row"> <div class="row">
<div class="col px-0"> <div class="col px-0">
<a href="{{u.banner_url}}"> <a rel="nofollow noopener noreferrer" href="{{u.banner_url}}">
<img alt="@{{u.username}}'s banner" onclick="expandDesktopImage()" loading="lazy" src="{{u.banner_url}}" width=100% style="object-fit:cover;max-height:30vh!important"> <img alt="@{{u.username}}'s banner" onclick="expandDesktopImage()" loading="lazy" src="{{u.banner_url}}" width=100% style="object-fit:cover;max-height:30vh!important">
</a> </a>
</div> </div>

View File

@ -23,10 +23,10 @@
{% macro userAdminToolsUpper(deviceType) %} {% macro userAdminToolsUpper(deviceType) %}
{% if v and v.id != u.id and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %} {% if v and v.id != u.id and v.admin_level >= PERMS['USER_MODERATION_TOOLS_VISIBLE'] %}
{% if v.admin_level >= PERMS['ADMIN_ADD'] and SITE != 'rdrama.net' %} {% if v.admin_level >= PERMS['ADMIN_ADD'] and SITE != 'rdrama.net' %}
<a id="add-admin-{{deviceType}}" class="{% if u.admin_level >= PERMS['ADMIN_ADD_PERM_LEVEL'] %}d-none{% endif %} btn btn-primary" href="javascript:void(0)" onclick="post_toast(this,'/@{{u.username}}/make_admin','add-admin-{{deviceType}}','remove-admin-{{deviceType}}','d-none')">Make admin</a> <a id="add-admin-{{deviceType}}" class="{% if u.admin_level >= PERMS['ADMIN_ADD_PERM_LEVEL'] %}d-none{% endif %} btn btn-primary" onclick="post_toast(this,'/@{{u.username}}/make_admin','add-admin-{{deviceType}}','remove-admin-{{deviceType}}','d-none')">Make admin</a>
{% endif %} {% endif %}
{% if v.admin_level >= PERMS['ADMIN_REMOVE'] %} {% if v.admin_level >= PERMS['ADMIN_REMOVE'] %}
<a id="remove-admin-{{deviceType}}" class="{% if u.admin_level < 1 %}d-none{% endif %} btn btn-danger" href="javascript:void(0)" onclick="post_toast(this,'/@{{u.username}}/remove_admin','add-admin-{{deviceType}}','remove-admin-{{deviceType}}','d-none')">Remove admin</a> <a id="remove-admin-{{deviceType}}" class="{% if u.admin_level < 1 %}d-none{% endif %} btn btn-danger" onclick="post_toast(this,'/@{{u.username}}/remove_admin','add-admin-{{deviceType}}','remove-admin-{{deviceType}}','d-none')">Remove admin</a>
{% endif %} {% endif %}
{% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] and u.admin_level %} {% if v.admin_level >= PERMS['ADMIN_ACTIONS_REVERT'] and u.admin_level %}
<a class="btn btn-danger" role="button" data-click="post_toast(this,'/@{{u.username}}/revert_actions')" onclick="areyousure(this)">Revert admin actions</a> <a class="btn btn-danger" role="button" data-click="post_toast(this,'/@{{u.username}}/revert_actions')" onclick="areyousure(this)">Revert admin actions</a>