Permalink
Browse files

Added gitattributes file.

  • Loading branch information...
1 parent d0c5c10 commit a5585480a67bff81fbe79bc718bc8311e2c77c79 @ocodia committed Sep 4, 2012
Showing with 199 additions and 177 deletions.
  1. +22 −0 .gitattributes
  2. +140 −140 options.html
  3. +37 −37 options.js
View
@@ -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
View
@@ -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>
View
@@ -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.