User:R0o0di/common.js

From Detective Conan Wiki
< User:R0o0di
Revision as of 21:15, 11 April 2025 by R0o0di (talk | contribs)

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
const numWords = $( '#mw-content-text > div' ).text().split( ' ' ).length;
const headerWords = $( 'h1' ).text().split( ' ' ).length;
const totalWords = numWords + headerWords;
const timeInMinutes = totalWords / 200;
const header = $( 'h1' ).text();
$( 'h1' ).text( header + ' (it will take you ' + timeInMinutes + ' minutes to read this page)' );