This is just stuff that I have put down that I find I use a lot of the time for my own reference.
$ git pull
// ==UserScript== | |
// @name Fullscreen Battlelog Server Browser (BF4) | |
// @namespace http://andersevenrud.github.io/ | |
// @version 0.5.0 | |
// @description Fullscreen Battlelog Server Browser (BF4) | |
// @match http://battlelog.battlefield.com/bf4 | |
// @match http://battlelog.battlefield.com/bf4/* | |
// @match http://cte.battlelog.battlefield.com/bf4 | |
// @match http://cte.battlelog.battlefield.com/bf4/* | |
// @match http://cte.battlelog.com/bf4 |
If you have a low-end device, you probably noticed the gray background color on your control center and notification shade. Let's bring back the glorious blur effect by patching MiuiSystemUI.apk
.
Prerequisites:
adb
apktool < v2.6.0
smali/baksmali
Code/Text Editor
{ | |
"AATes123": true, | |
"AcrylicAndBackground": true, | |
"AudioInfoSync": true, | |
"BatteryIndicator": true, | |
"CallingDiscoveryTimeout": 30, | |
"CallingEnableOnARM": true, | |
"CallingFromMessages": true, | |
"CallingLabelInProd": true, | |
"CallingNode": true, |
/* 2>nul || title FreeStandbyMemory.bat by AveYo v2019.06.01 | |
@echo off|| csc compiling snippet, advanced schedule, builtin add_remove - UPDATE: reliable free memory detection | |
set/a CLEAR_EVERY_MINUTES=1 | |
set/a CLEAR_WHEN_UNDER_MB=512 | |
set/a CLEAR_SYSTEMCACHEWS=0 | |
:: check_admin_rights | |
reg query "HKEY_USERS\S-1-5-20\Environment" /v TEMP >nul 2>nul || ( | |
color 0e & echo. & echo PERMISSION DENIED! Right-click %~nx0 ^& Run as administrator |
In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel
This post is written for Manifest v2, Manifest v3 is not yet released at the moment.
Ok, kids, today we are going to scrutinize a source code of a browser extension to speculate about its risks.
First, you will need to know how to download or view browser extension source codes:
const channels = [...document.querySelectorAll("#main-link.channel-link")].map(e => { | |
const [, a, b] = e.href.match("/((?:user)|(?:channel))/(.*)$"); | |
const feed = "https://www.youtube.com/feeds/videos.xml?" + (a === "user" ? "user=" : "channel_id=") + b; | |
const channelName = e.querySelector("yt-formatted-string.ytd-channel-name").innerText; | |
return [feed, channelName]; | |
}); | |
if (channels.length == 0) { | |
alert("Couldn't find any subscriptions"); | |
} else { | |
console.log(channels.map(([feed, _]) => feed).join("\n")); |
/** | |
* Retrieves all the rows in the active spreadsheet that contain data and logs the | |
* values for each row. | |
* For more information on using the Spreadsheet API, see | |
* https://developers.google.com/apps-script/service_spreadsheet | |
*/ | |
function readRows() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var rows = sheet.getDataRange(); | |
var numRows = rows.getNumRows(); |
Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.
To be able to send a colored text, you need to use the ansi
language for your code block and provide a prefix of this format before writing your text:
\u001b[{format};{color}m
\u001b
is the unicode escape for ESCAPE/ESC, meant to be used in the source of your bot (see ). If you wish to send colored text without using your bot you need to copy the character from the website.