React:
Vue:
React:
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 |
{ | |
"server": "myserver.com", | |
"server_port": 10777, | |
"password": "ZMv5HNQ77SEkekvLJd8WYf8sRd4Z2", | |
"method": "chacha20-ietf-poly1305", | |
"local_address": "127.0.0.1", | |
"local_port": 15080 | |
} |