This is a JS function to automatically mute Hulu when an ad comes on, then unmute it when the show comes back. It works a of 7/26/2019.
To create a bookmarklet, create a new bookmark starting with javascript:, then the contents of minified.js.
| function ExitOnError{ | |
| if (-Not $?) { exit 0 } | |
| } | |
| function Jonny-MergeBranch($Target = 'environment/integrate', [Switch]$Push = $false){ | |
| $TargetWhatever = ($Target -split '/')[-1] | |
| $CurrentBranch = (git branch --show-current) | |
| $TicketNumber = ($CurrentBranch -split '/')[-1] | |
| git fetch | |
| ExitOnError | |
| $MergeBranchName = "merge/$TargetWhatever/$TicketNumber" |
| param( | |
| [Parameter(Mandatory = $True)] | |
| [string]$BranchName, | |
| [Parameter(Mandatory = $True)] | |
| [string]$TargetOrg | |
| ) | |
| $ErrorActionPreference = "Stop" | |
| Import-Module -Force "$PSScriptRoot\Invoke-Sf.psm1" | |
| $PackageNames = Get-PackageNamesInDependencyOrder |
| LinkFile=%A_Startup%\SetWallpaper.lnk | |
| IfNotExist, %LinkFile% | |
| FileCreateShortcut, %A_ScriptFullPath%, %LinkFile% | |
| if FileExist("C:\Users\%A_Username%\wallpaper.png") | |
| backgroundFile = C:\Users\%A_Username%\wallpaper.png | |
| else | |
| backgroundFile = C:\Users\%A_Username%\wallpaper.jpg | |
| DllCall("SystemParametersInfo", UInt, 0x14, UInt, 0, Str, Trim(backgroundFile), UInt, 1) |
| // Simple JavaScript Templating | |
| // John Resig - http://ejohn.org/ - MIT Licensed | |
| (function(){ | |
| var cache = {}; | |
| this.tmpl = function tmpl(str, data){ | |
| // Figure out if we're getting a template, or if we need to | |
| // load the template - and be sure to cache the result. | |
| var fn = !/\W/.test(str) ? | |
| cache[str] = cache[str] || |
| { | |
| "Test": ["Github"], | |
| "Core": [ | |
| "Aliens", | |
| "Dinosaurs", | |
| "Ninjas", | |
| "Pirates", | |
| "Robots", | |
| "Tricksters", | |
| "Wizards", |
| {"lastUpload":"2021-07-21T16:39:29.709Z","extensionVersion":"v3.4.3"} |
This is a JS function to automatically mute Hulu when an ad comes on, then unmute it when the show comes back. It works a of 7/26/2019.
To create a bookmarklet, create a new bookmark starting with javascript:, then the contents of minified.js.
| var secondsToWait = 7; | |
| var secondsWaited = 0; | |
| var introMsg = "Hey"; | |
| function check() { | |
| console.log('checking ' + secondsWaited); | |
| var btn = document.getElementsByClassName('disconnectbtn')[0]; | |
| if(btn.textContent.includes('New')) { | |
| btn.click(); | |
| setTimeout(() => restart(), 1000); |
| /* Note! Requires jQuery right now :( */ | |
| var MagicWords = { | |
| spoken: [], | |
| data: undefined, | |
| init: function(d) { | |
| MagicWords.data = d; | |
| MagicWords.longest = 0; | |
| for(var i in MagicWords.data) { |
| @echo off | |
| echo %%%%%%%%%%%%%%Picasa Hidden Folder Finder%%%%%%%%%%%%%% | |
| REM Extremely short simple version is 'findstr /S /I /M /B "hidden" .picasa.ini' from the root folder. | |
| echo. | |
| set drive=%cd:~0,3% | |
| echo Scanning %drive%..... | |
| echo. | |
| set i=1 | |
| cd %drive% | |
| SETLOCAL ENABLEDELAYEDEXPANSION |