$('head').append($('<style>@media print{a[href]:after{content:none !important;}}</style>')); // hide href values in links
$('head').append($('<style>@media print{a{color:rgb(0, 122, 151) !important;}}</style>')); // enforce link color
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Anonymous "self-invoking" function | |
(function() { | |
// Load the script | |
var script = document.createElement("SCRIPT"); | |
script.src = 'https://code.jquery.com/jquery-3.3.1.min.js'; | |
script.type = 'text/javascript'; | |
script.onload = function() { | |
var $ = window.jQuery; | |
// Use $ here... | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
let titleDOM = $('th.reactable-th-question_title').children('strong'); | |
let statusDOM = $('th.reactable-th-status'); | |
let tableDOM = $('tbody.reactable-data'); | |
let filtersDOM = $('div.filter-tag-bar'); | |
let refresh = function(){ | |
let count = $('tbody.reactable-data').children().length; | |
let acCount = $('tbody.reactable-data').find('td[value="ac"]').length; |
To prevent networksetup
from asking for password in the terminal, add the following line to the bottom of /etc/sudoers
, where <username>
is the actual username that you are using on your mac.
<username> ALL=(root) NOPASSWD: /usr/sbin/networksetup
Or, if you wish to enter your password each time you need to turn on/off the proxy, just skip this step.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"off": 60, | |
"on": 90, | |
"size": 150 | |
} |