Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

options.html 5.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>AlwaysKillSticky - Options</title>
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
  7. <link rel='stylesheet' type='text/css' href='options.css' />
  8. <link rel='stylesheet' type='text/css' href='fonts.css' />
  9. <link rel="shortcut icon" type="image/png" href="images/ASK_on_32.png" />
  10. </head>
  11. <body>
  12. <h1>AlwaysKillSticky</h1>
  13. <form class='top-controls'>
  14. <span class='mode-select-container'>
  15. <span class='blacklist-mode-label'>Blacklist mode</span>
  16. <input type='checkbox' id='whitelist-mode'></input>
  17. <span class='whitelist-mode-label'>Whitelist mode</span>
  18. </span>
  19. <span class='buttons'>
  20. <button disabled type='button' class='reset-button'>Reset</button>
  21. <button disabled type='button' class='save-button'>Save</button>
  22. </span>
  23. </form>
  24. <div id='matchingPatterns'>
  25. <h2>Matching patterns</h2>
  26. <p>Kill stickies on web page URLs matching the following <a href='https://regexr.com/' rel='nofollow' target='_blank'>regular expressions</a> (one per line):</p>
  27. <div class='textarea-container'>
  28. <textarea spellcheck="false"></textarea>
  29. </div>
  30. </div>
  31. <div id='exclusionPatterns'>
  32. <h2>Exclusion patterns</h2>
  33. <p>Do <strong>not</strong> kill stickies on web page URLs matching the following <a href='https://regexr.com/' rel='nofollow' target='_blank'>regular expressions</a> (one per line):</p>
  34. <p class='note'>(<strong>NOTE:</strong> 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>
  35. <div class='textarea-container'>
  36. <textarea spellcheck="false"></textarea>
  37. </div>
  38. </div>
  39. <div class='bottom-info'>
  40. <p class='bottom-info'>AlwaysKillSticky v<span class='version'>0.0</span></p>
  41. <p class='bottom-info'>© Said Achmiz 2019–present</p>
  42. </div>
  43. <form class='open-help-button-container'>
  44. <button type='button' class='open-help-button'>Help</button>
  45. </form>
  46. <div id='help' class='help-overlay'>
  47. <form>
  48. <button type='button' class='close-button'>Close</button>
  49. </form>
  50. <div class='help-container'>
  51. <h1>AlwaysKillSticky Help</h1>
  52. <p>On sites/pages where it’s enabled, AlwaysKillSticky finds all elements whose <code>position</code> CSS property has a computed value of either <code>sticky</code> or <code>fixed</code>, and removes those elements.</p>
  53. <h2>Basic usage</h2>
  54. <p>To enable AlwaysKillSticky on a site, click the AlwaysKillSticky icon in your browser toolbar, then click the big button (shaped like a thumbtack: <span class='fa fa-heavy'>&#xf08d;</span>). Stickies will immediately be killed, and will always be killed whenever you visit that page, or any page on the same site, in the future.</p>
  55. <p>To stop killing stickies on a site, just click the big button again. Stickies will no longer be killed when you visit pages on that site. (After disabling sticky-killing for a page, you can click the Reload (<span class='fa fa-heavy'>&#xf2f1;</span>) button to refresh the page if you want to restore killed sticky elements on that page.)</p>
  56. <h2>Modes</h2>
  57. <p>AlwaysKillSticky can work in either of two modes: <strong>blacklist mode</strong> (the default) and <strong>whitelist mode</strong>. (You can switch modes at any time, via the Options page.)</p>
  58. <h3>Blacklist mode</h3>
  59. <p>In <strong>blacklist mode</strong>, stickies will <em>only</em> be killed if:</p>
  60. <ul>
  61. <li>the page URL matches one of the patterns in the <strong>matching patterns</strong> list, <em>and</em>;</li>
  62. <li>the page does <em>not</em> match any of the patterns in the <strong>exclusion patterns</strong> list.</li>
  63. </ul>
  64. <p>In blacklist mode, if you click the big button (<span class='fa fa-heavy'>&#xf08d;</span>) in the AlwaysKillSticky popup to enable the
  65. <h3>Whitelist mode</h3>
  66. <p>In <strong>whitelist mode</strong>, <em>the matching patterns list is ignored</em>. Stickies are <em>always</em> killed, <em>unless</em> the page matches one of the patterns in the <strong>exclusion patterns</strong> list.</p>
  67. <p>(In whitelist mode, the behavior of the main button (<span class='fa fa-heavy'>&#xf08d;</span>) in the AlwaysKillSticky popup is reversed.)</p>
  68. <h2>Advanced usage</h2>
  69. <p>AlwaysKillSticky automatically manages the lists of matching and exclusion patterns. When you enable or disable sticky-killing for a site (by clicking the big button in the AlwaysKillSticky popup), the pattern lists are automatically modified appropriately. There is usually no need to edit the lists yourself.</p>
  70. <p>However, if you prefer more fine-grained control (e.g., if you want to kill stickies on all sites on a domain, or if you want to exclude specific paths of a site), you can edit the pattern lists by hand. The matching and exclusion patterns are <a href='https://en.wikipedia.org/wiki/Regular_expression' rel='nofollow' target='_blank'>regular expressions</a> (a.k.a. “regexps”). (The site <a href='https://regexr.com/' rel='nofollow' target='_blank'>RegExr.com</a> is useful if you are not entirely familiar with how regexps work—or even if you are.)</p>
  71. <p><strong>NOTE:</strong> Lines beginning with a pound sign (#) are comments; they are ignored.</p>
  72. <h3>How automatic management of the patterns lists works</h3>
  73. <p>The comments in the <a href='popup.js' target='_blank'><code>popup.js</code> script file</a> explain exactly what happens to the patterns lists when you use the main button (<span class='fa fa-heavy'>&#xf08d;</span>) in the AlwaysKillSticky popup to enable or disable sticky-killing on a site.</p>
  74. <h2>License</h2>
  75. <p>This extension is released under the GNU General Public License
  76. as published by the Free Software Foundation; either version
  77. 2 of the License, or (at your option) any later version.</p>
  78. </div>
  79. </div>
  80. </body>
  81. <script src="functions.js"></script>
  82. <script src="options.js"></script>
  83. </html>