You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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='constant-vigilance-container'>
  20. <input type='checkbox' name='constant-vigilance' id='constant-vigilance' checked></input>
  21. <label for='constant-vigilance' title='Continue monitoring the page for sticky elements added after page load. (See help for more info.)'>CONSTANT VIGILANCE!</label>
  22. </span>
  23. <span class='buttons'>
  24. <button disabled type='button' class='reset-button'>Reset</button>
  25. <button disabled type='button' class='save-button'>Save</button>
  26. </span>
  27. </form>
  28. <div id='matchingPatterns'>
  29. <h2>Matching patterns</h2>
  30. <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>
  31. <div class='textarea-container'>
  32. <textarea spellcheck="false"></textarea>
  33. </div>
  34. </div>
  35. <div id='exclusionPatterns'>
  36. <h2>Exclusion patterns</h2>
  37. <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>
  38. <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>
  39. <div class='textarea-container'>
  40. <textarea spellcheck="false"></textarea>
  41. </div>
  42. </div>
  43. <div class='bottom-info'>
  44. <p class='bottom-info'>AlwaysKillSticky v<span class='version'>0.0</span></p>
  45. <p class='bottom-info'>© Said Achmiz 2019–present</p>
  46. </div>
  47. <form class='open-help-button-container'>
  48. <button type='button' class='open-help-button'>Help</button>
  49. </form>
  50. <div id='help' class='help-overlay'>
  51. <form>
  52. <button type='button' class='close-button'>Close</button>
  53. </form>
  54. <div class='help-container'>
  55. <h1>AlwaysKillSticky Help</h1>
  56. <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>
  57. <h2>Basic usage</h2>
  58. <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>
  59. <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>
  60. <h2>Modes</h2>
  61. <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>
  62. <h3>Blacklist mode</h3>
  63. <p>In <strong>blacklist mode</strong>, stickies will <em>only</em> be killed if:</p>
  64. <ul>
  65. <li>the page URL matches one of the patterns in the <strong>matching patterns</strong> list, <em>and</em>;</li>
  66. <li>the page does <em>not</em> match any of the patterns in the <strong>exclusion patterns</strong> list.</li>
  67. </ul>
  68. <p>In blacklist mode, if you click the big button (<span class='fa fa-heavy'>&#xf08d;</span>) in the AlwaysKillSticky popup to enable the
  69. <h3>Whitelist mode</h3>
  70. <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>
  71. <p>(In whitelist mode, the behavior of the main button (<span class='fa fa-heavy'>&#xf08d;</span>) in the AlwaysKillSticky popup is reversed.)</p>
  72. <h2>Constant vigilance</h2>
  73. <p>Some websites add sticky elements after loading, or make existing elements sticky (either on a timer, or based on user actions). CONSTANT VIGILANCE counteracts this behavior, by watching the DOM for mutations, and, if necessary, killing any newly-formed stickies.</p>
  74. <p>This feature may slightly impact browser performance on some sites or some computers. If you disable it, stickies will still be killed immediately upon page load, but not thereafter.</p>
  75. <h2>Advanced usage</h2>
  76. <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>
  77. <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>
  78. <p><strong>NOTE:</strong> Lines beginning with a pound sign (#) are comments; they are ignored.</p>
  79. <h3>How automatic management of the patterns lists works</h3>
  80. <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>
  81. <h2>License</h2>
  82. <p>This extension is released under the GNU General Public License
  83. as published by the Free Software Foundation; either version
  84. 2 of the License, or (at your option) any later version.</p>
  85. </div>
  86. </div>
  87. </body>
  88. <script src="functions.js"></script>
  89. <script src="options.js"></script>
  90. </html>