xkcd Tweaks

Some tweaks to xkcd.com and what-if.xkcd.com

目前为 2016-08-10 提交的版本。查看 最新版本

作者
MitalAshok
评分
0 0 0
版本
1.0.0
创建于
2016-08-10
更新于
2016-08-10
大小
12.2 KB
许可证
http://creativecommons.org/licenses/by-sa/4.0/
适用于

xkcd Tweaks is a script that changes some little things that annoyed me. Made in an afternoon. Thought I would share.

Tested and works perfectly with Firefox 48.0* Mostly tested and probably works fine with Chrome 52.0* (Nothing else tested) *Latest as of 2016-08-10

xkcd.com Tweaks

  • Added a hr (horizontal rule) above and below comic (Disable with hr = false)
  • Added the title text below comic and removed from hovering over comic (Disable with titleText = false)
  • Removed Next > and >| when on latest comic (as they don't do anything anyways)
  • Removed < Prev and |< when on first comic (likewise)
  • Made scrolling snap to the top of the comic (below info bar) after half a second. It doesn't work well in Chrome. Enable with snap = true. (Default false)
  • Added some keyboard shortcuts.
    • (Left arrow) and p go to the previous comic.
    • (Right arrow) and n go to the next comic.
    • r goes to a random comic.

what-if.xkcd.com Tweaks

  • If you are on 'whatif.xkcd.com', you are redirected to 'what_-_if.xkcd.com'.
  • Added a semi-transparant 2 pixel grey border around images (Disable with border = false)
  • Added the title text below images and removed from hovering over comic (Disable with titleText = false)
  • Added a First button on all but the first article (where it would go nowhere) that links to the first article.
  • Likewise for Last.
  • Added a Random button that goes to a random article.
  • Added some keyboard shortcuts.
    • (Left arrow) and p go to the previous article.
    • (Right arrow) and n go to the next article.
    • r goes to a random article.

If you are having issues, start a discussion here (GreasyFork).

Creative Commons Licence
xkcd Tweaks by Mital Ashok is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Icon image, xkcd and What If? by Randall P. Munroe are used under CC BY-NC 2.5 / Icon reencoded as .png base 64 data URI (data:image/png;base64,...).