Deviant_Art_Age_Bypass.user.js 1.2 KB

123456789101112131415161718192021222324252627282930
  1. // ==UserScript==
  2. // @name Deviant Art Age Bypass
  3. // @namespace Zera's Deviant Art Age bypasser
  4. // @include *deviantart.com*
  5. // @version 1
  6. // @grant none
  7. // ==/UserScript==
  8. console.log('https://corsproxy.io/?https://backend.deviantart.com/oembed?url='+window.location.href)
  9. console.log("Hello")
  10. fetch('https://corsproxy.io/?https://backend.deviantart.com/oembed?url='+window.location.href)
  11. .then(function(response) {
  12. return response.json();
  13. })
  14. .then(function(jsonResponse) {
  15. console.log(jsonResponse)
  16. date = new Date(jsonResponse.pubdate)
  17. stats = jsonResponse.community.statistics["_attributes"]
  18. document.getElementById("root").innerHTML =
  19. `<h1>${jsonResponse.title}</h1>
  20. <a href="${jsonResponse.author_url}">By: ${jsonResponse.author_name}</a>
  21. <h2>Created on: ${date.toLocaleString('default', { month: 'long'})}, ${date.getDate()}, ${date.getFullYear()}</h2>
  22. <h2>${stats.views} ${String.fromCodePoint(0x1F440)}, ${stats.favorites} ${String.fromCodePoint(0x2665)}, ${stats.comments} ${String.fromCodePoint(0x1F4AC)}, ${stats.downloads} ${String.fromCodePoint(0x2B07)}</h2>
  23. <h2>${jsonResponse.tags}</h2>
  24. <br>
  25. <img src="${jsonResponse.url}">
  26. `;
  27. //document.getElementById("root").innerHTML = html
  28. });