Skip to content

Archive.is and more updates #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
e45f816
updated version number; zipped for chrome store
Dbz Nov 21, 2014
86498e8
fixed bug for first time users
Dbz Nov 23, 2014
7fe4426
updated version number; zipped
Dbz Nov 23, 2014
3c58cc9
added chrome zip
Dbz Nov 23, 2014
14f6391
fixed bug where button didn't work for new users
Dbz Dec 13, 2015
a32fbde
Updated chrome store zip after rewriting git history to remove large …
Dbz Dec 13, 2015
2c220be
added basic privacy policy
Dbz Apr 21, 2016
dffc772
Started on new options page
Dbz Dec 3, 2016
416ddd2
Added more html/css and fixed issues
Dbz Dec 5, 2016
4ad3e31
Added more styling
Dbz Dec 6, 2016
787f4b6
Fixed spacing
Dbz Dec 7, 2016
1f151a5
On off toggle instead of radio buttons
Dbz Dec 8, 2016
b59ae11
New javascript for new toggle
Dbz Dec 9, 2016
794844a
Created checkbox buttons
Dbz Dec 11, 2016
8ef3c17
Better sortable grabbing
Dbz Dec 12, 2016
e2c583e
Added contextMenus permission
Dbz Dec 13, 2016
3ef5b93
Options Page UI options are saved and set properly
Dbz Dec 17, 2016
b3a11ed
Changed to storage sync instead of local
Dbz Dec 18, 2016
f2b4faa
Mostly style changes, and now compatible with new options page
Dbz Dec 18, 2016
6f9d142
Add/Remove context menu functionality
Dbz Jan 2, 2017
9b62867
Updated Readme
Dbz Jan 5, 2017
0f82444
Refactored adding and removing context menus
Dbz Mar 5, 2017
cda383b
Context menu caches fully working
Dbz Mar 5, 2017
0f88b86
Fixed style issues
Dbz Mar 5, 2017
0eaedf9
Style changes. Removed old thank you from ReadMe
Dbz Mar 11, 2017
8d67af7
Added chrome store description
Dbz Mar 13, 2017
81d53e3
Switched to new icons. Removed old images.
Dbz Mar 16, 2017
87dc9d5
Updated jQuery
Dbz Mar 17, 2017
baa864a
Merge pull request #2 from Dbz/right-click-menus
Dbz Mar 17, 2017
c27fe2b
Fixed readme formatting
Dbz Mar 17, 2017
ca8f009
Create License.txt
Dbz Mar 17, 2017
e0c4a65
Ready for Chrome Store
Dbz Mar 18, 2017
d4fe7fb
Updated Chrome Store Description
Dbz May 23, 2017
25b5e8f
New Chrome Store Archive
Dbz May 23, 2017
9d3fd97
Create CODE_OF_CONDUCT.md
Dbz Jul 12, 2017
d06a8ee
Wayback Machine goes to the latest version of a page
Dbz Jul 13, 2017
0a036d9
Added Archive.is to caches
Dbz Jul 24, 2017
64b20ad
Added promotional tiles
Dbz Jul 25, 2017
4491c7e
fixed bug
Dbz Sep 13, 2017
6f6208c
Delete the chrome store zip
Dbz Sep 13, 2017
46f74e7
Updated chrome store text with latest version
Dbz Sep 14, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team by making an issue. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
41 changes: 41 additions & 0 deletions Chrome Store/ChromeStore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
This is a chrome browser extension that allows the user to view a cached version of the current webpage. Set your primary cache as Google Cache, Wayback Machine, Archive.is, or Coral CDN. If what you're looking for isn't found, it'll cycle through the other caches until it finds what you're looking for. There are three ways to use WebCache:

1. Click the extension button to view the cached version of the web page

2. Access the cached webpage through the right click menu (enable this setting in the options page)

3. Auto-detect when a webpage is down, and fetch the cached version (enable this setting in the options page)

Source code is available here: https://github.com/Dbz/WebCache

PLEASE REPORT ISSUES/FEATURE REQUESTS HERE: https://github.com/Dbz/WebCache/issues


Change Log:

V 4.1.1
-------

- Minor bug fix

V 4.1.0
--------

- Wayback Machine URL now takes you directly to the latest snapshot of a page
- Added Archive.is as to the caches
- Code Refactoring

V 4.0.0
--------

- Added right click menu option to view the cached version of a web page
- Re-wrote the HTML/CSS of the options page
- Refactoring of the code base

V 3.5.6
---------

- Fixed a bug where first time installers couldn't use the extension before visiting the options page


