Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
add new bug reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed May 4, 2018
1 parent 2fc3284 commit 017d691
Show file tree
Hide file tree
Showing 8 changed files with 417 additions and 19 deletions.
20 changes: 10 additions & 10 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ <h2>Troubleshooting</h2>
<p>Are you using more than one adblocker? Nano Defender can only protect one adblocker and will prioritize Nano Adblocker.</p>
</div>

<div class="container" id="common-questions-and-problems">
<h2>Common questions and problems</h2>
<div class="container" id="common-questions-and-issues">
<h2>Common questions and issues</h2>

<p><strong>Will there be a configurable whitelist for Nano Defender?</strong></p>
<p>Not until I have a reliable way to synchronously send configuration data to content scripts. This is a limitation of browser APIs.</p>
Expand All @@ -76,21 +76,21 @@ <h2>Common questions and problems</h2>
<br />

<p><strong>Nano Defender is causing (further) breakage.</strong></p>
<p><a href="#reporting-a-problem">Report it</a> and I will try to take care of it within 2 days. Keep in mind that this only apply to breakage <strong>caused</strong> by Nano Defender, other breakages may not be fixed this fast.</p>
<p><a href="#reporting-an-issue">Report it</a> and I will try to take care of it within 2 days. Keep in mind that this only apply to breakage <strong>caused</strong> by Nano Defender, other breakages may not be fixed this fast.</p>
<br />

<p><strong>A website freezes with Nano Defender enabled.</strong></p>
<p>Some websites will intentionally freeze (with an infinite loop for example) once they detect Nano Defender, it could also be caused by a bug in Nano Defender.</p>
<p>Either way, <a href="#reporting-a-problem">report it</a> and I will try to take care of it within 2 days. Keep in mind that this only apply to freezings <strong>caused</strong> by Nano Defender, other freezings may not be fixed this fast.</p>
<p>Either way, <a href="#reporting-an-issue">report it</a> and I will try to take care of it within 2 days. Keep in mind that this only apply to freezings <strong>caused</strong> by Nano Defender, other freezings may not be fixed this fast.</p>
<p>You can use task manager to terminate the tab that froze, go to <code>Menu -&gt; More tools -&gt; Task manager</code>, select the tab that froze, then click <code>End process</code>.</p>
<br />

<p><strong>A website is still detecting my adblocker.</strong></p>
<p>Nano Defender is not magical, a lot of websites need to be fixed on a case by case basis. <a href="#reporting-a-problem">Report it</a> and I will have a look. Depending on the website, it can take some time.</p>
<p>Nano Defender is not magical, a lot of websites need to be fixed on a case by case basis. <a href="#reporting-an-issue">Report it</a> and I will have a look. Depending on the website, it can take some time.</p>
<br />

<p><strong>A website is perceptibly slower with Nano Defender enabled.</strong></p>
<p><a href="#reporting-a-problem">Report it</a> and I will have a look.</p>
<p><a href="#reporting-an-issue">Report it</a> and I will have a look.</p>
</div>

<div class="container" id="known-issues">
Expand Down Expand Up @@ -128,7 +128,7 @@ <h2>Known issues</h2>
<br />

<p><strong>crackle.com</strong></p>
<p>Video sometimes stuck at loading, refreshing the page usually corrects the problem. Help wanted.</p>
<p>Video sometimes stuck at loading, refreshing the page usually corrects the issue. Help wanted.</p>
<p><code>Geo Lock (United States of America)</code></p>
<p>
<a href="https://www.crackle.com/scary-movie-3/2498104" target="_blank">Test link 1</a>
Expand Down Expand Up @@ -177,10 +177,10 @@ <h2>Known issues</h2>
<p><a href="https://github.com/uBlockOrigin/uAssets/issues" target="_blank">uAssets Issues Tracker</a></p>
</div>

<div class="container" id="reporting-a-problem">
<h2>Reporting a problem</h2>
<div class="container" id="reporting-an-issue">
<h2>Reporting an issue</h2>

<p>Before opening an issue, <strong>always</strong> check if there is already another issue opened for your problem.</p>
<p>Before opening an issue, <strong>always</strong> check if there is already another issue opened.</p>
<p>For missed ads and tracking scripts, report to <a href="https://github.com/easylist/easylist/issues" target="_blank">EasyList</a>.</p>
<p>For hard anti-adblock (allow ads or leave type) and popups, report to <a href="https://github.com/uBlockOrigin/uAssets" target="_blank">uAssets</a>.</p>
<p>For cookie notices, report to <a href="https://github.com/ryanbr/fanboy-adblock/issues" target="_blank">Fanboy</a>.</p>
Expand Down
6 changes: 3 additions & 3 deletions src/popup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<span>Troubleshooting</span>
</div>

