Skip to content

Commit

Permalink
Added gitattributes file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocodia committed Sep 4, 2012
1 parent d0c5c10 commit a558548
Show file tree
Hide file tree
Showing 3 changed files with 199 additions and 177 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
280 changes: 140 additions & 140 deletions options.html
Original file line number Diff line number Diff line change
@@ -1,141 +1,141 @@
<html>
<head>
<title>Check My Links: Options</title>
<script type="text/javascript" src="options.js"></script>
<style rel="stylesheet" type="text/css">

body{
background-color:#eee;
font-family:arial,sans-serif;
font-size:13px
}

#content{
background-color: white;
border: 1px solid #DDD;
margin: 40px auto 20px;
padding: 12px;
width: 500px;
-webkit-border-radius: 12px;
box-shadow: 0px 0px 10px #ddd;
}

h1{
color:#333333;
font-size:1.5em;
margin:0.7em 0 0;
}


p{
font-size: 12px;
}

.buttons{
clear:left;
padding:5px;
text-align: center;
}

#save_status{
background-color:#fff1a8;
font-weight:bold;
margin-left:10px;
opacity:0;
padding:3px;
border-radius:3px
}

.footer{
text-align:center;
margin-top:0.4em;
color: rgba(0,0,0,0.2);
}

.footer a{
color: #333;
text-shadow: 1px 1px 1px white;
text-decoration: none;
border: 1px solid #ddd;
padding: 5px;
background: -webkit-gradient(linear, center top, center bottom, from(white), to(#fafafa));
border-radius: 5px;
}

.footer a:hover{
color: #111;
text-shadow: 1px 1px 1px white;
text-decoration: underline;
}

#msg{
background: #090;
border-radius: 5px 5px;
color: #fff;
font-weight: bold;
padding: 5px;
text-align: center;
}

#blacklistEntries{
width: 500px;
height: 200px;
}

#logo{
background: -webkit-gradient(linear, center top, center bottom, from(white), to(#EEE));
padding: 15px 0px 10px 10px;
height: 30px;
border-bottom: 1px solid #DDD;
margin: -12px -12px 20px -12px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
text-shadow: 1px 1px 1px white;
color: #666;
}

span{
font-family: monospace;
background: #D9EDF7;
padding: 3px;
color: #3A87AD;
border-radius: 5px;
}

label{
font-weight: bold;
}

#support{
margin: 0px -12px -12px -12px;
background: whitef;
padding: 0px 10px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border-top: 1px dashed #DDD;

}
</style>

</head>
<body onload="loadOptions()">
<div id="content">
<h1 id="logo">Check My Links: Options</h1>
<p>To prevent this extension from checking a link, please enter all or part of the URL in the blacklist below. Each URL must be entered on a new line.</p>
<p style="line-height: 26px">For example: <span>www.mydomain.com</span> will prevent the following links from being checked: <span>www.mydomain.com/page1.html</span> or <span>www.mydomain.com/page2.html</span></p>
<label for="blacklistEntries">Exclude links from these domains:</label><br/>
<textarea name="blacklistEntries" id="blacklistEntries" rows="2" cols="20"></textarea>
<div class="buttons">
<button onclick="saveOptions()">Save my preferences</button></div>
<div id="msg" style="visibility: hidden;">Preferences Saved!</div>
<div id="support">
<p>Support this extension by contributing towards its upkeep: </p><p><a href="http://flattr.com/thing/474052/Check-My-Links" target="_blank">
<img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></p>
</div>
</div>

<div class="footer">
<a href="http://ocodia.com">By Paul Livingstone</a> - <a href="http://twitter.com/ocodia">@ocodia</a> - <a href="https://github.com/ocodia/Check-My-Links/wiki">Wiki</a> - <a href="https://github.com/ocodia/Check-My-Links/issues">Report an issue</a> - <a href="https://github.com/ocodia/Check-My-Links">Fork me on Github</a>
</div>
</body>
<html>
<head>
<title>Check My Links: Options</title>
<script type="text/javascript" src="options.js"></script>
<style rel="stylesheet" type="text/css">

body{
background-color:#eee;
font-family:arial,sans-serif;
font-size:13px
}

#content{
background-color: white;
border: 1px solid #DDD;
margin: 40px auto 20px;
padding: 12px;
width: 500px;
-webkit-border-radius: 12px;
box-shadow: 0px 0px 10px #ddd;
}

h1{
color:#333333;
font-size:1.5em;
margin:0.7em 0 0;
}


p{
font-size: 12px;
}

.buttons{
clear:left;
padding:5px;
text-align: center;
}

#save_status{
background-color:#fff1a8;
font-weight:bold;
margin-left:10px;
opacity:0;
padding:3px;
border-radius:3px
}

.footer{
text-align:center;
margin-top:0.4em;
color: rgba(0,0,0,0.2);
}

