| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Always Kill Sticky - Options</title>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <style>
- html {
- box-sizing: border-box;
- font-size: 16px;
- }
- *, *::before, *::after {
- box-sizing: inherit;
- }
- body {
- margin: 0 auto;
- display: flex;
- flex-flow: column;
- max-width: 640px;
- min-height: 100vh;
- padding: 10px;
- font-size: 1rem;
- }
- body > div {
- border: 1px solid #ddd;
- padding: 30px 15px 15px 15px;
- position: relative;
- }
- body > div + div {
- margin: 2.5em 0 0 0;
- }
- h1 {
- border-bottom: 1px solid #ddd;
- }
- h2 {
- margin: 0;
- background-color: #fff;
- padding: 10px 15px;
- position: absolute;
- top: calc(-1 * (0.625em + 10px));
- left: 10px;
- border: inherit;
- }
- textarea {
- border: 1px solid #aaa;
- font-family: Inconsolata, Courier, monospace;
- font-size: 1.125rem;
- width: 100%;
- }
- #matchingPatterns textarea {
- min-height: 300px;
- }
- #exclusionPatterns textarea {
- min-height: 150px;
- }
- form {
- text-align: right;
- margin: 0 0 1em 0;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- }
- button {
- -webkit-appearance: none;
- -moz-appearance: none;
- border: 1px solid #bbb;
- color: #fff;
- padding: 10px 16px;
- cursor: default;
- margin: 0 0 0 0.5em;
- }
- button.save-button {
- background-color: #16e;
- font-size: 1.5rem;
- }
- button.reset-button {
- background-color: #d3453d;
- font-size: 1rem;
- }
- button:active {
- transform: scale(0.95);
- }
- button:focus:active {
- outline: none;
- }
- button:disabled {
- background-color: #777;
- opacity: 0.5;
- }
- body > p {
- padding: 0 15px;
- }
- </style>
- </head>
- <body>
- <h1>Always Kill Sticky</h1>
- <form>
- <button disabled type='button' class='reset-button'>Reset</button>
- <button disabled type='button' class='save-button'>Save</button>
- </form>
- <div id='matchingPatterns'>
- <h2>Matching patterns</h2>
- <p>Kill stickies on web page URLs matching the following <a href='https://regexr.com/' rel='nofollow'>regular expressions</a> (one per line):</p>
- <textarea spellcheck="false"></textarea>
- </div>
- <div id='exclusionPatterns'>
- <h2>Exclusion patterns</h2>
- <p>Do <strong>not</strong> kill stickies on web page URLs matching the following <a href='https://regexr.com/' rel='nofollow'>regular expressions</a> (one per line):</p>
- <textarea spellcheck="false"></textarea>
- </div>
- <p>NOTE: Exclusion patterns override matching patterns; if a page is <em>both</em> matched <em>and</em> excluded, stickies will <strong>not</strong> be killed on that page.</p>
- </body>
- <script src="options.js"></script>
- </html>
|