Google Cache, Wayback Machine, Coral CDN, cache
Binary file removed Chrome Store/Example-Screen-Shot.gif
Binary file not shown.
Binary file added Chrome Store/ExampleScreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chrome Store/OptionsPage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chrome Store/PromotionalSmallTile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chrome Store/PromotionalTileLarge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chrome Store/PromotionalTileMarquee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chrome Store/RightClickMenu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Chrome Store/WebCache.zip
Binary file not shown.
Binary file removed Chrome Store/storeIcon.png
Binary file not shown.
21 changes: 21 additions & 0 deletions License.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Danny Burt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions PrivacyPolicy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
WebCache does not keep track of nor store your data.
34 changes: 28 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,33 @@
WebCache
========
# WebCache

This is a chrome browser extension that allows the user to view a cached version of the current webpage
This is a chrome browser extension that allows the user to view a cached version of the current web page.
This is useful if the website:

Install this extension here: https://chrome.google.com/webstore/detail/webcache/cmmlgikpahieigpcclckfmhnchdlfnjd
1. DDOS attacked (Too much Reddit traffic)
1. Taken down for maintenance
1. No longer exists
1. Has older versions with different content

Images by Jason Rainbows
Install WebCache [here](https://chrome.google.com/webstore/detail/webcache/cmmlgikpahieigpcclckfmhnchdlfnjd)

_Version v4.1.1_

v3.4.5
# Feedback

Please report any broken functionality or feature requests [here](https://github.com/Dbz/WebCache/issues).

If you would like to rate the chrome extension, please do so [here](https://chrome.google.com/webstore/detail/webcache/cmmlgikpahieigpcclckfmhnchdlfnjd/reviews).


# Contributing

I explicitly welcome contributions from people who have never contributed to open-source before: we were all beginners once!
I can help build on a partially working pull request with the aim of getting it merged.
I am also actively seeking to diversify our contributors and especially welcome contributions from women from all backgrounds and people of color. <sup>[1](#References)</sup>

If you're interested in contributing, fork this repo and create a pull request.
Please follow the [JavaScript Style Guide](https://github.com/airbnb/javascript).

### References

1. I used and modified [Homebrew's](https://github.com/Homebrew/brew#contributing) welcoming contributing section.
5 changes: 0 additions & 5 deletions bootstrap.min.css

This file was deleted.

52 changes: 52 additions & 0 deletions context-menu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
var CONTEXT_HASH = {
"google-cache": "http://webcache.googleusercontent.com/search?q=cache:",
"wayback-machine": "http://web.archive.org/web/",
"archive-is": "http://archive.is/newest/",
"coral-cdn": ".nyud.net"
};

function formUrl(context, url) {
var contextUrl = CONTEXT_HASH[context];
var isHTTPS = url.substring(0, 6) === "https:";

// Google, Wayback Machine, and Archive is
if(context !== "coral-cdn") {
return contextUrl + (isHTTPS ? url.substr(8) : url.substr(7));
} else { // Coral CDN
if(url.slice(-1) === "/") {
return url.substring(0, url.length - 1) + contextUrl;
} else {
return url + contextUrl;
}
}
}

function redirectToCachedUrl(info, tab) {
chrome.tabs.update(tab.id, { url: formUrl(info.menuItemId, info.pageUrl) });
}

// Create context menu caches
function createContextMenu(cache) {
var saveObj = {};
var create_properties = {
id: cache,
title: "Open page with " + cache.split("-").join(" "),
contexts: ["page"]
};
saveObj[cache] = true;

chrome.contextMenus.create(create_properties);
chrome.storage.sync.set(saveObj);
}

// Load Context Menus on Startup
chrome.storage.sync.get(Object.keys(CONTEXT_HASH), function(results) {
Object.keys(results).forEach(function(cache) {
if(!!results[cache]) {
createContextMenu(cache);
}
});
});

chrome.contextMenus.onClicked.addListener(redirectToCachedUrl);

Binary file modified images/.DS_Store
Binary file not shown.
Binary file removed images/CacheMenuBingCache2.png
Binary file not shown.
Binary file removed images/CacheMenuCoralCDN2.png
Binary file not shown.
Binary file removed images/CacheMenuGigablast2.png
Binary file not shown.
Binary file removed images/CacheMenuGoogleCache2.png
Binary file not shown.
Binary file removed images/CacheMenuWaybackMachine2.png
Binary file not shown.
Binary file removed images/CacheMenuWebCite2.png
Binary file not shown.
Binary file removed images/CacheMenuYahooCache2.png
Binary file not shown.
Binary file removed images/CoralCDNHelvetica.png
Binary file not shown.
Binary file removed images/GoogleCacheHelvetica.png
Binary file not shown.
Binary file removed images/WaybackMachineHelvetica.png
Binary file not shown.
Binary file added images/cache-xl-trimmed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cache-xl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/color-scheme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon-19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file modified jQuery/.DS_Store
Binary file not shown.
Loading