SteamGifts: Look for Similar

Adds buttons to search for similar giveaways and removes redirect from existing links.

بۇلار بۇ قوليازمىنىڭ كود يېڭىلانغان نەشرىلىرى. بارلىق نەشرىنى كۆرسىتىش

  • v4.3 2020-09-18 And a bit more cleanup.
  • v4.2 2020-09-18 And code beautifier pass.
  • v4.1 2020-09-18 A bit more refactoring. Previous revision consists of refactoring and added feature of redirect remover.
  • v4.0 2020-09-18
  • v3.7 2016-12-09 Removed "app=" from detector of native LFS button to make it work for "sub=" and others as well.
  • v3.6 2016-11-28 Missed case when LFS button were shown inside of a giveaway.
  • v3.5 2016-11-28 Updated code to support native LFS link. Also, added option "Local" in the "Won" list to check if won a second copy by mistake.
  • v3.4 2016-10-16 Compatibility fix for https://greasyfork.org/scripts/23859-sg-entered-giveaway-page/
  • v3.3 2016-09-29 Added support for steamcommunity links in RaCharts as well.
  • v3.2 2016-09-29 +nowrap, to make sure menu text won't wrap.
  • v3.1 2016-09-29 Replaced width for menu with min-width, added min-width to menu items.
  • v3.0 2016-09-29 Rewritten big portion of the script. Now LFS button won't "explode" in width on hover and will display drop-down menu instead. Added support for LFS links for RACharts (example: https://www.steamgifts.com/discussion/F7fgE/bundle-stars-gamepedia-anniversary-bundle )
  • v2.1 2016-04-26 Removed 1 debug line and cleaned up the rest a bit.
  • v2.0 2016-04-26 Added support for search options. Now it's possible to choose search location from a list.
  • v1.7 2016-04-13 Forgot about 'https' protocol in the @match section and as the result script stopped to work when site moved to https.
  • v1.6 2016-03-11 It looks pointless to search for similar titles on the "Won" page, but it could be useful to search for the same giveaways in the "Entered"section to remove them if they are active.
  • v1.5 2016-03-10 Better SG++ compatibility and fix for search results in the new giveaway drop-down list (not sure if it's useful there, though).
  • v1.4 2016-03-06 Fixed link detector in appendLFSLink function.
  • v1.3 2016-03-06 Fixed case when search yielded no results for the long titles due to the ellipsis in the end.
  • v1.2 2016-03-06 Removed default parameter trick from one more place to avoid compatibility issues. Modified links to work without click handler for middle-click support (maybe implement middleclick handler?)
  • v1.1 2016-03-05 If header is a link then only /giveaway/ links have to be parsed. Also, there are edge cases when header is not a link, but contains one (like on giveaway winners page).
  • v1.0 2016-03-05 Restored A element and generation of HREF value for that element removed in a previous commit - were useful in my "Open in pop-in" script.
  • v0.9 2016-03-05 Made LFM script a bit more generic. It should also work with SGPP now and shouldn't fail in browsers without function default value support (some Mac versions of popular browsers).
  • v0.8 2016-03-02 Enabled LFS button on search pages because manual search may return different results and LFS button could be used to refine them. Also entered/created/won giveaways pages are using search to load next pages.
  • v0.7 2016-03-02 Added LFS button to featured giveaways (useful to search for similar giveaways from a giveaway page);
  • v0.6 2016-03-02 Made LFS button generic. Now it should also work on created, entered and won lists. Restricted list of pages where script should work to avoid adding LFS buttons on forum and trades.
  • v0.5 2016-02-23
  • v0.4 2016-02-23 Oops! Forgot to remove console.log from code. -_-
  • v0.3 2016-02-17 Added support for dynamically added giveaway blocks (autopaging in various SG extensions), search link shouldn't appear on the invite-only giveaways.
  • v0.2 2016-02-17 Removed two class names, copied over from the other button.
  • v0.1 2016-02-17