This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @include http://* | |
// @include https://* | |
// @run-at document-end | |
// ==/UserScript== | |
if (window.location.host === 'bloggiamgia.vn') { | |
unsafeWindow.open = function () { } | |
document.querySelectorAll('.polyxgo_get_coupon').forEach(element => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = "http://www.phimmoi.net/phim/huyen-thoai-cua-ngay-mai-phan-4-7585/xem-phim.html"; | |
$ch = curl_init(); | |
{ | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tự trả lời | |
store.get('dapan').forEach((q, i) => { | |
let idcauhoi = q.IDQues; | |
let iddapan = q.IDAns; | |
let $select; | |
// Khoanh vùng đáp án hình đúng | |
if (q.AnswerType == 0) { | |
$select = $(`[onclick="luudapan(${idcauhoi},${iddapan},this)"]`); | |
$select.css({'border':'1px solid red'}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Make phone clickable | |
* @param string $input | |
* @param boolean $span | |
* @return string | |
*/ | |
function makePhoneClickable($input, $span = false) { | |
$regex = '/(?!\s)[\d\s\.\,\(\)\+]{9,30}\b/'; | |
$formatLink = function($matches) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Make email clickable | |
* | |
* @author Nguyen Tan Tai <[email protected]> | |
* @param string Input text | |
* @param boolean Want add <span> inside <a>? | |
* @return string Replaced string format with link or link span | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// just for fun | |
// fb.com/TaiSangVN | |
document.head.innerHTML = `<style>* { | |
margin: 0; | |
padding: 0; | |
} | |
.hacked { | |
background: black; | |
color: lime; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Cài đặt và chạy như nào? | |
* | |
* $ composer require fapbot/goutte | |
* $ php index.php | |
* | |
* Tham khảo thêm : | |
* - https://github.com/FriendsOfPHP/Goutte |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function fetchSource($url) | |
{ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var casper = require('casper').create({ | |
waitTimeout: 100000, | |
viewportSize: { | |
width: 900, | |
height: 720, | |
} | |
}); | |
var links; | |
function getLinks() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var casper = require('casper').create({ | |
waitTimeout: 100000, | |
viewportSize: { | |
width: 900, | |
height: 720, | |
} | |
}); | |
var links; | |
function getLinks() { |
NewerOlder