Greasy Fork

xkcd buttons Alt+Transcript+Explainxkcd

add btns to view transcript and alt and explainxkcd

目前为 2014-12-13 提交的版本。查看 最新版本

作者
SammaySarkar
评分
0 0 0
版本
1.6
创建于
2014-12-13
更新于
2014-12-13
大小
5.6 KB
许可证
暂无
适用于
Applies to xkcd comic pages.

Adds a row of zero to three buttons below the second set of navigation controls.

1. An alttext button to display the alttext below the comic image.
        This button's accesskey is L (so Shift+Alt+L triggers this button in Firefox)
        This button is invisible when the comic has no alttext.
2. A Transcript button to display the transcript.
        This button's accesskey is T (so Shift+Alt+T triggers this button in Firefox)
        This button is invisible when the comic has no transcript.
3. An Explain button to open explainxkcd at the current comic number.
        This button's accesskey is X (so Shift+Alt+X triggers this button in Firefox)
        This button can be turned off.

Some options can be toggled in the script JS.
(Choose to edit this script, then see the code inside the /* USER SETTINGS */ comments at the top)

The options are:
        Display alttext automatically,
        Display transcript automatically,
        Hide the EXPLAIN button,
        Open explainxkcd page in new tab by default,
        Move transcript near the comic (above the 2nd set of navigation buttons)

Oh, and the buttons have the same style as xkcd's own navigation buttons.