Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name ProxyXMLHttpRequest
// @namespace ProxyXMLHttpRequest
// @description Proxy for the XMLHttpRequest.
// @include http://localhost/*
// @include http://superplayer.000webhostapp.com/*
// @include https://superplayer.000webhostapp.com/*
// @grant GM.xmlHttpRequest
// @grant unsafeWindow
// @run-at document-start
@NguyenKhong
NguyenKhong / cookie_jar.go
Created December 15, 2019 20:56 — forked from rowland/cookie_jar.go
Go http client with cookie support
###########################################
### ###
### Utorrent Server v3.0 Config File ###
### ###
### By Khizer Naeem ###
### khizernaeem@gmail.com ###
### Date: 29/12/2011 ###
### ###
###########################################
###########################################
[AutoRun]
enabled=true
program=/bin/bash /content/qTorrentExternalCmd.sh \"%F\"
[BitTorrent]
Session\AnnounceToAllTiers=true
Session\AsyncIOThreadsCount=8
Session\CheckingMemUsageSize=64
Session\CoalesceReadWrite=true
Session\CreateTorrentSubfolder=true
@NguyenKhong
NguyenKhong / webbrowser.py
Created December 12, 2020 19:58
mini web browser
import sys
from PyQt5.QtCore import QUrl, QSize
from PyQt5.QtGui import QIcon, QPixmap
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineScript, QWebEnginePage, QWebEngineProfile
from PyQt5.QtWidgets import QToolBar, QAction, QLineEdit, QProgressBar, QLabel, QMainWindow, QTabWidget, QStatusBar, QApplication
class WebProfile(QWebEngineProfile):
def __init__(self, *args, **kwargs):
super(WebProfile, self).__init__(*args, **kwargs)
self.setHttpUserAgent("Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0")
// ==UserScript==
// @name Colab Alive
// @namespace colab
// @version 0.2
// @description Colab Alive
// @author Nguyen Khong
// @match https://colab.research.google.com/drive/*
// @run-at document-start
// ==/UserScript==
document.addEventListener('DOMContentLoaded', function() {
import sys
from PyQt5.QtCore import QUrl, QSize
from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineScript, QWebEnginePage, QWebEngineProfile
from PyQt5.QtWidgets import QToolBar, QAction, QLineEdit, QLabel, QMainWindow, QTabWidget, QApplication
from PyQt5.QtNetwork import QNetworkCookie
import http.cookiejar
def create_script(name, src, injection_point = QWebEngineScript.DocumentCreation, world = QWebEngineScript.MainWorld, on_subframes = True):
script = QWebEngineScript()
script.setSourceCode(src)
#Only use for google colab
#@markdown <center><h3>Colab alive and vnc</h3></center><br>
import os,sys
import random
import string
import urllib.request
from IPython.display import HTML, clear_output
import time
#####################################
// ==UserScript==
// @name Anti Anti-debugger
// @namespace http://tampermonkey.net/
// @version 1
// @description Stops most anti debugging implementations by JavaScript obfuscaters
// @author ww
// @match *
// @include *
// @grant unsafeWindow
// @run-at document-start
// ==UserScript==
// @name Bypass anti copy
// @namespace anticopy
// @version 0.1
// @description try to take over the world!
// @author NguyenKhong
// @match https://blog.tomorrowmarketers.org/*
// @run-at document-start
// ==/UserScript==