private var ultraListBlockedRequests = 0
private var ultraPrivacyBlockedRequests = 0
private var thirdPartyBlockedRequests = 0
+ private var xRequestedWithHeader = mutableMapOf<String, String>()
init {
// Enable nested scrolling by default.
}
+ // X-Requested-With header.
+ fun getXRequestedWithHeader() : MutableMap<String, String> {
+ // Return the X-Requested-With header.
+ return xRequestedWithHeader
+ }
+
+ fun setXRequestedWithHeader() {
+ // Set the X-Requested-With header to use a null value.
+ if (xRequestedWithHeader.isEmpty())
+ xRequestedWithHeader["X-Requested-With"] = ""
+ }
+
+ fun resetXRequestedWithHeader() {
+ // Clear the map, which resets the X-Requested-With header to use the default value of the application ID (com.stoutner.privacybrowser.standard).
+ xRequestedWithHeader.clear()
+ }
+
+
// Publicly expose the scroll ranges.
fun getHorizontalScrollRange(): Int {
// Return the horizontal scroll range.