AO3 Hide Author's Notes

Hides all author's notes on AO3 works.

目前为 2019-08-25 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name AO3 Hide Author's Notes
  3. // @namespace ao3-remove-authors-notes
  4. // @version 1.0
  5. // @description Hides all author's notes on AO3 works.
  6. // @author yuube
  7. // @match http*://*.archiveofourown.org/works/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. // Remove work author note.
  12. var preface = document.querySelector('#workskin .preface');
  13. preface.querySelector('.notes .userstuff').style.display = 'none';
  14.  
  15. // Remove chapter notes.
  16. var chapters = document.querySelector('#chapters');
  17.  
  18. chapters.querySelectorAll('.notes').forEach(function (note) {
  19. note.style.display = 'none';
  20. });