Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Juno_okyo J2TEAM

💭
I may be slow to respond.
Block or report user

Report or block J2TEAM

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="author" content="Jake Albaugh">
<title>JUNO_OKYO</title>
</head>
<body>
<!-- Simple audio playback -->
@J2TEAM
J2TEAM / log.js
Created Mar 21, 2019
Auto disable console.log() on production
View log.js
const DEBUG = false;
if (!DEBUG) {
if (!window.console) window.console = {};
let methods = ['log', 'debug', 'warn', 'info'];
for (let i = 0; i < methods.length; i++) {
console[methods[i]] = function() {};
}
}
@J2TEAM
J2TEAM / proxy.php
Created Feb 8, 2019 — forked from iovar/proxy.php
Simple PHP Proxy Script
View proxy.php
<?php
/*
* Warning! Read and use at your own risk!
*
* This tiny proxy script is completely transparent and it passes
* all requests and headers without any checking of any kind.
* The same happens with JSON data. They are simply forwarded.
*
* This is just an easy and convenient solution for the AJAX
View background.js
chrome.webRequest.onHeadersReceived.addListener(
function (details) {
for (var i = 0; i < details.responseHeaders.length; ++i) {
if (details.responseHeaders[i].name.toLowerCase() == 'x-frame-options') {
details.responseHeaders.splice(i, 1);
return {
responseHeaders: details.responseHeaders
};
}
}
@J2TEAM
J2TEAM / ip-config.au3
Created May 31, 2018
Fast configuration switching between static and dynamic IP address.
View ip-config.au3
#NoTrayIcon
#RequireAdmin
#Region AutoIt3Wrapper directives section
#AutoIt3Wrapper_Icon=juno_okyo.ico
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_UseUpx=Y
#AutoIt3Wrapper_Compile_both=Y ;=> Compile both X86 and X64 in one run
#AutoIt3Wrapper_Res_Comment=Developed by Juno_okyo
#AutoIt3Wrapper_Res_Description=Developed by Juno_okyo
View facebook-sidebar-cleaner.js
// ==UserScript==
// @name Facebook Sidebar Cleaner
// @namespace https://junookyo.blogspot.com/
// @version 0.1
// @description Remove useless section on Sidebar
// @author Juno_okyo
// @match https://www.facebook.com/*
// @grant none
// ==/UserScript==
@J2TEAM
J2TEAM / youtube-playlist-maker.js
Created Mar 22, 2018
Code thêm nhiều video Youtube vào một playlist.
View youtube-playlist-maker.js
/* Developed by Juno_okyo */
(function(e, b) {
function f(a, b) {
var d = fetch,
e = "sej=" + encodeURIComponent(JSON.stringify({
playlistEditEndpoint: {
playlistId: a,
actions: [{
addedVideoId: b,
action: "ACTION_ADD_VIDEO"
@J2TEAM
J2TEAM / get-group-id.js
Created Mar 20, 2018
Get ID of Facebook Group
View get-group-id.js
require('ScriptPath').getSourcePageInfo().extraData.entity_id;
View click-count.js
/* Developed by Juno_okyo */
function clickCount(c){var b=document.querySelector(c);if(null!==b){var a=b.dataset;void 0===a.clickCount?(a.clickCount=1,b.addEventListener("click",function(){clickCount(c)},!1)):(a.clickCount=parseInt(a.clickCount)+1,console.info("Clicked: "+a.clickCount))}}
// <button type="button" id="test">Click me</button>
// Call function: clickCount("#test");
@J2TEAM
J2TEAM / webtoons.com.js
Last active Jul 15, 2018
webtoons to IDM
View webtoons.com.js
/* Developed by Juno_okyo */
/* Example URL: http://www.webtoons.com/en/fantasy/unordinary/episode-77/viewer?title_no=679&episode_no=83 */
let imgs = [];
Array.from(document.querySelectorAll('#_imageList > img')).map(img => {
imgs.push(img.src);
});
copy(imgs.join('\n'));
You can’t perform that action at this time.