<div class="wrapper" data-home="1" data-href="#common-questions-and-problems">
<div class="wrapper" data-home="1" data-href="#common-questions-and-issues">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="16" viewBox="0 0 14 16">
<path fill-rule="evenodd" d="M6 10h2v2H6v-2zm4-3.5C10 8.64 8 9 8 9H6c0-.55.45-1 1-1h.5c.28 0 .5-.22.5-.5v-1c0-.28-.22-.5-.5-.5h-1c-.28 0-.5.22-.5.5V7H4c0-1.5 1.5-3 3-3s3 1 3 2.5zM7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7z" />
</svg>
Expand All @@ -47,11 +47,11 @@
<span>Known Issues</span>
</div>

<div class="wrapper separator" data-home="1" data-href="#reporting-a-problem">
<div class="wrapper separator" data-home="1" data-href="#reporting-an-issue">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M15.98 7.83l-.97-5.95C14.84.5 13.13 0 12 0H5.69c-.2 0-.38.05-.53.14L3.72 1H2C.94 1 0 1.94 0 3v4c0 1.06.94 2.02 2 2h2c.91 0 1.39.45 2.39 1.55.91 1 .88 1.8.63 3.27-.08.5.06 1 .42 1.42.39.47.98.77 1.56.77 1.83 0 3-3.72 3-5.02l-.02-.98h2.04c1.16 0 1.95-.8 1.98-1.97 0-.06.02-.13-.02-.2v-.01zm-1.97 1.19h-1.99c-.7 0-1.03.28-1.03.97l.03 1.03c0 1.27-1.17 4-2 4-.5 0-1.08-.5-1-1 .25-1.58.34-2.78-.89-4.14C6.11 8.75 5.36 8 4 8V2l1.67-1H12c.73 0 1.95.31 2 1l.02.02 1 6c-.03.64-.38 1-1 1h-.01z" />
</svg>
<span>Report Problem</span>
<span>Report an Issue</span>
</div>

<div class="wrapper" data-home="2" data-href="">
Expand Down
12 changes: 6 additions & 6 deletions src/popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@
* Home pages.
* @const {Map}
*/
const home = new Map([
["0", ""],
["1", "https://jspenguin2017.github.io/uBlockProtector/"],
["2", "https://github.com/jspenguin2017/uBlockProtector"],
]);
const home = [
"",
"https://jspenguin2017.github.io/uBlockProtector/",
"https://github.com/jspenguin2017/uBlockProtector",
];

/**
* On click handler.
* @function
* @listens click
*/
const onclick = function () {
const url = home.get(this.dataset.home) + this.dataset.href;
const url = home[this.dataset.home] + this.dataset.href;
chrome.tabs.create({
url: url,
});
Expand Down
10 changes: 10 additions & 0 deletions src/reporter/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
body {
font-size: 100%;
}

select {
border: 0px;
font-size: 1.2em;
width: 100%;
padding: 1px 0px 1px 0px;
}
77 changes: 77 additions & 0 deletions src/reporter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="author" content="jspenguin2017" />

<meta name="referrer" content="no-referrer" />
<title>Quick Issue Reporter</title>

<link rel="stylesheet" href="paper.css" />
<link rel="stylesheet" href="index.css" />

<script src="../libdom.js" defer></script>
<script src="paper.js" defer></script>
<script src="index.js" defer></script>
</head>
<body>
<div class="container" id="main">
<h2>Quick Issue Reporter</h2>

<label class="bold" for="category">The problem:</label>
<br />
<select id="category">
<option valie="" selected>Choose one...</option>
<option value="anti-adblock">Anti-Adblock</option>
<option value="missed ads">Missed Ads</option>
<option value="false positive">False Positive</option>
<option value="other">Other (Explain Below)</option>
</select>
<br /><br />

<label class="bold" for="url">URL where the problem occure:</label>
<br />
<input type="text" id="url" />
<br /><br />

<label class="bold" for="message">Additional details:</label>
<br />
<textarea rows="5" id="message"></textarea>
<br /><br />

<button class="large blue" id="send">Send</button>
<br /><br />
</div>


<div class="popup-container" id="paper-wait">
<div class="popup">
<h4>Please wait...</h4>
<p>Processing your request...</p>
</div>
</div>

<div class="popup-container" id="msg-report-sent">
<div class="popup">
<h4>Report Sent</h4>
<p>The report is sent.</p>
<p>It usually take less than 3 days for a problem to be fixed, however, depending on the problem it can take longer.</p>
</div>
</div>

<div class="popup-container" id="msg-rate-limited">
<div class="popup">
<h4>Take a Break!</h4>
<p>Quick Issue Reporter is still in beta, you can only submit one report every 15 minutes for now.</p>
</div>
</div>

<div class="popup-container" id="msg-network-error">
<div class="popup">
<h4>Connection Error</h4>
<p>Something went wrong, check your Internet connection. This could also be a problem on the server side.</p>
<p>Quick Issue Reporter is still in beta, if you repeatedly see this error, let me know by <a href="https://github.com/jspenguin2017/uBlockProtector/issues" target="_blank">opening an issue on GitHub</a>.</p>
</div>
</div>
</body>
</html>
7 changes: 7 additions & 0 deletions src/reporter/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Script for quick issue reporter.
*/
"use strict";

window.stop();
document.body.innerHTML = "This page is still under construction";
Loading

0 comments on commit 017d691

Please sign in to comment.