r34.app premium

Enable "premium" features on r34.app

  1. // ==UserScript==
  2. // @name r34.app premium
  3. // @match https://r34.app/*
  4. // @grant none
  5. // @version 1.0
  6. // @description Enable "premium" features on r34.app
  7. // @license MIT
  8. // @namespace https://greasyfork.org/users/2810
  9. // ==/UserScript==
  10.  
  11. window.addEventListener('load', () => {
  12. const appRoot = document.getElementById('__nuxt');
  13. new MutationObserver((mutations, observer) => {
  14. for (const mutation of mutations) {
  15. if (!mutation.attributeName) return;
  16. if (mutation.attributeName === 'data-v-app') {
  17. observer.disconnect();
  18. appRoot.__vue_app__.config.globalProperties.$auth.$state = {
  19. 'loggedIn': true,
  20. 'user': { 'is_subscription_valid': true }
  21. };
  22. }
  23. }
  24. }).observe(appRoot, { 'attributes': true });
  25. });