Computer Purchase Info

Adds a paragraph about computer purchasing to the page

  1. // ==UserScript==
  2. // @name Computer Purchase Info
  3. // @namespace http://yourdomain.example.com/
  4. // @version 1.0
  5. // @description Adds a paragraph about computer purchasing to the page
  6. // @author Your Name
  7. // @match *://*/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. const container = document.createElement('div');
  15. container.innerHTML = `
  16. <h1>Making the Right Computer Purchase</h1>
  17. <p>
  18. Buying a computer requires careful thought about your needs and budget to ensure you choose the right device.
  19. Whether it's a laptop for studying, a gaming desktop, or a professional workstation, important features like processor
  20. power, memory, storage type, and graphics performance should be considered. It's also wise to compare different brands,
  21. read user reviews, and check for solid warranty and customer service options. With the right balance of performance and
  22. cost, you can select a computer that meets your requirements without going over budget.
  23. </p>
  24. `;
  25.  
  26. // Style it a bit (optional)
  27. container.style.padding = '20px';
  28. container.style.backgroundColor = '#f0f0f0';
  29. container.style.fontFamily = 'Arial, sans-serif';
  30.  
  31. // Insert into body
  32. document.body.prepend(container);
  33. })();