You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scratchpad-scripts/troubleshooter.js
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -176,9 +176,9 @@
176
176
177
177
if(aDbg.length==1)returnalert("narrowed it down to:\n\n"+aDbg[0].name+"\n");
178
178
if(aDbg.length==aALL.length){
179
-
letmsg="Failed to narrow it down beyond the initial "+aALL.length+" prefs. The problem is most likely caused by at least 2 prefs!\n\n";
180
-
msg+="Either those prefs are too far apart in the list or there are exactly 2 culprits and they just happen to be at the wrong place.\n\n";
181
-
msg+="In case it's the latter, the script can add a dummy pref and you can try again - Try again?";
179
+
constmsg="Failed to narrow it down beyond the initial "+aALL.length+" prefs. The problem is most likely caused by at least 2 prefs!\n\n"+
180
+
"Either those prefs are too far apart in the list or there are exactly 2 culprits and they just happen to be at the wrong place.\n\n"+
181
+
"In case it's the latter, the script can add a dummy pref and you can try again - Try again?";
182
182
if(confirm(msg))return_main([...aALL,oFILLER]);
183
183
}elseif(aDbg.length>10&&confirm("Narrowed it down to "+aDbg.length+" prefs. Try narrowing it down further?")){
184
184
return_main(aDbg.reverse());
@@ -194,14 +194,18 @@
194
194
195
195
constaBAK=getMyList(aPREFS);
196
196
//console.log(aBAK.length, "user-set prefs from our list detected and their values stored.");
197
+
198
+
constsMsg="all detected prefs reset.\n\n"+
199
+
"!! KEEP THIS PROMPT OPEN AND TEST THE SITE IN ANOTHER TAB !!\n\n"+
200
+
"IF the problem still exists, this script can't help you - click Cancel to re-apply your values and exit.\n\n"+
201
+
"Click OK if your problem is fixed.";
197
202
198
203
focus();
199
204
myreset(aBAK);
200
-
if(!confirm("all detected prefs reset.\n\n!! KEEP THIS PROMPT OPEN AND TEST THE SITE IN ANOTHER TAB !!\n\nIF the problem still exists, this script can't help you - click cancel to re-apply your values and exit.\n\nClick OK if your problem is fixed.")){
0 commit comments