Skip to content

Commit 284c7ac

Browse files
authored
version 1.1 (#1)
* documentation mostly boiler plate stuff * security handshake and standard change modifcations for a security handshake pruning unused code modified everything from wildfire standard (legacy) to temppusheaders 1.1 * added a readme file
1 parent 5e4fcd6 commit 284c7ac

10 files changed

Lines changed: 189 additions & 77 deletions

File tree

.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Specific
2+
3+
# Windows image file caches
4+
Thumbs.db
5+
ehthumbs.db
6+
7+
# Folder config file
8+
Desktop.ini
9+
10+
# Recycle Bin used on file shares
11+
$RECYCLE.BIN/
12+
13+
# Windows Installer files
14+
*.cab
15+
*.msi
16+
*.msm
17+
*.msp
18+
19+
# Windows shortcuts
20+
*.lnk
21+
22+
# =========================
23+
# Operating System Files
24+
# =========================
25+
26+
# OSX
27+
# =========================
28+
29+
.DS_Store
30+
.AppleDouble
31+
.LSOverride
32+
33+
# Thumbnails
34+
._*
35+
36+
# Files that might appear in the root of a volume
37+
.DocumentRevisions-V100
38+
.fseventsd
39+
.Spotlight-V100
40+
.TemporaryItems
41+
.Trashes
42+
.VolumeIcon.icns
43+
44+
# Directories potentially created on remote AFP share
45+
.AppleDB
46+
.AppleDesktop
47+
Network Trash Folder
48+
Temporary Items
49+
.apdisk
50+
random.php

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
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.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
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.
28+
29+
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.
30+
31+
## Scope
32+
33+
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.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at webmaster@thetempusproject.com. 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.
38+
39+
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.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Contribution Guidelines for TempusTools
2+
Contributing to TempusTools is completely voluntary and should follow all of the guidelines listed here in order to ensure the highest probability of acceptance. The project is maintained on github and all contributions need to be submitted via pull request to their specific repository under the `dev` branch. In order to contribute, simply follow the instructions for [creating a pull request](#creating-a-pull-request) below.
3+
4+
## Pull Request Requirements
5+
6+
7+
## Creating a Pull Request
8+
This is a simple explanation of how to create a pull request for changes to XXXXXXXXXXXXXXXX. You can find a detailed walk-through on how to [create a pull request](https://help.github.com/articles/creating-a-pull-request/) on github.
9+
10+
1. First ensure you have followed all the contributing guidelines
11+
2. Squash your merge into a single revision. This will make it easier to view the changes as a whole.
12+
3. You can submit a pull request [here](https://github.com/XXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXX/compare)
13+
4. Please submit all pull requests to the dev branch or they will be ignored.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Joey Kimsey
3+
Copyright (c) 2018 Joey Kimsey
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Tempus Tools
2+
#### Chrome Extension for The Tempus Project
3+
###### Developer(s): Joey Kimsey
4+
5+
This extension will allow you to receive debugging messages from The Tempus Project in the chrome dev tools. More features coming soon. Currently the extension is not available through the chrome store. In order to use it, you will need to visit the extensions page in chrome and load it as an unpacked extension.

html/options.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
<p>Please remember to <strong>save</strong> you changes once you are done.</p>
7979
<hr>
8080
<dl>
81-
<dt><label for="blacklist">URLs to disable TempusTools on:</label></dt>
82-
<dd><textarea id="blacklist"></textarea></dd>
83-
<dd><span class="help">Please comma separate the list. For reference on patterns, see <a href="https://developer.chrome.com/extensions/match_patterns" target="_blank">URL Pattern Matches</a>.</span></dd>
81+
<dt><label for="secHash">Access hash:</label></dt>
82+
<dd><span class="help">You can find this hash in the Tempus Project admin panel under "Settings".</span></dd>
83+
<dd><textarea id="secHash"></textarea></dd>
8484
</dl>
8585
<dl>
8686
<dt><label for="max_combined_size">Maximum combined header size (in bytes):</label></dt>

html/popup.html

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,8 @@
112112
</style>
113113
</head>
114114
<body bgcolor="#f6f8f1" style="margin: 0;padding: 0;min-width: 100%!important;">
115-
<!--[if (gte mso 9)|(IE)]>
116-
<table width="600" align="center" cellpadding="0" cellspacing="0" border="0">
117-
<tr>
118-
<td>
119-
<![endif]-->
120115
<table class="content" align="center" cellpadding="0" cellspacing="0" border="0" style="width: 100%; max-width: 400px;">
121-
<!-- Mail Header -->
116+
<!-- Header -->
122117
<tr>
123118
<td class="header" bgcolor="#b5e6ff" style="padding: 5px 5px 5px 5px;">
124119
<table align="center" border="0" cellpadding="0" cellspacing="0">
@@ -128,19 +123,9 @@
128123
</td>
129124
</tr>
130125
</table>
131-
<!--[if (gte mso 9)|(IE)]>
132-
<table width="425" align="left" cellpadding="0" cellspacing="0" border="0">
133-
<tr>
134-
<td>
135-
<![endif]-->
136-
<!--[if (gte mso 9)|(IE)]>
137-
</td>
138-
</tr>
139-
</table>
140-
<![endif]-->
141126
</td>
142127
</tr>
143-
<!-- Mail Body -->
128+
<!-- Body -->
144129
<tr>
145130
<td class="innerpadding borderbottom" bgcolor="#f9fdff" style="padding: 30px 30px 30px 30px; border-bottom: 1px solid rgb(242, 238, 237);">
146131
<table width="100%" border="0" cellspacing="0" cellpadding="0">
@@ -157,7 +142,7 @@
157142
</table>
158143
</td>
159144
</tr>
160-
<!-- Mail Footer -->
145+
<!-- Footer -->
161146
<tr>
162147
<td class="footer" bgcolor="#44525f" style="padding: 20px 30px 15px 30px;">
163148
<table width="100%" border="0" cellspacing="0" cellpadding="0">
@@ -193,10 +178,5 @@
193178
</td>
194179
</tr>
195180
</table>
196-
<!--[if (gte mso 9)|(IE)]>
197-
</td>
198-
</tr>
199-
</table>
200-
<![endif]-->
201181
</body>
202182
</html>

js/background.js

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
/**
2+
* TempusTools/js/background.js
3+
*
24
* Background processor for TempusTools
35
*
46
* Handles various tasks including:
57
* - adding the outgoing header
68
* - adding a listener for message from devtools to run console log on
79
* - inline script
8-
*
10+
*
11+
* @version 1.1
12+
*
913
* @author Aaron Saray aaron@aaronsaray.com
1014
*
11-
* Rewritten for specialized application by:
15+
* - Rewritten for specialized application by:
1216
*
1317
* @author Joey Kimsey joeyk4816@gmail.com
18+
*
19+
* @link https://TheTempusProject.com/TempusTools
20+
*
21+
* @license https://opensource.org/licenses/MIT [MIT LICENSE]
1422
*/
1523

1624
/**
@@ -53,13 +61,8 @@ TempusTools.showExtensionEnabled = function()
5361
*/
5462
chrome.storage.sync.get(['options', 'enabled'], function(settings) {
5563
if (settings.options) {
56-
if (settings.options.blacklist) {
57-
var blacklist = settings.options.blacklist.replace(/\s+/, '').split(',');
58-
chrome.webRequest.onBeforeRequest.addListener(
59-
function() {
60-
TempusTools.addHeaders = false;
61-
}, {urls: blacklist}, ['blocking']
62-
);
64+
if (settings.options.hasOwnProperty('securityHash')) {
65+
TempusTools.securityHash = settings.options.securityHash;
6366
}
6467
if (settings.options.hasOwnProperty('maxCombinedSize')) {
6568
TempusTools.maxCombinedSize = settings.options.maxCombinedSize;
@@ -85,11 +88,15 @@ chrome.webRequest.onBeforeSendHeaders.addListener(
8588
}
8689
details.requestHeaders.push({
8790
name: 'X-TempusDebugger-Version',
88-
value: '1.0'
91+
value: '1.1'
8992
},
9093
{
91-
name: 'X-Wf-Max-Combined-Size',
94+
name: 'X-TempusDebugger-MaX-Combined-Size',
9295
value: TempusTools.maxCombinedSize+''
96+
},
97+
{
98+
name: 'X-TempusDebugger-securityHash',
99+
value: TempusTools.securityHash+''
93100
});
94101
}
95102

0 commit comments

Comments
 (0)