List of incompetent jackasses who can't check a source if their lives depended on it:
about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar.
Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and
rendering normally. Some settings may also make firefox unstable.
I am not liable for any damages/loss of data.
Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions
(HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".
/* C# Example | |
// var pageLoadWait = new WebDriverWait(WebDriver, TimeSpan.FromSeconds(timeout)); | |
pageLoadWait.Until<bool>( | |
(driver) => | |
{ | |
return (bool)JS.ExecuteScript( | |
@"*/ | |
try { | |
if (document.readyState !== 'complete') { | |
return false; // Page not loaded yet |
# Execute this in NuGet PowerShell console | |
$projects = get-project -all | ?{ $_.Properties | ?{ $_.Name -eq "WebApplication.StartWebServerOnDebug" } } | |
$projects | %{ $_.Properties | ?{ $_.Name -eq "WebApplication.StartWebServerOnDebug"} | %{ $_.Value = $False } } | |
$projects | %{ $_.Properties | ?{ $_.Name -eq "WebApplication.DebugStartAction"} | %{ $_.Value = 4 } } |
<html> | |
<head> | |
<title>Select styles with CSS only</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body { | |
background-color: #fff; | |
font-family: helvetica, sans-serif; | |
margin: 4% 10% | |
} |
server { | |
server_name yoursite.com; | |
root /usr/share/html; | |
index index.html; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} | |
} |
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>HEAD</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
<AllowedHeader>*</AllowedHeader> |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace GithubWikiDoc | |
{ |
var system = require('system'),isDebugMode = false; | |
/** | |
* Wait until the test condition is true or a timeout occurs. Useful for waiting | |
* on a server response or for a ui change (fadeIn, etc.) to occur. | |
* | |
* @param testFx javascript condition that evaluates to a boolean, | |
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or | |
* as a callback function. | |
* @param onReady what to do when testFx condition is fulfilled, |
public static IEnumerable<object[]> ExpirationMethods | |
{ | |
get | |
{ | |
return new TheoryDataSet<Expression<Action<Cache>>> | |
{ | |
cache => cache.Clock.UtcNow.Returns(BaseTime + cache.Duration), | |
cache => cache.Expire() | |
}; | |
} |