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
#!/usr/bin/env bash | |
# This script clones all repos in a GitHub org and pushes to the upstream | |
# It requires the GH CLI: https://cli.github.com | |
# It can be re-run to collect new repos and pull the latest changes | |
set -euo pipefail | |
USAGE="Usage: gh-clone-org <user|org> <target>" |
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 webpackUniversalModuleDefinition(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,function(){return function(o){function webpackJsonpCallback(t){for(var e,n,r=t[0],i=t[1],s=0,a=[];s<r.length;s++)n=r[s],u[n]&&a.push(u[n][0]),u[n]=0;for(e in i)Object.prototype.hasOwnProperty.call(i,e)&&(o[e]=i[e]);for(c&&c(t);a.length;)a.shift()()}var n={},u={0:0};function __webpack_require__(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,__webpack_require__),e.l=!0,e.exports}__webpack_require__.e=function requireEnsure(i){var t=[],n=u[i];if(0!==n)if(n)t.push(n[2]);else{var e=new Promise(function(t,e){n=u[i]=[t,e]});t.push(n[2]=e);var r,s=document.createElement("script");s.charset="utf-8",s.timeout=120,__webpack_require__.nc&&s.setAttribute("nonce",__webpack_require__.nc),s.src=function jsonpScr |
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
/*! intercom.js | https://github.com/diy/intercom.js | Apache License (v2) */ | |
var Intercom=function(){var g=function(){};g.createInterface=function(b){return{on:function(a,c){"undefined"===typeof this[b]&&(this[b]={});this[b].hasOwnProperty(a)||(this[b][a]=[]);this[b][a].push(c)},off:function(a,c){"undefined"!==typeof this[b]&&this[b].hasOwnProperty(a)&&i.removeItem(c,this[b][a])},trigger:function(a){if("undefined"!==typeof this[b]&&this[b].hasOwnProperty(a))for(var c=Array.prototype.slice.call(arguments,1),e=0;e<this[b][a].length;e++)this[b][a][e].apply(this[b][a][e],c)}}}; | |
var m=g.createInterface("_handlers");g.prototype._on=m.on;g.prototype._off=m.off;g.prototype._trigger=m.trigger;var n=g.createInterface("handlers");g.prototype.on=function(){n.on.apply(this,arguments);Array.prototype.unshift.call(arguments,"on");this._trigger.apply(this,arguments)};g.prototype.off=n.off;g.prototype.trigger=n.trigger;var f=window.localStorage;"undefined"===typeof f&&(f={getItem:function(){},setItem:function(){},removeItem: |
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(){var CryptoJS=CryptoJS||(function(Math,undefined){var create=Object.create||(function(){function F(){};return function(obj){var subtype;F.prototype=obj;subtype=new F();F.prototype=null;return subtype;};}()) | |
var C={};var C_lib=C.lib={};var Base=C_lib.Base=(function(){return{extend:function(overrides){var subtype=create(this);if(overrides){subtype.mixIn(overrides);} | |
if(!subtype.hasOwnProperty('init')||this.init===subtype.init){subtype.init=function(){subtype.$super.init.apply(this,arguments);};} | |
subtype.init.prototype=subtype;subtype.$super=this;return subtype;},create:function(){var instance=this.extend();instance.init.apply(instance,arguments);return instance;},init:function(){},mixIn:function(properties){for(var propertyName in properties){if(properties.hasOwnProperty(propertyName)){this[propertyName]=properties[propertyName];}} | |
if(properties.hasOwnProperty('toString')){this.toString=properties.toString;}},clone:function(){return this.init.prototype.extend(this);}};}());var WordArray=C_lib.WordArr |
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(){var a=a||(function(f,h){var k=Object.create||(function(){function p(){}return function(r){var q;p.prototype=r;q=new p();p.prototype=null;return q}}());var b={};var c=b.lib={};var l=c.Base=(function(){return{extend:function(q){var p=k(this);if(q){p.mixIn(q)}if(!p.hasOwnProperty("init")||this.init===p.init){p.init=function(){p.$super.init.apply(this,arguments)}}p.init.prototype=p;p.$super=this;return p},create:function(){var p=this.extend();p.init.apply(p,arguments);return p},init:function(){},mixIn:function(q){for(var p in q){if(q.hasOwnProperty(p)){this[p]=q[p]}}if(q.hasOwnProperty("toString")){this.toString=q.toString}},clone:function(){return this.init.prototype.extend(this)}}}());var n=c.WordArray=l.extend({init:function(q,p){q=this.words=q||[];if(p!=h){this.sigBytes=p}else{this.sigBytes=q.length*4}},toString:function(p){return(p||i).stringify(this)},concat:function(v){var s=this.words;var r=v.words;var p=this.sigBytes;var u=v.sigBytes;this.clamp();if(p%4){for(var t=0;t<u;t++){var q=(r[t>>>2]>> |
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
exports.createAuthorizationHeader=function(m,c,e,b,n,l,k,f,i){var h=exports.createSignedHeaders(e);var a=exports.createCanonicalRequest(b,n,{},e,l);var g=exports.createStringToSign(i,k,f,a);var d=exports.createSignature(c,i,k,f,g);var j=exports.createAuthorizationHeaders(i,m,k,f,h,d);return j};exports.createAuthorizationHeaders=function(d,c,e,a,f,b){return("AWS4-HMAC-SHA256 Credential="+c+"/"+exports.createCredentialScope(d,e,a)+", SignedHeaders="+f+", Signature="+b)};exports.createCanonicalRequest=function(f,d,b,e,c){var a=JSON.stringify(c);return[f.toUpperCase(),d,exports.createCanonicalQueryString(b),exports.createCanonicalHeaders(e),exports.createSignedHeaders(e),hexEncodedHash(String(a))].join("\n")};exports.createCanonicalQueryString=function(a){return Object.keys(a).sort().map(function(b){return encodeURIComponent(b)+"="+encodeURIComponent(a[b])}).join("&")};exports.createCanonicalHeaders=function(a){return Object.keys(a).sort().map(function(b){return b.toLowerCase().trim()+":"+a[b].toString().trim()+" |
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(a,b){if(typeof exports==="object"){module.exports=exports=b()}else{if(typeof define==="function"&&define.amd){define([],b)}else{a.CryptoJS=b()}}}(this,function(){var a=a||(function(h,j){var d;if(typeof window!=="undefined"&&window.crypto){d=window.crypto}if(!d&&typeof window!=="undefined"&&window.msCrypto){d=window.msCrypto}if(!d&&typeof global!=="undefined"&&global.crypto){d=global.crypto}if(!d&&typeof require==="function"){try{d=require("crypto")}catch(l){}}var b=function(){if(d){if(typeof d.getRandomValues==="function"){try{return d.getRandomValues(new Uint32Array(1))[0]}catch(s){}}if(typeof d.randomBytes==="function"){try{return d.randomBytes(4).readInt32LE()}catch(s){}}}throw new Error("Native crypto module could not be used to get secure random number.")};var o=Object.create||(function(){function s(){}return function(u){var t;s.prototype=u;t=new s();s.prototype=null;return t}}());var c={};var e=c.lib={};var n=e.Base=(function(){return{extend:function(t){var s=o(this);if(t){s.mixIn(t)}if(!s.has |
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
const MAX = 352; | |
document.querySelectorAll("fl-list-item").forEach(item=>{ | |
const bidsEntryData = item.querySelector(".BidEntryData"); | |
if(bidsEntryData){ | |
const bids=bidsEntryData.textContent.match(/\d+/)[0]; | |
if(+bids<MAX/100||+bids>MAX/10){ | |
item.querySelectorAll(".BitsListItemHeader.HasHoverState").forEach(bitsItem=>{bitsItem.style.backgroundColor = "blue";}); | |
} | |
} | |
}); |
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
const DELAY = 1000; | |
const delay = ms => new Promise(res => setTimeout(res, ms)); | |
const list = document.querySelectorAll("body > div.RnEpo.Yx5HN div.isgrP > ul li"); | |
for (const sub of list) { | |
try { | |
sub.querySelector("div.Igw0E.rBNOH.YBx95.ybXk5._4EzTm.soMvl > button").click(); | |
} catch (err) { | |
console.error(err) | |
sub.querySelector("div.Pkbci > button").click(); | |
} |
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
// Go to the following link in your YouTube: https://www.youtube.com/feed/channels | |
// Scroll the page all the way down until you reach the very last subscribed channel in your list | |
const DELAY = 100; | |
const delay = ms => new Promise(res => setTimeout(res, ms)); | |
const list = document.querySelectorAll("#grid-container > ytd-channel-renderer"); | |
for (let index = 0; index < list.length; index++) { | |
console.log("") |