tomvangoethem / tibia.com-extension

User script that enhances the character info pages on Tibia.com.

Home Page:https://github.com/mathiasbynens/tibia.com-extension#installation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

“Enhance Tibia.com” browser extension

This browser extension improves the user experience on Tibia.com.

Tibia is a MMORPG I used to play a decade ago, so this script isn’t really that useful for me anymore (although I hope it is for others). This project started mostly as an excuse to learn how to scrape sites using PhantomJS (see tools/scrape.js).

Installation

Features

The extension does a couple of things all around the website:

  • It skips the annoying intro page on Tibia.com.
  • It shows permanent links for news entries and individual forum posts.
  • It ensures internal links use HTTPS (i.e. https://www.tibia.com/…) rather than HTTP (i.e. http://www.tibia.com/…) wherever possible. The Tibia website now does this already, so the extension no longer needs to! 🎉
  • On guild info pages (example), it makes any guild’s guildhall name clickable without introducing additional XHR requests.
  • On house or guildhall detail pages, it makes sure the URL displayed in the address bar is always a permalink to the building you’re currently viewing, so that you can always easily copy-paste a permalink to the active page.
  • On character bazaar auction detail pages, it simplifies and canonicalizes the URL displayed in the address bar.
  • On character bazaar pages, it displays a tooltip showing the cost in EUR when hovering over Tibia Coin prices based on the cheapest store offerings.

The extension enhances character info pages (example) as follows:

  • It adds links to the character’s PvP history, online time, and experience history as shown on third-party websites.
  • It puts the focus on the first link in the character details table, so it’s easier to move to the other relevant links using keyboard navigation.
  • Any character names that are currently online on the same world according to the “Players Online” page are highlighted. Also, the level and vocation cells are updated and highlighted if they changed since the character’s last login.
  • It makes the character name easily selectable for copy-pasting — just click once on the character name to select it.
  • It makes the world name clickable — it points to the “who’s online?” list for that particular game world.
  • It makes house names clickable without introducing additional XHR requests (unlike other, similar extensions). All house IDs are hardcoded into the extension. The link points to the detail page of the house in question.
  • It makes sure the URL displayed in the address bar is always a permalink to the character profile you’re currently viewing, so that you can always easily copy-paste a permalink to the active profile page. (When entering a character name on the website, it performs a POST request and the character name isn’t part of the URL. The extension fixes that too.)
  • It works around CipSoft’s overly aggressing caching on e.g. character detail pages, effectively “fixing” F5 behavior on those pages. (Without the extension, refreshing the page still sometimes results in an outdated response.)

About

User script that enhances the character info pages on Tibia.com.

https://github.com/mathiasbynens/tibia.com-extension#installation

License:MIT License


Languages

Language:HTML 77.9%Language:JavaScript 21.8%Language:CSS 0.3%