This file contains hidden or 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
// ==UserScript== | |
// @name Remove music.youtube.com popup reminders | |
// @namespace http://tampermonkey.net/ | |
// @version 4 | |
// @description removes the "are you still there?" annoyances | |
// @author You | |
// @match https://music.youtube.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
// https://www.decisionproblem.com/paperclips/index2.html | |
function makeDecision() { | |
var pp_step=window.pp_step||0; | |
clipClick(1); | |
var lastUnsold=window.lastUnsold||0, qtot=0; | |
if (unsoldClips>avgSales*2.1 && margin>0.01 && unsoldClips>lastUnsold) lowerPrice(); | |
else if (unsoldClips<avgSales*2 && unsoldClips<=lastUnsold) raisePrice(); | |
window.lastUnsold=unsoldClips; | |
if (!btnMakeClipper.disabled && funds>clipperCost+wireCost && document.querySelector('#megaClipperDiv').style.display=='none') makeClipper(); | |
if (!btnMakeMegaClipper.disabled && funds>megaClipperCost+wireCost) makeMegaClipper(); |
This file contains hidden or 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
GameManager.prototype.actuateOld = GameManager.prototype.actuate; | |
GameManager.prototype.actuate = function() { | |
this.actuateOld(); | |
var lowest= 0; | |
this.grid.eachCell(function(x, y, tile) { | |
if (tile && tile.value) lowest= lowest? Math.min(lowest, tile.value) : tile.value; | |
}); | |
var dirBest = 0, dirGood=0; | |
for (var i = 0; i < this.grid.size; ++i) { | |
var c = [], dirHoriz=Math.random()>=0.5?1:3; |