Skip to content

Releases: FerNikoMF/Green-Steam

Improve script structure, readability,

21 May 18:46
7b28d0c
Compare
Choose a tag to compare

Change Log

v1.1.2

  • Replaced traditional function expressions with arrow functions for better readability and conciseness.
  • Added checks to ensure DOM elements exist before interacting with them to prevent potential errors.
  • Modularized the code by dividing it into well-named functions for better organization and maintainability.
  • Used 'const' and 'let' instead of 'var' to adhere to modern JavaScript best practices.
  • Improved CSS style string readability by using template literals.
  • Encapsulated the code within an Immediately Invoked Function Expression (IIFE) to minimize global scope pollution.
  • Updated textToSlug function to remove special characters such as apostrophes and colons.
  • Added isRomanNumeral function to detect Roman numerals.
  • Added the ability to convert Roman numbers to Arabic numbers for the correct formation of links.
  • This commit implements a feature to convert Roman numerals to Arabic numbers in game titles. This ensures that the generated links are correctly formatted, improving the functionality of the script.