React:
Vue:
React:
// ==UserScript== | |
// @name Only needful languages for AIPRM for ChatGPT | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author You | |
// @description try to take over the world! | |
// @match https://chat.openai.com/chat | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com | |
// @grant none | |
// ==/UserScript== |
React:
Vue:
React:
// ==UserScript== | |
// @name Coursehunter Separate Video Player | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://coursehunter.net/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== |
If tag with target="_blank"
or uses window.open
the hacker can replace original tab with opener.location="https://www.evilsite.com";
by opened page.
It can be used in a phishing attack
To fix it add rel="noopener"
to and 'noopener'
as third argument for window.open(
:
window.open('https://www.your.url','_blank','noopener')
Add header Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
to make sure that the user once accessed
the HTTPS version of the page will always be automatically redirected to it bypassing requests for HTTP.
Original text from: https://seanprashad.com/leetcode-patterns/ | |
---- | |
If input array is sorted then | |
- Binary search | |
- Two pointers | |
If asked for all permutations/subsets then | |
- Backtracking |
const onPageReady = (fn) => { | |
if (document.readyState !== 'loading') { | |
fn(); | |
} else { | |
document.addEventListener('DOMContentLoaded', fn); | |
} | |
}; | |
onPageReady(() => { | |
const doClean = (el) => { |
// ==UserScript== | |
// @name Auto expand jira comments | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author You | |
// @match https://rbs-develop.paymentgate.ru/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
// ==UserScript== | |
// @name Protect classic sort for JIRA comments | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author You | |
// @match https://rbs-develop.paymentgate.ru/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
// $/static/script.js | |
import './script2' | |
console.log('script1') | |
if (module.hot) { | |
module.hot.accept('./script2', function () { | |
console.log("YES") | |
}); |
#SingleInstance, Force | |
SendMode Input | |
SetWorkingDir, %A_ScriptDir% | |
;--- | |
; Win+F1 Switch off monitor | |
#F1::SendMessage,0x112,0xF170,2,,Program Manager |