ITEYE blog viewer

Show the hidden part on ITEYE blog pages

  1. // ==UserScript==
  2. // @name ITEYE blog viewer
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Show the hidden part on ITEYE blog pages
  6. // @author Rive Chen, GPT-4
  7. // @match https://www.iteye.com/blog/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Function to change style
  16. function changeStyle() {
  17. var blogContent = document.getElementById('blog_content');
  18. if (blogContent) {
  19. // Modify the style here
  20. blogContent.style.height = 'auto';
  21. blogContent.style.overflow = 'visible';
  22. }
  23. }
  24.  
  25. // Function to remove the specified div
  26. function removeDiv() {
  27. var divToRemove = document.querySelector('.hide-article-box');
  28. if (divToRemove) {
  29. divToRemove.parentNode.removeChild(divToRemove);
  30. }
  31. }
  32.  
  33. // Wait for the DOM to be fully loaded
  34. window.addEventListener('load', function() {
  35. changeStyle();
  36. removeDiv();
  37. });
  38. })();