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
| import { getBalance, getPools, getPoolBalances, getLiquidityProviders, } from './fetch.js' | |
| import { | |
| getStableCacaoValue, convertCacaoToStableValue, convertAssetToStableValue, calculateLiquidityPoolBalances, | |
| formatCacaoValue, | |
| } from './calculate.js' | |
| let TARGET_ASSET = 'DASH.DASH' | |
| let STABLE_COIN_ASSET = 'ETH.USDT-0XDAC17F958D2EE523A2206206994597C13D831EC7' | |
| const pools = await getPools() |
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
| javascript:void function(){ | |
| const d=document,q=d.querySelectorAll("style.dplgngr"),s=d.createElement("style"); | |
| if(q?.length)return q.forEach(a=>a.remove()); | |
| let b='#fff',i='95',h='180'; | |
| s.type="text/css"; | |
| s.className="dplgngr"; | |
| s.innerText=` | |
| html { background-color: ${b}; } | |
| html,img,video,iframe { filter: invert(${i}%) hue-rotate(${h}deg); } | |
| `; |
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
| javascript:void function(){ | |
| let b='#fff',toggle=true,i=95,ii=0,ia=100,h=180,hi=0,ha=360; | |
| const d=document,ce=(n)=>d.createElement(n),q=d.querySelectorAll(".dplgngr"),s=ce("style"),c=ce("form"),t='Doppelgänger'; | |
| if(q?.length)return q.forEach(a=>a.remove()); | |
| const invertStyles = (b,i,h) => `html { background-color: ${b}; } | |
| html,img,video,iframe { filter: invert(${i}%) hue-rotate(${h}deg); }`; | |
| const styles = (b,i,h,t) => `${t ? invertStyles(b,i,h) : ''} | |
| .dplgngr fieldset { border: 0 solid transparent; margin-top: 1em; padding: 0; display: grid; grid-template-areas: "l l" "r n"; grid-template-columns: 2fr 1fr; column-gap: 1em; } | |
| .dplgngr label { grid-area: l; } |
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
| javascript:void function(){ | |
| (async function(){ | |
| let j = document, | |
| k = (...a) => j.querySelectorAll(...a), | |
| l = ((...a) => j.querySelector(...a))( | |
| 'tr.react-directory-row a[title="package.json"]', | |
| )?.href?.replace("blob", "raw"), | |
| { dependencies: h, devDependencies: a } = await window | |
| .fetch(l) | |
| .then((a) => a.json()), |
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
| javascript:void function(){ | |
| if (!document.pictureInPictureEnabled) { | |
| console.log("Your browser cannot use picture-in-picture") | |
| return; | |
| } | |
| document.querySelector("video").requestPictureInPicture() | |
| }(); |
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
| javascript:void function(){ | |
| document.querySelectorAll("video,audio").forEach(function(c){ | |
| let a=c.playbackRate; | |
| c.playbackRate=1, | |
| console.log(`changed media playback rate from ${a} to ${c.playbackRate}`) | |
| }) | |
| }(); |
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
| javascript:void function(){ | |
| let a=new URL(location).searchParams.get("v"), | |
| b=new Intl.NumberFormat("en-US"), | |
| c=trustedTypes.createPolicy("forceInner", { createHTML: a => a }); | |
| fetch(`https://returnyoutubedislikeapi.com/Votes?videoId=${a}`).then(a=>a?.text?.()) | |
| .then(a => "{" === a[0] && JSON.parse(a) || a) | |
| .then(a => { | |
| console.log("dislikes",a); | |
| a?.dislikes && document.body.insertAdjacentHTML( | |
| "beforeend", |
OlderNewer