Nitorita

pixiv strip

Sep 2nd, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. /* global $, jQuery */
  2. // ==UserScript==
  3. // @name pixiv Strip
  4. // @author Alice
  5. // @description Strips pixiv stuff
  6. // @include *pixiv.net*
  7. // @require http://code.jquery.com/jquery-3.3.1.min.js
  8. // @version 1.1
  9. // ==/UserScript==
  10. //-----------------------------------------------------------
  11. this.$ = this.jQuery = jQuery.noConflict(true); // Avoid duplicate jQuery conflict
  12. $(function() {
  13. //-----------------------------------------------------------
  14. $("<style type='text/css'>div.lmABtt { display: none; }</style>").appendTo("head"); // Recommended
  15. $("<style type='text/css'>div._2Fwd5oy { display: none; }</style>").appendTo("head"); // Recommended
  16.  
  17. $("<style type='text/css'>section.dXLmdt { display: none; }</style>").appendTo("head"); // Comments
  18. $("<style type='text/css'>section.glggnQ { display: none; }</style>").appendTo("head"); // Comments
  19.  
  20. //$("<style type='text/css'>div.SrVfh { display: none; }</style>").appendTo("head"); // Related Works
  21. $("<style type='text/css'>aside:nth-child(4) { display: none !important; }</style>").appendTo("head"); // Related Works
  22.  
  23. $("<style type='text/css'>div._26Axzt9 { display: none; }</style>").appendTo("head"); // Tag list
  24. $("<style type='text/css'>footer.iCdqZP { display: none; }</style>").appendTo("head"); // Tag list
  25.  
  26. // Jacqli document.querySelector('body > div:nth-child(5)').style.display = "none"
  27. //-----------------------------------------------------------
  28. });
Add Comment
Please, Sign In to add comment