Skip to content

eagle19243/Wayback-Links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wayback Links

Development

To build, simply run the following commands:

  • npm install
  • gulp compile

Add Wayback Links To Your Webpages

Simply append the following lines to the <head> of your HTML source:

<link rel="stylesheet" type="text/css" href="http://rawgit.com/Eagle19243/Wayback-Links/master/build/css/wayback-links.min.css" />
<script type="text/javascript" src="http://rawgit.com/Eagle19243/Wayback-Links/master/build/js/wayback-links.min.js"></script>

WaybackLinks Menu

After adding the WaybackLinks javascript and css to your HTML file, a new link icon will appear next to all the decorated links in the page. Clicking the down arrow in this link icon will pop up a menu with one or more of the following items, depending on the decoration attributes provided in each of the links.

  • Get near link date ...: When clicking this menu item, the javascript library will use the datetime provided in the data-version-date attribute along with the original url and redirect you to the closest archived playback page.

  • Get from ...: Clicking this menu item will redirect you to the playback page url provided in the data-version-url attribute.

  • Get at current date: Clicking this menu item will take you to the original url provided in the data-original-url attribute.

  • Get near page creation date ...: This menu item is similar to the Get near link date ..., except it uses the Schema.org attribute date-published, if provided in the linking HTML page.

  • Get near page modified date ...: This menu item is similar to the Get near link date ..., except it uses the Schema.org attribute date-modified, if provided in the linking HTML page.

Exclude URLs from Wayback Links

You can exclude certain URLs in your webpage from showing the wayback links drop down menu by adding following script before appending wayback-links.min.js

Add urls that should be excluded from wayback links. Accepts full urls or valid regular expression patterns of urls.

<script>
var WLuriPatternsToExclude = [
    "https?://archive.org*",
    "https?://blog.archive.org*"
];
</script>

Example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published