index.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php require_once "../elements/header.php" ?>
  2. <?php require_once "../utilities/link.php" ?>
  3. <h1><?= $config["title"] ?></h1>
  4. <p>
  5. <?= $config["title"] ?> is a simple alternative front-end for <a href="https://bandcamp.com/">Bandcamp</a>.
  6. <br>
  7. It is free and open source software, with its code available on <a href="https://forgejo.sny.sh/sun/Tent">Forgejo</a>.
  8. <br>
  9. It was inspired by <a href="https://invidious.io/">Invidious</a>, <a href="https://nitter.net/">Nitter</a> and the like.
  10. </p>
  11. <h2>How do I get started?</h2>
  12. <p>Use the search bar at the top to find what you're looking for.</p>
  13. <h2>Why would I use this?</h2>
  14. <p>You might prefer it over the official Bandcamp website if you want to</p>
  15. <ul>
  16. <li>browse Bandcamp without enabling JavaScript,</li>
  17. <li>escape Bandcamp's analytics or</li>
  18. <li>use a more lightweight website.</li>
  19. </ul>
  20. <h2>Why would I not use this?</h2>
  21. <p>The official website may be preferable if you want to</p>
  22. <ul>
  23. <li>support the artists you listen to,</li>
  24. <li>purchase releases or merchandise or</li>
  25. <li>manage your account or collection.</li>
  26. </ul>
  27. <h2>How do I set up redirection?</h2>
  28. <p>
  29. The easiest way to automatically redirect Bandcamp to <?= $config["title"] ?> is to use <a href="https://libredirect.github.io/">LibRedirect</a>.
  30. <br>
  31. You can also use a generic redirection extension, in which case you need to create the following rules:
  32. </p>
  33. <ul>
  34. <?php
  35. $rules = [
  36. "https://$1.bandcamp.com/",
  37. "https://$1.bandcamp.com/$2/$3",
  38. "https://bandcamp.com/search?q=$1",
  39. "https://f4.bcbits.com/img/$1",
  40. "https://t4.bcbits.com/stream/$1/$2/$3?token=$4"
  41. ];
  42. foreach ($rules as $rule) {
  43. echo "<li>";
  44. echo "<code>" . $rule . "</code>";
  45. echo " → ";
  46. echo "<code>" . urldecode(convert_link($rule)) . "</code>";
  47. echo "</li>";
  48. };
  49. ?>
  50. </ul>
  51. <?php require_once "../elements/footer.php" ?>