index.php 1.8 KB

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