Update discordapp.com to discord.com

Closes #99
This commit is contained in:
chylex 2020-05-06 13:08:41 +02:00
parent 123d41b793
commit 678bd358ba
4 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Welcome
All you need to **use Discord History Tracker** is either an up-to-date browser, or the [Discord desktop client](https://discordapp.com/download). Visit the [official website](https://dht.chylex.com) for instructions.
All you need to **use Discord History Tracker** is either an up-to-date browser, or the [Discord desktop client](https://discord.com/download). Visit the [official website](https://dht.chylex.com) for instructions.
To **report an issue or suggestion**, first please see the [issues](https://github.com/chylex/Discord-History-Tracker/issues) page and make sure someone else hasn't already created a similar issue report. If you do find an existing issue, comment on it or add a reaction. Otherwise, either click [New Issue](https://github.com/chylex/Discord-History-Tracker/issues/new), or contact me via email [contact@chylex.com](mailto:contact@chylex.com) or Twitter [@chylexmc](https://twitter.com/chylexmc).

View File

@ -5,7 +5,7 @@
// @namespace https://chylex.com
// @homepageURL https://dht.chylex.com/
// @supportURL https://github.com/chylex/Discord-History-Tracker/issues
// @include https://discordapp.com/*
// @include https://discord.com/*
// @run-at document-idle
// @grant none
// ==/UserScript==
@ -31,7 +31,7 @@ window.setInterval(function(){
return;
}
const help = document.querySelector("section[class^='title'] a[href*='support.discordapp.com']");
const help = document.querySelector("section[class^='title'] a[href*='support.discord.com']");
if (help){
help.insertAdjacentHTML("afterend", `

View File

@ -1,4 +1,4 @@
if (!window.location.href.includes("discordapp.com/")){
if (!window.location.href.includes("discord.com/")){
if (!confirm("Could not detect Discord in the URL, do you want to run the script anyway?")){
return;
}

View File

@ -35,7 +35,7 @@
</ul>
</li>
<li>Click <a href="build/track.user.js">Install Userscript</a> to prompt an installation into the userscript manager</li>
<li>Open <a href="https://discordapp.com/channels/@me" rel="noreferrer">Discord</a>, and view any server, group, or private conversation (it will not appear in Friends list)</li>
<li>Open <a href="https://discord.com/channels/@me" rel="noreferrer">Discord</a>, and view any server, group, or private conversation (it will not appear in Friends list)</li>
<li>Click <strong>DHT</strong> in the top right corner:<br><img src="img/button.png" class="bordered"></li>
</ol>
</div>
@ -62,7 +62,7 @@
<ol>
<li>Right-click <a href="<?php include "./build/track.html"; ?>" onclick="return false;" onauxclick="return false;">Discord History Tracker</a></li>
<li>Select &laquo;Bookmark This Link&raquo; and save the bookmark</li>
<li>Open <a href="https://discordapp.com/channels/@me" rel="noreferrer">Discord</a> and click the bookmark to run the script</li>
<li>Open <a href="https://discord.com/channels/@me" rel="noreferrer">Discord</a> and click the bookmark to run the script</li>
</ol>
</div>