🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Wayback Machine - toolbar toggler

A way to toggle the WaybackMachine's toolbar

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Autor
Achernar
Dnevne instalacije
0
Ukupnih instalacija
481
Ocjene
4 0 0
Verzija
0.8
Stvoreno
22.04.2020.
Ažurirano
26.01.2025.
Size
4,84 KB
Licenza
N/A
Primjenjuje se

When browsing archived pages on archive.org, the site is meddling with the page margins and padding, and displaying its toolbar over the page. This toolbar, most of the time, hides parts of the header/menus of the page. The toolbar disappears when javascript is disabled for archive.org, but margins and padding values can become messiers, hiding parts of the original page. Also, many sites need javascript to be displayed properly. The toolbar can be closed by clicking the appropriate icon, but disappears forever (until reloading). And, once again, margins and padding keep their wrong values.

This userscript allows the user to set the toolbar in a "toggle" mode: always masked, and displayed when the mouse is moved over the top of the tab's viewport. Margins and padding are restored to the original values when the toolbar is put in this mode.

As a safeguard in case this script breaks a page (it shouldn't), the "toggle" mode is only activated when double-clicking an empty space in the toolbar (whitespace either on the right or on the left between the logo and the capture infos). Moving the mouse at the top of the page's viewport should display the toolbar. If it doesn't, it means that an element of the page, usually the header or a fixed element, is in front of the toolbar. Maintain both ctrl and alt keys down while moving the mouse (at the top). When the toolbar reappears, release the keys. It stays visible as long as the mouse is over it.

Once the toolbar is in "toggle" mode, you can click its "close" icon - if it is green - and the toolbar will disappear until you use the "ctrl and alt" trick. If the button is gray it means that the userscript won't be able to respawn it.

Screenshots

  • #1: a copy of my programming page without javascript. Transparency added to show hidden content due to modified margins.
  • #2: with javascript and the toolbar. Margins are still incorrect.
  • #3: the toolbar in "float" mode. The mouse moved over it to make it visible, the margins are finally correct.

For more userscripts, styles, extensions, tips, ..., visit my programming page.