Skip to content

Instantly share code, notes, and snippets.

View J2TEAM's full-sized avatar
💭
I may be slow to respond.

JUNO_OKYO J2TEAM

💭
I may be slow to respond.
View GitHub Profile
@J2TEAM
J2TEAM / proxy.php
Created February 8, 2019 14:38 — forked from iovar/proxy.php
Simple PHP Proxy Script
<?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
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 16:23
Fast configuration switching between static and dynamic IP address.
#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
// ==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 March 22, 2018 17:18
Code thêm nhiều video Youtube vào một playlist.
/* 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 March 20, 2018 04:22
Get ID of Facebook Group
require('ScriptPath').getSourcePageInfo().extraData.entity_id;
/* 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 July 15, 2018 13:35
webtoons to IDM
/* 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'));
#NoTrayIcon
#include <File.au3>
; Developed by Juno_okyo (J2TEAM)
; https://junookyo.blogspot.com/
Global Const $PATH = @AppDataDir & '\' & @UserName
main()
@J2TEAM
J2TEAM / J2TEAM Community WinRAR.txt
Created November 20, 2017 16:15
Cool comment for WinRAR
 ___ _____ _____ _____ ___ ___ ___
|_ |/ __ \_ _| ___|/ _ \ | \/ |
| |`' / /' | | | |__ / /_\ \| . . |
| | / / | | | __|| _ || |\/| |
/\__/ /./ /___ | | | |___| | | || | | |
\____/ \_____/ \_/ \____/\_| |_/\_| |_/
 _____ _ _
/ __ \ (_) |