-
Notifications
You must be signed in to change notification settings - Fork 3
/
NoShitEmpornium.user.js
3129 lines (2642 loc) · 149 KB
/
NoShitEmpornium.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ==UserScript==
// @name NoShitEmpornium
// @namespace http://www.empornium.me/
// @version 2.7.11
// @license GPLv3
// @description Fully featured torrent filtering solution for Empornium
// @updateURL https://github.com/ceodoe/noshitempornium/raw/master/NoShitEmpornium.meta.js
// @downloadURL https://github.com/ceodoe/noshitempornium/raw/master/NoShitEmpornium.user.js
// @supportURL https://github.com/ceodoe/noshitempornium/issues
// @homepageURL https://github.com/ceodoe/noshitempornium/
// @icon https://www.google.com/s2/favicons?domain=empornium.is
// @author ceodoe
// @include /^https?://www\.empornium\.(me|sx|is)/torrents\.php*/
// @include /^https?://www\.empornium\.(me|sx|is)/collage\/*
// @include /^https?://www\.empornium\.(me|sx|is)/top10\.php*/
// @include /^https?://www\.empornium\.(me|sx|is)/user\.php\?action=notify/
// @include /^https?://www\.empornium\.(me|sx|is)/requests\.php/
// @exclude /^https?://www\.empornium\.(me|sx|is)/top10\.php.*(\?|&)(type=(users|tags|taggers))/
// @run-at document-end
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_listValues
// @grant GM_deleteValue
// @grant GM_addStyle
// ==/UserScript==
//
// Copyright © 2015-2022 ceodoe
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// +----------------------------+
// | Loading and initialization |
// +----------------------------+
// Get version information
let nseVersion = GM_info.script.version.split(".");
let nseVersionNum = Number(nseVersion[0] + nseVersion[1].padStart(2, "0") + nseVersion[2].padStart(2, "0"));
let nseSavedVersion = GM_getValue("nseSavedVersion", nseVersionNum);
GM_setValue("nseSavedVersion", nseSavedVersion);
// Load and initialize saved filter lists
let nseBlacklistTaglist = GM_getValue("nseTaglist", "enter.tags.here separated.by.spaces no.newlines").trim();
let nseBlacklistTags = nseBlacklistTaglist.split(" ");
nseBlacklistTags.sort();
nseBlacklistTaglist = nseBlacklistTags.join(" ");
if(nseBlacklistTags.length === 1 && nseBlacklistTags[0] === "") { nseBlacklistTags = new Array(0); }
GM_setValue("nseTaglist", nseBlacklistTaglist);
let nseHardPassTaglist = GM_getValue("nseHardPassTaglist", "enter.hard.pass.tags.here big.poopies gushing.blood").trim();
let nseHardPassTags = nseHardPassTaglist.split(" ");
nseHardPassTags.sort();
nseHardPassTaglist = nseHardPassTags.join(" ");
if(nseHardPassTags.length === 1 && nseHardPassTags[0] === "") { nseHardPassTags = new Array(0); }
GM_setValue("nseHardPassTaglist", nseHardPassTaglist);
let nseWhitelistTaglist = GM_getValue("nseWhitelist", "whitelist.tags go.here").trim();
let nseWhitelistTags = nseWhitelistTaglist.split(" ");
nseWhitelistTags.sort();
nseWhitelistTaglist = nseWhitelistTags.join(" ");
if(nseWhitelistTags.length === 1 && nseWhitelistTags[0] === "") { nseWhitelistTags = new Array(0); }
GM_setValue("nseWhitelist", nseWhitelistTaglist);
let nseBlacklistTitleList = GM_getValue("nseBlacklistTitles", "this is a title phrase;this is another title phrase").trim();
let nseBlacklistTitlePhrases = nseBlacklistTitleList.split(";");
nseBlacklistTitlePhrases.sort();
nseBlacklistTitleList = nseBlacklistTitlePhrases.join(";");
if(nseBlacklistTitlePhrases.length === 1 && nseBlacklistTitlePhrases[0] === "") { nseBlacklistTitlePhrases = new Array(0); }
GM_setValue("nseBlacklistTitles", nseBlacklistTitleList);
let nseWhitelistTitleList = GM_getValue("nseWhitelistTitles", "this is a title phrase;this is another title phrase").trim();
let nseWhitelistTitlePhrases = nseWhitelistTitleList.split(";");
nseWhitelistTitlePhrases.sort();
nseWhitelistTitleList = nseWhitelistTitlePhrases.join(";");
if(nseWhitelistTitlePhrases.length === 1 && nseWhitelistTitlePhrases[0] === "") { nseWhitelistTitlePhrases = new Array(0); }
GM_setValue("nseWhitelistTitles", nseWhitelistTitleList);
let nseBlacklistUploadersList = GM_getValue("nseUploaders", "PutUserNamesHere SeparatedBySpaces NoNewlines").trim();
let nseBlacklistUploaders = nseBlacklistUploadersList.split(" ");
nseBlacklistUploaders.sort();
nseBlacklistUploadersList = nseBlacklistUploaders.join(" ");
if(nseBlacklistUploaders.length === 1 && nseBlacklistUploaders[0] === "") { nseBlacklistUploaders = new Array(0); }
GM_setValue("nseUploaders", nseBlacklistUploadersList);
let nseWhitelistUploadersList = GM_getValue("nseWhitelistUploaders", "PutUserNamesHere SeparatedBySpaces NoNewlines").trim();
let nseWhitelistUploaders = nseWhitelistUploadersList.split(" ");
nseWhitelistUploaders.sort();
nseWhitelistUploadersList = nseWhitelistUploaders.join(" ");
if(nseWhitelistUploaders.length === 1 && nseWhitelistUploaders[0] === "") { nseWhitelistUploaders = new Array(0); }
GM_setValue("nseWhitelistUploaders", nseWhitelistUploadersList);
// Delete obsolete options
GM_deleteValue("nseEnableGCDCompatibilityMode");
// Load saved options
// Filtering options
// Individual upload filtering
let nseIndividualUploadHidingEnabled = GM_getValue("nseIndividualUploadHidingEnabled", true);
let nseIndividualUploadHidingBlacklist = GM_getValue("nseIndividualUploadHidingBlacklist", new Array(0));
let nseIndividualUploadHidingWhitelist = GM_getValue("nseIndividualUploadHidingWhitelist", new Array(0));
// Filter all button
let nseFilterAllButtonEnabled = GM_getValue("nseFilterAllButtonEnabled", true);
// Right-Click Management
let nseRightClickManagementEnabled = GM_getValue("nseRightClickManagementEnabled", true);
let nseRCMTagsEnabled = GM_getValue("nseRCMTagsEnabled", true);
let nseRCMTitlesEnabled = GM_getValue("nseRCMTitlesEnabled", true);
let nseRCMUploadersEnabled = GM_getValue("nseRCMUploadersEnabled", true);
// Torrent site status
let nseHideAnonUploadsEnabled = GM_getValue("nseHideAnonUploadsEnabled", false);
let nseHideReportedEnabled = GM_getValue("nseHideReportedEnabled", false);
let nseHideWarnedEnabled = GM_getValue("nseHideWarnedEnabled", false);
let nseHideUnseededEnabled = GM_getValue("nseHideUnseededEnabled", false);
// Torrent personal status
let nseHideGrabbedEnabled = GM_getValue("nseHideGrabbedEnabled", false);
let nseHideLeechingEnabled = GM_getValue("nseHideLeechingEnabled", false);
let nseHideSeedingEnabled = GM_getValue("nseHideSeedingEnabled", false);
let nseHideSnatchedEnabled = GM_getValue("nseHideSnatchedEnabled", false);
let nseHideBookmarkedEnabled = GM_getValue("nseHideBookmarkedEnabled", false);
let nseBypassWhitelistsEnabled = GM_getValue("nseBypassWhitelistsEnabled", false);
// Hard Pass
let nseHardPassEnabled = GM_getValue("nseHardPassEnabled", false);
let nseRemoveHardPassResults = GM_getValue("nseRemoveHardPassResults", false);
// Interface options
// Oblivious mode
let nseObliviousModeEnabled = GM_getValue("nseObliviousModeEnabled", false);
// Custom CSS
let nseCustomCSSEnabled = GM_getValue("nseCustomCSSEnabled", false);
let nseCustomCSS = GM_getValue("nseCustomCSS", "/* With great power comes great responsibility */");
// Auto-scroll to NSE
let nseScrollToNSEEnabled = GM_getValue("nseScrollToNSEEnabled", false);
// Emoji
let nseEmojiEnabled = GM_getValue("nseEmojiEnabled", true);
// Update toasts
let nseUpdateToastsEnabled = GM_getValue("nseUpdateToastsEnabled", true);
// Open all button
let nseOpenAllButtonEnabled = GM_getValue("nseOpenAllButtonEnabled", true);
let nseOpenAllGoNextEnabled = GM_getValue("nseOpenAllGoNextEnabled", false);
// Fonts
let nseUIFont = GM_getValue("nseUIFont", "Helvetica");
let nseTextAreaFont = GM_getValue("nseTextAreaFont", "Monospace");
// Highlight colors
let nseBlacklistColor = GM_getValue("nseBlacklistColor", "#F00");
let nseHardPassColor = GM_getValue("nseHardPassColor", "#A00");
let nseWhitelistColor = GM_getValue("nseWhitelistColor", "#0F0");
// Custom timeout
let nseTimeout = GM_getValue("nseTimeout", 1500);
// Theme
let nseSelectedTheme = GM_getValue("nseSelectedTheme", "nseThemeDefault");
let nseCustomTheme = GM_getValue("nseCustomTheme", {
backgroundColor: "#fff",
backgroundHighlightColor: "#cfe7ff",
foregroundColor: "#000",
accentColor: "#0af",
highlightColor: "#0071b0",
hiddenBackgroundColor: "#aaf"
});
if(nseCustomTheme.hiddenBackgroundColor == undefined) {
nseCustomTheme.hiddenBackgroundColor = "#aaf";
}
let themes = {
nseThemeDefault:
{
backgroundColor: "#fff",
backgroundHighlightColor: "#cfe7ff",
foregroundColor: "#000",
accentColor: "#0af",
highlightColor: "#0071b0",
hiddenBackgroundColor: "#aaf"
},
nseThemeLegacy:
{
backgroundColor: "#00f",
backgroundHighlightColor: "#44f",
foregroundColor: "#fff",
accentColor: "#ddd",
highlightColor: "#fff",
hiddenBackgroundColor: "#aaf"
},
nseThemeEdgy:
{
backgroundColor: "#000",
backgroundHighlightColor: "#333",
foregroundColor: "#f00",
accentColor: "#f22",
highlightColor: "#f22",
hiddenBackgroundColor: "#aaf"
},
nseThemeBaked:
{
backgroundColor: "#8300ff",
backgroundHighlightColor: "#087300",
foregroundColor: "#0a8700",
accentColor: "#b669ff",
highlightColor: "#b669ff",
hiddenBackgroundColor: "#aaf"
},
nseThemeDarkPurple:
{
backgroundColor: "#31363b",
backgroundHighlightColor: "#495057",
foregroundColor: "#ffffff",
accentColor: "#7b68ee",
highlightColor: "#7b68ee",
hiddenBackgroundColor: "#aaf"
},
nseThemeCustom:
{
backgroundColor: nseCustomTheme.backgroundColor,
backgroundHighlightColor: nseCustomTheme.backgroundHighlightColor,
foregroundColor: nseCustomTheme.foregroundColor,
accentColor: nseCustomTheme.accentColor,
highlightColor: nseCustomTheme.highlightColor,
hiddenBackgroundColor: nseCustomTheme.hiddenBackgroundColor
}
};
let nseThemeDescriptions = {
nseThemeDefault: "White background with black text and blue accents",
nseThemeLegacy: "Ye Olde Theme with a blue background and white text",
nseThemeEdgy: "For the edgelord in all of us, red text on a black background",
nseThemeBaked: "Ayyyy 420 blaze it — Green and purple",
nseThemeDarkPurple: "A dark mode theme with purple highlights",
nseThemeCustom: "Define your own colors using the text boxes below"
};
// Extras
let nseRenumberTorrentsEnabled = GM_getValue("nseRenumberTorrentsEnabled", true);
let nseHideCategoryIconsEnabled = GM_getValue("nseHideCategoryIconsEnabled", false);
let nseArrowNavigationEnabled = GM_getValue("nseArrowNavigationEnabled", false);
// "Fun"
let nseRussianRouletteEnabled = GM_getValue("nseRussianRouletteEnabled", false);
let nseEveryDayIsApril1st = GM_getValue("nseEveryDayIsApril1st", false);
// +------------------------------+
// | Script setup and preparation |
// +------------------------------+
// Figure out what page we're on
let currentPage = "Torrents";
if(window.location.href.includes("top10.php")) {
currentPage = "Top 10";
} else if(window.location.href.includes("user.php?action=notify")) {
currentPage = "Notification filters";
} else if(window.location.href.match(/torrents\.php.*(\?|&)(action=notify)/)) {
currentPage = "Notifications";
} else if(window.location.href.match(/torrents\.php.*(\?|&)(id=)/)) {
currentPage = "Torrent details";
} else if(window.location.href.includes("/collage/")) {
currentPage = "Collage";
} else if(window.location.href.includes("/requests.php")) {
currentPage = "Requests";
} else if(window.location.href.includes("type=uploaded")) {
// Check if we are on our own uploaded page
let myUserID = document.querySelector(".username").href.match(/id=([0-9]+)/)[1];
let pageUserID = window.location.href.match(/userid=([0-9]+)/)[1];
if(myUserID === pageUserID) {
currentPage = "My uploaded";
} else {
currentPage = "Uploaded";
}
}
// Define which of our pages where filtering doesn't apply, but other functionality should work
let nseUnfilteredPages = ["My uploaded", "Notification filters", "Torrent details"];
// Reenable torrent icon box and hide comments if GCD is running, check for its unique elements a.comment
if(currentPage == "Torrents") { //torrents.php is the only page we have in common
window.setTimeout(function() {
if(document.querySelector("a.comment")) {
GM_addStyle(`
span.torrent_icon_container {
display: flex !important;
}
`);
for(let i = 0; i < torrents.length; i++) {
let gcdCommentElement = torrents[i].querySelector("td > div > a.comment");
let clmCommentElement = torrents[i].querySelector("td:nth-child(4)");
if(gcdCommentElement) {
clmCommentElement.innerHTML = "";
clmCommentElement.appendChild(gcdCommentElement);
}
}
}
}, nseTimeout);
}
let nseEnableApril1stOption = false;
if(nseBlacklistTags.includes("hehehehehe")) {
nseEnableApril1stOption = true;
}
// Get storage size
window.setTimeout(function() {
let bytesUsed = exportSettings(true);
if(bytesUsed < 1024) {
document.getElementById("nseDataUsage").innerHTML = bytesUsed + " bytes";
} else {
document.getElementById("nseDataUsage").innerHTML = Math.round((bytesUsed / 1024) * 100) / 100 + " KiB";
}
}, nseTimeout);
// Check if we've just updated
if(nseUpdateToastsEnabled) {
if(nseVersionNum > nseSavedVersion) {
GM_setValue("nseSavedVersion", nseVersionNum); // Update saved version so toast is only shown once
let updateToast = document.createElement("div");
updateToast.innerHTML = `
<div id="nseUpdateToast">
<div class="nseUpdateToastDiv">
<big>Hooray! NoShitEmpornium was just updated to <b>v${GM_info.script.version}</b>!</big>
</div>
<div class="nseUpdateToastDiv">
<span class="nseNiceButton" id="nseSeeWhatsNewButton">
<span class="nseEmoji">📋</span> See what's new!
</span>
<span class="nseNiceButton" id="nseCloseUpdateToastButton">
<span class="nseEmoji">❌</span> Close
</span>
<span class="nseNiceButton" id="nseNeverShowUpdateToastButton">
<span class="nseEmoji">🚫</span> Don't show again
</span>
</div>
</div>
`;
let reference = document.querySelector("body > :last-child");
reference.after(updateToast);
document.getElementById("nseSeeWhatsNewButton").onclick = function() {
window.open("https://github.com/ceodoe/noshitempornium/blob/master/CHANGELOG.md#latest-changes",'_blank');
this.parentNode.parentNode.remove();
};
document.getElementById("nseCloseUpdateToastButton").onclick = function() {
this.parentNode.parentNode.remove();
};
document.getElementById("nseNeverShowUpdateToastButton").onclick = function() {
document.getElementById("nseCheckUpdateToasts").checked = false;
saveData();
this.parentNode.parentNode.remove();
};
}
}
// +--------------+
// | HTML section |
// +--------------+
// Set up reference node
let referenceNode = document.querySelector("div#filter_slidetoggle"); // Torrents
if(currentPage == "Top 10") {
referenceNode = document.querySelector("#content > div > form");
} else if(currentPage == "Notification filters") {
referenceNode = document.querySelector("div.linkbox");
} else if(currentPage == "Notifications") {
referenceNode = document.querySelector("#content > div > h2");
} else if(currentPage == "Torrent details") {
referenceNode = document.querySelector(".linkbox");
} else if(currentPage == "Collage") {
referenceNode = document.querySelector("div.thin > div.clear:nth-child(6)");
} else if(currentPage == "Uploaded" || currentPage == "My uploaded") {
referenceNode = document.querySelector(".submit");
} else if(currentPage == "Requests") {
referenceNode = document.querySelector("#search_form");
}
// Die if we can't get a reference node, most likely the site is borked or changed its code
if(!referenceNode) {
throw "Note: NSE died on the way back to his home planet (referenceNode is null)";
}
let htmlContent = document.createElement("div");
htmlContent.innerHTML = `
<div id="nseOuter" class="nseOuterDiv">
<div id="nseHeader">
<span id="nseHeaderText">NoShitEmpornium</span>
<span id="nseToggleOptionsNode" class="nseNiceButton">Options</span><span id="nseDynamicRefreshNode" class="nseNiceButton hidden" title="Reload the page to apply your changes" onclick="javascript:location.reload();">🗘</span>
</div>
<div id="nseMainDiv" class="nseMainBox hidden">
<input class="nseRadioButton" id="nseTab1" type="radio" name="tabs" checked>
<label class="nseLabel" for="nseTab1"><span class="nseEmoji">🏷️</span> Tags</label>
<input class="nseRadioButton" id="nseTab2" type="radio" name="tabs">
<label class="nseLabel" for="nseTab2"><span class="nseEmoji">📚</span> Titles</label>
<input class="nseRadioButton" id="nseTab3" type="radio" name="tabs">
<label class="nseLabel" for="nseTab3"><span class="nseEmoji">👥</span> Uploaders</label>
<input class="nseRadioButton" id="nseTab4" type="radio" name="tabs">
<label class="nseLabel" for="nseTab4"><span class="nseEmoji">⚙️</span> Settings</label>
<section id="nseContent1">
<div class="nseFieldDiv">
<span class="nseImageButton nseListHeader" id="nseTagBlacklistHeader"><span class="nseEmoji">👎</span> Tag blacklist <small>(space-separated)</small></span><sup class="nseExplanationToggler" id="nseBLEToggler">[?]</sup><br />
<div id="nseBLE" class="nseExplanationBox hidden">
<div class="nseExplanationNode">
<b>TL;DR</b>: <i>If any of these tags exist, hide the torrent</i>
</div>
<div class="nseExplanationNode">
This is where you specify tags you don't want to see. Any torrent matching
any of these tags will be hidden unless overridden by any of the whitelist
rules. The correct format for this field is the same used for tags on
Empornium itself: Tags are separated by spaces, and uses a period between
words within a tag. Character case does not matter. Blacklisted tags will be
<span class="nseHiddenTag">highlighted</span> when viewing
hidden torrents.
</div>
<div class="nseExplanationNode">
Example:<br />
<pre>scat piss.drinking jerk.off.instruction non.nude</pre>
</div>
</div>
<textarea class="nseTextArea" id="nseBlacklistTaglistArea" rows=10>${nseBlacklistTaglist}</textarea>
</div>
<div class="nseFieldDiv${nseHardPassEnabled ? '' : ' hidden'}">
<span class="nseImageButton nseListHeader" id="nseTagHardPassHeader"><span class="nseEmoji">🚫</span> Hard Pass blacklist <small>(space-separated)</small></span><sup class="nseExplanationToggler" id="nseHPEToggler">[?]</sup><br />
<div id="nseHPE" class="nseExplanationBox hidden">
<div class="nseExplanationNode">
<b>TL;DR</b>: <i>If any of these tags exist, hide the torrent <b>no matter what</b></i>
</div>
<div class="nseExplanationNode">
This is where you specify tags you don't want to see at all. Any torrent
matching any of these tags will be hidden unless overridden by individual
filtering (clicking the eye icon). The correct format for this field is the
same used for tags on Empornium itself: Tags are separated by spaces, and
uses a period between words within a tag. Character case does not matter.
Hard Pass tags will be <span class="nseHardPassTag">highlighted</span> when viewing hidden torrents. The torrent will be removed completely from the results if the Black Hole
option is enabled.
</div>
<div class="nseExplanationNode">
Example:<br />
<pre>virtual.reality scat puke blood enema</pre>
</div>
</div>
<textarea class="nseTextArea" id="nseHardPassTaglistArea" rows=10>${nseHardPassTaglist}</textarea>
</div>
<div class="nseFieldDiv">
<span class="nseImageButton nseListHeader" id="nseTagWhitelistHeader"><span class="nseEmoji">👍</span> Tag whitelist <small>(space-separated)</small></span><sup class="nseExplanationToggler" id="nseWLEToggler">[?]</sup><br />
<div id="nseWLE" class="nseExplanationBox hidden">
<div class="nseExplanationNode">
<b>TL;DR</b>: <i>If any of these tags exist, ignore all other rules and show the torrent</i>
</div>
<div class="nseExplanationNode">
This is where you specify tags you want to show regardless of all other
rules. In other words, no matter if the torrent matches on tags, title or
uploader blacklists — if it contains any of these whitelisted tags, it
will be shown regardless. The correct format for this field is the same used
for tags on Empornium itself: Tags are separated by spaces, and uses a
period between words within a tag. Character case does not matter.
Whitelisted tags will be <span class="nseWhitelistedTag">highlighted</span>.
</div>
<div class="nseExplanationNode">
Example:<br />
<pre>sasha.grey huge.ass gianna.michaels femdom</pre>
</div>
</div>
<textarea class="nseTextArea" id="nseWhitelistTaglistArea" rows=10>${nseWhitelistTaglist}</textarea>
</div>
</section>
<section id="nseContent2">
<div class="nseFieldDiv">
<span class="nseImageButton nseListHeader" id="nseTitleBlacklistHeader"><span class="nseEmoji">👎</span> Title blacklist <small>(semicolon-separated)</small></span><sup class="nseExplanationToggler" id="nseTitleBLEToggler">[?]</sup><br />
<div id="nseTitleBLE" class="nseExplanationBox hidden">
<div class="nseExplanationNode">
<b>TL;DR</b>: <i>If any of these phrases are in the title, hide the torrent</i>
</div>
<div class="nseExplanationNode">
This is where you specify title phrases you want to filter on. This is
useful for hiding untagged content with a recurring theme (for example
specific JAV series you don't care about, or re-encoded content).
Character case does not matter. <b>Title phrases are separated by
semicolons <span class="nseMonospace">;</span> — not spaces, unlike
tags or uploaders!</b>
</div>
<div class="nseExplanationNode">
Example:<br />
<pre>sdmm;hikr;princess peach;reencode</pre>
</div>
</div>
<textarea class="nseTextArea" id="nseBlacklistTitleListArea" rows=10>${nseBlacklistTitleList}</textarea>
</div>
<div class="nseFieldDiv">
<span class="nseImageButton nseListHeader" id="nseTitleWhitelistHeader"><span class="nseEmoji">👍</span> Title whitelist <small>(semicolon-separated)</small></span><sup class="nseExplanationToggler" id="nseTitleWLEToggler">[?]</sup><br />
<div id="nseTitleWLE" class="nseExplanationBox hidden">
<div class="nseExplanationNode">
<b>TL;DR</b>: <i>If any of these phrases are in the title, ignore all other rules and show the torrent</i>
</div>
<div class="nseExplanationNode">This is where you specify title phrases you want to show regardless of other rules. Character case does not matter. <b>Title phrases are separated by semicolons <span class="nseMonospace">;</span> — not spaces like tags or uploaders!</b>
</div>
<div class="nseExplanationNode">Example:<br /><pre>minipack;super mario;sdmm;moist</pre></div>
</div>
<textarea class="nseTextArea" id="nseWhitelistTitleListArea" rows=10>${nseWhitelistTitleList}</textarea>
</div>
</section>
<section id="nseContent3">
<div class="nseFieldDiv">
<span class="nseImageButton nseListHeader" id="nseUploaderBlacklistHeader"><span class="nseEmoji">👎</span> Uploader blacklist <small>(space-separated)</small></span><sup class="nseExplanationToggler" id="nseUBLEToggler">[?]</sup><br />
<div id="nseUBLE" class="nseExplanationBox hidden">
<div class="nseExplanationNode">
<b>TL;DR</b>: <i>If this torrent is uploaded by any of these users, hide it</i>
</div>
<div class="nseExplanationNode">
This is where you specify the names of uploaders you want to hide all
uploads from, unless overriden by a whitelist rule. Uploader names will be
<span class="nseHiddenUploader">highlighted</span> when viewing
hidden torrents. Character case does not matter. Note that filtering based
on usernames will not function on collage or user upload pages, as torrent
uploaders are not exposed on those pages.
</div>
<div class="nseExplanationNode">
Example:<br />
<pre>SuperUploader2007 LowQualityUploadsIncorporated</pre>
</div>
</div>
<textarea class="nseTextArea" id="nseBlacklistUploadersArea" rows=10>${nseBlacklistUploadersList}</textarea>
</div>
<div class="nseFieldDiv">
<span class="nseImageButton nseListHeader" id="nseUploaderWhitelistHeader"><span class="nseEmoji">👍</span> Uploader whitelist <small>(space-separated)</small></span><sup class="nseExplanationToggler" id="nseUWLEToggler">[?]</sup><br />
<div id="nseUWLE" class="nseExplanationBox hidden">
<div class="nseExplanationNode">
<b>TL;DR</b>: <i>If this torrent is uploaded by any of these users, show it regardless of any other rules</i>
</div>
<div class="nseExplanationNode">
This is where you specify the names of uploaders you want to show all
uploads from, regardless of any blacklist rules. Uploader names will be
<span class="nseWhitelistedUploader">highlighted</span>. Character
case does not matter. Note that filtering based on usernames will not
function on collage or user upload pages, as torrent uploaders are not
exposed on those pages.
</div>
<div class="nseExplanationNode">
Example:<br />
<pre>NobelPrizeWinningUploads ActuallyGreatUploader69 ceodoe</pre>
</div>
</div>
<textarea class="nseTextArea" id="nseWhitelistUploadersArea" rows=10>${nseWhitelistUploadersList}</textarea>
</div>
</section>
<section id="nseContent4">
<input class="nseRadioButton" id="nseSettingsTab1" type="radio" name="settingsTabs" checked>
<label class="nseLabel" for="nseSettingsTab1"><span class="nseEmoji">🔍</span> Filtering</label>
<input class="nseRadioButton" id="nseSettingsTab2" type="radio" name="settingsTabs">
<label class="nseLabel" for="nseSettingsTab2"><span class="nseEmoji">🖥️</span> Interface</label>
<input class="nseRadioButton" id="nseSettingsTab3" type="radio" name="settingsTabs">
<label class="nseLabel" for="nseSettingsTab3"><span class="nseEmoji">🗃️</span> Data management</label>
<input class="nseRadioButton" id="nseSettingsTab4" type="radio" name="settingsTabs">
<label class="nseLabel" for="nseSettingsTab4"><span class="nseEmoji">ℹ️</span> About</label>
<section id="nseSettingsContent1">
<h3 class="nseH3">Filtering</h3>
<b>Individual uploads</b><br />
<input type="checkbox" id="nseCheckIndividualHide"${nseIndividualUploadHidingEnabled ? ' checked' : ''} />
<label for="nseCheckIndividualHide" class="nseSettingsCheckbox">
<span class="nseEmoji">👁️</span> Enable individual upload filtering
</label><br />
<span class="nseExplanationSpan nseESOffset">(Click the eye icon next to the torrent name to blacklist/whitelist uploads</span><br />
<span class="nseExplanationSpan nseESOffset">individually, ignoring <b>all</b> other rules. These filters are automatically saved)</span><br /><br />
<input type="checkbox" id="nseCheckFilterAllButtonEnabled"${nseFilterAllButtonEnabled ? ' checked' : ''} />
<label for="nseCheckFilterAllButtonEnabled" class="nseSettingsCheckbox">
<span class="nseEmoji">👁️</span> Enable "Filter all unfiltered results" button
</label><br />
<span class="nseExplanationSpan nseESOffset">(Requires individual upload filtering to be enabled to function)</span>
<br /><br />
<b>List management</b><br />
<input type="checkbox" id="nseCheckRightClickManagementEnabled"${nseRightClickManagementEnabled ? ' checked' : ''} />
<label for="nseCheckRightClickManagementEnabled" class="nseSettingsCheckbox">
<span class="nseEmoji">🖱️</span> Enable Right-Click Management (RCM)
</label>
<div id="nseRCMCustomizationDiv" ${nseRightClickManagementEnabled ? '' : 'class="hidden"'}>
<span class="nseESOffset">
<input type="checkbox" id="nseCheckRCMTagsEnabled"${nseRCMTagsEnabled ? ' checked' : ''} />
<label for="nseCheckRCMTagsEnabled" class="nseSettingsCheckbox">
<span class="nseEmoji">🏷️</span> Enable for tags
</label><br />
</span>
<span class="nseESOffset">
<input type="checkbox" id="nseCheckRCMTitlesEnabled"${nseRCMTitlesEnabled ? ' checked' : ''} />
<label for="nseCheckRCMTitlesEnabled" class="nseSettingsCheckbox">
<span class="nseEmoji">📚</span> Enable for titles
</label><br />
</span>
<span class="nseESOffset">
<input type="checkbox" id="nseCheckRCMUploadersEnabled"${nseRCMUploadersEnabled ? ' checked' : ''} />
<label for="nseCheckRCMUploadersEnabled" class="nseSettingsCheckbox">
<span class="nseEmoji">👥</span> Enable for uploaders
</label>
</span>
</div><br />
<span class="nseExplanationSpan">Right-click a tag/title/uploader in the torrent list to add/remove from your lists.</span><br /><br />
<b>Torrent site status</b><br />
<input type="checkbox" id="nseCheckHideAnonUploads"${nseHideAnonUploadsEnabled ? ' checked' : ''} />
<label for="nseCheckHideAnonUploads" class="nseSettingsCheckbox">
<span class="nseEmoji">👤</span> Hide all anonymous uploads
</label>
<span class="nseExplanationSpan">(Will still be overridden by whitelist rules)</span><br />
<input type="checkbox" id="nseCheckHideReported"${nseHideReportedEnabled ? ' checked' : ''} />
<label for="nseCheckHideReported" class="nseSettingsCheckbox">
<span class="nseEmoji">⛔</span> Hide reported uploads
</label>
<span class="nseExplanationSpan">(Hide torrents with active reports, whitelists will override)</span><br />
<input type="checkbox" id="nseCheckHideWarned"${nseHideWarnedEnabled ? ' checked' : ''} />
<label for="nseCheckHideWarned" class="nseSettingsCheckbox">
<span class="nseEmoji">⚔️</span> Hide warned uploads
</label>
<span class="nseExplanationSpan">(Hide torrents with active warning, whitelists will override)</span><br />
<input type="checkbox" id="nseCheckHideUnseeded"${nseHideUnseededEnabled ? ' checked' : ''} />
<label for="nseCheckHideUnseeded" class="nseSettingsCheckbox">
<span class="nseEmoji">🏜️</span> Hide unseeded uploads
</label>
<span class="nseExplanationSpan">(Hide torrents with zero seeders, whitelists will override)</span><br /><br />
<b>Torrent personal status</b><br />
<input type="checkbox" id="nseCheckHideGrabbed"${nseHideGrabbedEnabled ? ' checked' : ''} />
<label for="nseCheckHideGrabbed" class="nseSettingsCheckbox">
<span class="nseEmoji">💾</span> Hide grabbed uploads
</label>
<span class="nseExplanationSpan">(Hide torrents you have previously grabbed)</span><br />
<input type="checkbox" id="nseCheckHideLeeching"${nseHideLeechingEnabled ? ' checked' : ''} />
<label for="nseCheckHideLeeching" class="nseSettingsCheckbox">
<span class="nseEmoji">⏬</span> Hide leeching uploads
</label>
<span class="nseExplanationSpan">(Hide torrents you are currently leeching)</span><br />
<input type="checkbox" id="nseCheckHideSeeding"${nseHideSeedingEnabled ? ' checked' : ''} />
<label for="nseCheckHideSeeding" class="nseSettingsCheckbox">
<span class="nseEmoji">⏫</span> Hide seeding uploads
</label>
<span class="nseExplanationSpan">(Hide torrents you are currently seeding)</span><br />
<input type="checkbox" id="nseCheckHideSnatched"${nseHideSnatchedEnabled ? ' checked' : ''} />
<label for="nseCheckHideSnatched" class="nseSettingsCheckbox">
<span class="nseEmoji">💽</span> Hide snatched uploads
</label>
<span class="nseExplanationSpan">(Hide torrents you have already downloaded/snatched)</span><br />
<input type="checkbox" id="nseCheckHideBookmarked"${nseHideBookmarkedEnabled ? ' checked' : ''} />
<label for="nseCheckHideBookmarked" class="nseSettingsCheckbox">
<span class="nseEmoji">⭐</span> Hide bookmarked uploads
</label>
<span class="nseExplanationSpan">(Hide torrents you have previously bookmarked)</span><br /><br />
<input type="checkbox" id="nseCheckBypassWhitelists"${nseBypassWhitelistsEnabled ? ' checked' : ''} />
<label for="nseCheckBypassWhitelists" class="nseSettingsCheckbox">
<span class="nseEmoji">💫</span> Bypass whitelists for personal status filtering
</label><br />
<span class="nseExplanationSpan nseESOffset">(Ignore all whitelists when filtering grabbed/leeching/seeding/snatched torrents)</span><br /><br />
<b>Hard Pass</b><br />
<input type="checkbox" id="nseCheckHardPassEnabled"${nseHardPassEnabled ? ' checked' : ''} />
<label for="nseCheckHardPassEnabled" class="nseSettingsCheckbox">
<span class="nseEmoji">🚫</span> Hard Pass
</label><span class="nseExplanationSpan">(Enable the Hard Pass blacklist, found in the "Tags" tab)</span><br />
<input type="checkbox" id="nseCheckRemoveHardPassResults"${nseRemoveHardPassResults ? ' checked' : ''} />
<label for="nseCheckRemoveHardPassResults" class="nseSettingsCheckbox">
<span class="nseEmoji">⚫</span> Black Hole
</label><span class="nseExplanationSpan">(Remove results instead of hiding them behind the toggle)</span><br /><br />
<span class="nseExplanationSpan">Hard Pass enables an extra tag blacklist that will make sure that torrents with the given tags will be hidden no matter what. The only thing that can override Hard Pass is whitelisting a torrent through individual filtering when Black Hole is disabled. Enable the Black Hole option to remove results from the page entirely.</span><br /><br />
</section>
<section id="nseSettingsContent2">
<h3 class="nseH3">Interface</h3>
<div>
<input type="checkbox" id="nseCheckObliviousMode"${nseObliviousModeEnabled ? ' checked' : ''} />
<label for="nseCheckObliviousMode" class="nseSettingsCheckbox">
<span class="nseEmoji">❓</span> Oblivious
</label>
<span class="nseExplanationSpan">(Hide torrent tag lists)</span><br />
<input type="checkbox" id="nseCheckCustomCSS"${nseCustomCSSEnabled ? ' checked' : ''} />
<label for="nseCheckCustomCSS" class="nseSettingsCheckbox">
<span class="nseEmoji">📜</span> Custom CSS
</label>
<span class="nseExplanationSpan">(Define your own CSS rules)</span><br />
<div id="nseCustomCSSDiv" ${nseCustomCSSEnabled ? '' : 'class="hidden"'}>
Define your custom CSS below. Note that this code is injected at the very end of the built-in CSS, so use the !important tag liberally to overwrite existing rules. Do not escape backslashes, it will be done automatically. Avoid using backticks. <br />
<textarea class="nseTextArea" id="nseCustomCSSArea" rows=10>${nseCustomCSS.replace(/\\\\/gi,"\\")}</textarea>
</div>
<input type="checkbox" id="nseCheckScrollToNSEEnabled"${nseScrollToNSEEnabled ? ' checked' : ''} />
<label for="nseCheckScrollToNSEEnabled" class="nseSettingsCheckbox">
<span class="nseEmoji">⚓</span> Automatically scroll to NSE on page load
</label>
<span class="nseExplanationSpan">(Makes browsing several pages easier)</span><br />
<input type="checkbox" id="nseCheckEmojiEnabled"${nseEmojiEnabled ? ' checked' : ''} />
<label for="nseCheckEmojiEnabled" class="nseSettingsCheckbox">
<span class="nseEmoji">🖼️</span> Enable extended Unicode icons ("emoji")
</label>
<span class="nseExplanationSpan">(Disable if you see garbled characters)</span><br />
<input type="checkbox" id="nseCheckUpdateToasts"${nseUpdateToastsEnabled ? ' checked' : ''} />
<label for="nseCheckUpdateToasts" class="nseSettingsCheckbox">
<span class="nseEmoji">❗</span> Notify me when NSE is updated
</label>
<span class="nseExplanationSpan">(Get changelog info on update)</span><br />
<input type="checkbox" id="nseCheckOpenAllButton"${nseOpenAllButtonEnabled ? ' checked' : ''} />
<label for="nseCheckOpenAllButton" class="nseSettingsCheckbox">
<span class="nseEmoji">📂</span> Enable the "Open all unfiltered results" button
</label><br />
<span class="nseExplanationSpan nseESOffset">(Appears under the NSE options area. If your browser tells you it blocked Emp</span><br />
<span class="nseExplanationSpan nseESOffset">from opening popups, click the Preferences button and allow popups for Emp)</span><br />
<input type="checkbox" id="nseCheckOpenAllGoNext"${nseOpenAllGoNextEnabled ? ' checked' : ''} />
<label for="nseCheckOpenAllGoNext" class="nseSettingsCheckbox">
<span class="nseEmoji">➡️</span> Automatically go to next results page after clicking "Open all" button
</label><br /><br />
<br />
User interface font family: <br />
<input type="text" class="nseInput" value="${nseUIFont}" id="nseUIFont" /> <span class="nseExplanationSpan">(Corresponds to the <a class="nseLink" href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-family" target="_blank"><b><u>CSS font-family property</u></b></a>)</span>
<br /><br />
Filter list font family: <br />
<input type="text" class="nseInput" value="${nseTextAreaFont}" id="nseTextAreaFont" /> <span class="nseExplanationSpan">(Font for black/whitelists textareas)</span>
<br /><br />
Highlight color for blacklisted elements: <br />
<input type="text" class="nseInput" value="${nseBlacklistColor}" id="nseBlacklistColor" /> <span class="nseExplanationSpan">(You can use any <a class="nseLink" href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value" target="_blank"><b><u>CSS color notation</u></b></a> here)</span>
<br /><br />
Highlight color for Hard Pass tags: <br />
<input type="text" class="nseInput" value="${nseHardPassColor}" id="nseHardPassColor" />
<br /><br />
Highlight color for whitelisted elements: <br />
<input type="text" class="nseInput" value="${nseWhitelistColor}" id="nseWhitelistColor" />
<br /><br />
Timeout for timed functions (milliseconds): <br />
<input type="text" class="nseInput" style="width: 50px;" value="${nseTimeout}" id="nseTimeout" /> <span class="nseExplanationSpan">(Used for GCD support and computing storage size)</span>
<br /><br />
Theme:<br />
<select name="nseThemeDropdown" id="nseThemeDropdown" class="nseInput">
<option value="nseThemeDefault" ${nseSelectedTheme=="nseThemeDefault" ? "selected='selected'" : ''}>Default</option>
<option value="nseThemeLegacy" ${nseSelectedTheme=="nseThemeLegacy" ? "selected='selected'" : ''}>Legacy</option>
<option value="nseThemeEdgy" ${nseSelectedTheme=="nseThemeEdgy" ? "selected='selected'" : ''}>Edgy</option>
<option value="nseThemeBaked" ${nseSelectedTheme=="nseThemeBaked" ? "selected='selected'" : ''}>Baked</option>
<option value="nseThemeDarkPurple" ${nseSelectedTheme=="nseThemeDarkPurple" ? "selected='selected'" : ''}>Dark Purple</option>
<option value="nseThemeCustom" ${nseSelectedTheme=="nseThemeCustom" ? "selected='selected'" : ''}>Custom</option>
</select>
<span id="nseThemeDescription" class="nseExplanationSpan">${nseThemeDescriptions[nseSelectedTheme]}</span>
<div id="nseCustomThemeDiv" ${nseSelectedTheme=="nseThemeCustom" ? '' : 'class="hidden"'}>
<p>
You can use any <a class="nseLink" href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value" target="_blank">CSS color notation</a> here.<br />
Examples: <span class="nseMonospace">#ffffff — rgb(0,0,255) — aquamarine</span>
</p>
<p>
Background color:<br />
<input type="text" class="nseInput" id="nseCustomThemeBgCol" value='${nseCustomTheme.backgroundColor}' />
</p>
<p>
Background highlight color:<br />
<input type="text" class="nseInput" id="nseCustomThemeBgHighCol" value='${nseCustomTheme.backgroundHighlightColor}' />
</p>
<p>
Foreground color:<br />
<input type="text" class="nseInput" id="nseCustomThemeForeCol" value='${nseCustomTheme.foregroundColor}' />
</p>
<p>
Accent color:<br />
<input type="text" class="nseInput" id="nseCustomThemeAccentCol" value='${nseCustomTheme.accentColor}' />
</p>
<p>
Highlight color:<br />
<input type="text" class="nseInput" id="nseCustomThemeHighCol" value='${nseCustomTheme.highlightColor}' />
</p>
<p>
Hidden torrent background color:<br />
<input type="text" class="nseInput" id="nseCustomThemeHiddenBgCol" value='${nseCustomTheme.hiddenBackgroundColor}' />
</p>
<p>Remember to click the [Save] button to save your changes!</p>
</div>
</div>
<div class="nseTopAiryDiv">
<b>Extras</b><br />
<input type="checkbox" id="nseCheckRenumberTorrents"${nseRenumberTorrentsEnabled ? ' checked' : ''} />
<label for="nseCheckRenumberTorrents" class="nseSettingsCheckbox">
<span class="nseEmoji">🔢</span> Renumber torrents on "Top X" pages
</label>
<span class="nseExplanationSpan">(Fixes torrent numbering after filtering)</span><br />
<input type="checkbox" id="nseCheckHideCategoryIcons"${nseHideCategoryIconsEnabled ? ' checked' : ''} />
<label for="nseCheckHideCategoryIcons" class="nseSettingsCheckbox">
<span class="nseEmoji">🟪</span> Hide category icons
</label>
<span class="nseExplanationSpan">(Hides category icons/links in torrent lists)</span><br />
<input type="checkbox" id="nseCheckArrowNavigation"${nseArrowNavigationEnabled ? ' checked' : ''} />
<label for="nseCheckArrowNavigation" class="nseSettingsCheckbox">
<span class="nseEmoji">⌨️</span> Navigate paginated torrent lists with keyboard arrow keys
</label><br />
<span class="nseExplanationSpan nseESOffset">(Note that NSE only runs on torrent lists, if you want</span><br />
<span class="nseExplanationSpan nseESOffset">arrow key navigation globally on Empornium, use <a class="nseLink" href="https://github.com/ceodoe/noshitempornium/raw/master/GlobalArrowKeyNavigation.user.js" target="_blank"><b><u>this script</u></b></a>)</span>
</div>
<div class="nseTopAiryDiv nseBtmAiryDiv">
<b>"Fun"</b><br />
<input type="checkbox" id="nseCheckRussianRouletteMode"${nseRussianRouletteEnabled ? ' checked' : ''} />
<label for="nseCheckRussianRouletteMode" class="nseSettingsCheckbox">
<span class="nseEmoji">🎲</span> Russian Roulette
</label>
<span class="nseExplanationSpan">(Randomly and silently show filtered torrents)</span><br />
${nseEnableApril1stOption ? `<input type="checkbox" id="nseCheckApril1stAllYear"${nseEveryDayIsApril1st ? ' checked' : ''} />
<label for="nseCheckApril1stAllYear" class="nseSettingsCheckbox">
<span class="nseEmoji">🤪</span> Every day is April 1st
</label>
<span class="nseExplanationSpan">(For the masochists among us)</span>` : ''}
</div>
</section>
<section id="nseSettingsContent3">
<h3 class="nseH3">Data management</h3>
<p>
<span class="nseExplanationSpan">Use these functions to import, export or reset all your NSE lists and settings.</span><br /><br />
NSE is currently using <span id="nseDataUsage"></span> of data in your LocalStorage.
<div class="nseNiceBox"><span class="nseEmoji">⤵️</span> Import NSE data<br />
<input type="file" accept=".json,text/plain" id="nseImportFilePicker" class="nseInput">
</div><br />
<span class="nseNiceButton" id="nseExportButton"><span class="nseEmoji">⤴️</span> Export NSE data</span>
<span class="nseNiceButton" id="nseEraseDataButton"><span class="nseEmoji">🔄</span> Reset NSE data</span><br /><br />
<span class="nseExplanationSpan"><b>IMPORTANT: Data overwritten or reset by the functions above is <i>not</i> recoverable!</b></span>
</p>
</section>
<section id="nseSettingsContent4">
<h3 class="nseH3">About</h3>
<p>
Copyright © 2015-2022 ceodoe. NoShitEmpornium v${GM_info.script.version} was made with ${nseEmojiEnabled ? '💕' : 'love'} by <a class="nseLink" href="/user.php?id=508194">ceodoe</a> of Empornium, and its code is licensed under the <a class="nseLink" href="https://www.gnu.org/licenses/gpl-3.0.txt" target="_blank">GNU General Public License v3.0</a>.
</p>
<h3 class="nseH3">Statistics</h3>
<p>
<span class="nseExplanationSpan">This section is populated when the page loads, and does not reflect changes done thereafter.</span><br />
<br />
Number of blacklisted tags: <span class="nseHiddenTag">${nseBlacklistTags.length}</span><br />
${nseHardPassEnabled ? `Number of Hard Pass tags: <span class="nseHiddenTag">${nseHardPassTags.length}</span><br />` : ""}
Number of blacklisted title phrases: <span class="nseHiddenTag">${nseBlacklistTitlePhrases.length}</span><br />
Number of blacklisted uploaders: <span class="nseHiddenTag">${nseBlacklistUploaders.length}</span><br />
${nseIndividualUploadHidingEnabled ? `Number of individually blacklisted torrents: <span class="nseHiddenTag">${nseIndividualUploadHidingBlacklist.length}</span><br />` : ""}
<br />
Number of whitelisted tags: <span class="nseWhitelistedTag">${nseWhitelistTags.length}</span><br />
Number of whitelisted title phrases: <span class="nseWhitelistedTag">${nseWhitelistTitlePhrases.length}</span><br />
Number of whitelisted uploaders: <span class="nseWhitelistedTag">${nseWhitelistUploaders.length}</span><br />
${nseIndividualUploadHidingEnabled ? `Number of individually whitelisted torrents: <span class="nseWhitelistedTag">${nseIndividualUploadHidingWhitelist.length}</span><br />` : ""}
</p>
<h3 class="nseH3">Resources</h3>
<p>
<b>
<span class="nseEmoji">🧵</span> <a class="nseLink" href="/forum/thread/44258?postid=956045#post956045" target="_blank">Read the official thread on the Empornium forums</a><br />
<span class="nseEmoji">🐙</span> <a class="nseLink" href="https://github.com/ceodoe/noshitempornium" target="_blank">Report a bug or view commit history on GitHub</a><br />
<span class="nseEmoji">📋</span> <a class="nseLink" href="https://github.com/ceodoe/noshitempornium/blob/master/CHANGELOG.md#latest-changes" target="_blank">Read the changelog</a><br />
</b>
</p>
<h3 class="nseH3">Contribute</h3>
<p>
If you love NSE, consider a donation! I've spent a lot of time making this, and any sum is hugely appreciated. Credits on the site is also appreciated.<br /> <br />
Bitcoin (BTC): <span class="nseMonospace"><small>15YM9XCe5isbf1T8TBjku1BYmyNTj1ZyX9</small></span><br />
Bitcoin Cash (BCH): <span class="nseMonospace"><small>qqcuude6a6q09r0a6ujvvklzm6qjrxtr5vfwkxrk34</small></span><br />
Ethereum (ETH): <span class="nseMonospace"><small>0xD66eB1CafE88f299929b4FCedCCac3B3D9d7Bee1</small></span><br />
Stellar (XLM): <span class="nseMonospace"><small>GD7KXIYO3FTINLBXIJCBMOXVMO4DCXNSLFJTEAIILZAODEMDQRSOT532</small></span>
<br /><br />
You can also contribute by reporting bugs, submitting feature requests, pull requests, or just generally using NSE to its fullest. Thanks for using my software!
</p>
<p></p>
</section>
</section>
<div class="nseSettingsControlDiv">
<span id="nseSaveButton" class="nseNiceButton"><span class="nseEmoji">💾</span> Save</span>
<span id="nseReloadButton" class="nseNiceButton"><span class="nseEmoji">🔃</span> Reload page and apply changes</span>
<span id="nseCloseOptionsButton" class="nseNiceButton"><span class="nseEmoji">❌</span> Close options</span>
</div>
<div class="nseSettingsControlDiv" id="nseSaveDiv" class="hidden">
</div>
</div>
</div>
${!nseUnfilteredPages.includes(currentPage) && (nseOpenAllButtonEnabled || (nseFilterAllButtonEnabled && nseIndividualUploadHidingEnabled)) ? `
<div class="nseTopAiryDiv nseBtmAiryDiv nseCenterDiv">
${nseOpenAllButtonEnabled ? `
<div style="display: inline;">
<span class="nseNiceButton" id="nseOpenAllButton">
<span class="nseEmoji">📂</span>
Open all unfiltered results
</span>
</div>
` : ''}
${nseFilterAllButtonEnabled && nseIndividualUploadHidingEnabled ? `
<div style="display: inline;">
<span class="nseNiceButton" id="nseFilterAllButton">
<span class="nseEmoji">👁</span>
Filter all unfiltered results
</span>
</div>
` : ''}
</div>
` : ''}
<div id="nseRCMBox" class="hidden">
<div id="nseRCMClose">${nseEmojiEnabled ? '❌' : '<span class="nseHiddenTag"><b><big>X</big></b></span>'}</div>
<p id="nseRCMBoxInfoText">Tag/uploader placeholder text</p>