.footer a{
color: #333;
text-shadow: 1px 1px 1px white;
text-decoration: none;
border: 1px solid #ddd;
padding: 5px;
background: -webkit-gradient(linear, center top, center bottom, from(white), to(#fafafa));
border-radius: 5px;
}

.footer a:hover{
color: #111;
text-shadow: 1px 1px 1px white;
text-decoration: underline;
}

#msg{
background: #090;
border-radius: 5px 5px;
color: #fff;
font-weight: bold;
padding: 5px;
text-align: center;
}

#blacklistEntries{
width: 500px;
height: 200px;
}

#logo{
background: -webkit-gradient(linear, center top, center bottom, from(white), to(#EEE));
padding: 15px 0px 10px 10px;
height: 30px;
border-bottom: 1px solid #DDD;
margin: -12px -12px 20px -12px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
text-shadow: 1px 1px 1px white;
color: #666;
}

span{
font-family: monospace;
background: #D9EDF7;
padding: 3px;
color: #3A87AD;
border-radius: 5px;
}

label{
font-weight: bold;
}

#support{
margin: 0px -12px -12px -12px;
background: whitef;
padding: 0px 10px;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
border-top: 1px dashed #DDD;

}
</style>

</head>
<body onload="loadOptions()">
<div id="content">
<h1 id="logo">Check My Links: Options</h1>
<p>To prevent this extension from checking a link, please enter all or part of the URL in the blacklist below. Each URL must be entered on a new line.</p>
<p style="line-height: 26px">For example: <span>www.mydomain.com</span> will prevent the following links from being checked: <span>www.mydomain.com/page1.html</span> or <span>www.mydomain.com/page2.html</span></p>
<label for="blacklistEntries">Exclude links from these domains:</label><br/>
<textarea name="blacklistEntries" id="blacklistEntries" rows="2" cols="20"></textarea>
<div class="buttons">
<button onclick="saveOptions()">Save my preferences</button></div>
<div id="msg" style="visibility: hidden;">Preferences Saved!</div>
<div id="support">
<p>Support this extension by contributing towards its upkeep: </p><p><a href="http://flattr.com/thing/474052/Check-My-Links" target="_blank">
<img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></p>
</div>
</div>

<div class="footer">
<a href="http://ocodia.com">By Paul Livingstone</a> - <a href="http://twitter.com/ocodia">@ocodia</a> - <a href="https://github.com/ocodia/Check-My-Links/wiki">Wiki</a> - <a href="https://github.com/ocodia/Check-My-Links/issues">Report an issue</a> - <a href="https://github.com/ocodia/Check-My-Links">Fork me on Github</a>
</div>
</body>
</html>
74 changes: 37 additions & 37 deletions options.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
// Check My Links by Paul Livingstone
// @ocodia

var blacklistDefaults =
"googleleads.g.doubleclick.net\n" +
"doubleclick.net\n" +
"googleadservices.com\n" +
"www.googleadservices.com\n" +
"googlesyndication.com\n" +
"adservices.google.com\n" +
"appliedsemantics.com";

function loadOptions() {

var bkg = chrome.extension.getBackgroundPage();
var blacklistItems = bkg.getItem("blacklist");

if (blacklistItems === null) {
bkg.setItem("blacklist", blacklistDefaults);
}

blacklistItems = bkg.getItem("blacklist");
blacklistItems.split(" ");

document.getElementById("blacklistEntries").value = blacklistItems;

}

function saveOptions() {
var bkg = chrome.extension.getBackgroundPage();
var blacklistEntries = document.getElementById("blacklistEntries");

// Save selected options to localstore
bkg.setItem("blacklist", blacklistEntries.value);
document.getElementById("msg").style.visibility = "visible";
}
// Check My Links by Paul Livingstone
// @ocodia

var blacklistDefaults =
"googleleads.g.doubleclick.net\n" +
"doubleclick.net\n" +
"googleadservices.com\n" +
"www.googleadservices.com\n" +
"googlesyndication.com\n" +
"adservices.google.com\n" +
"appliedsemantics.com";

function loadOptions() {

var bkg = chrome.extension.getBackgroundPage();
var blacklistItems = bkg.getItem("blacklist");

if (blacklistItems === null) {
bkg.setItem("blacklist", blacklistDefaults);
}

blacklistItems = bkg.getItem("blacklist");
blacklistItems.split(" ");

document.getElementById("blacklistEntries").value = blacklistItems;

}

function saveOptions() {
var bkg = chrome.extension.getBackgroundPage();
var blacklistEntries = document.getElementById("blacklistEntries");

// Save selected options to localstore
bkg.setItem("blacklist", blacklistEntries.value);
document.getElementById("msg").style.visibility = "visible";
}

0 comments on commit a558548

Please sign in to comment.