Skip to content

Instantly share code, notes, and snippets.

var url='https://query.yahooapis.com/v1/public/yql?q=select * from html where url=\''+document.getElementsByClassName('commu_name')[0].href+'\' and xpath=\'//a[@class=\"community\"][starts-with(@href,\"http://live.nicovideo.jp/watch/\")]\'&format=json&env=store://datatables.org/alltableswithkeys';
var x=new XMLHttpRequest();
x.onload=function(){
var r=JSON.parse(x.responseText).query.results;
if(r!==null)
location.href=r.a.href;
};
setInterval(function(){
x.open('GET',url);
x.send();
Set Fs = WScript.CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell")
If LCase(Fs.GetFileName(WScript.FullName)) = "wscript.exe" Then
WshShell.Run "cscript """ & WScript.ScriptFullName & """"
WScript.Quit
End If
uid = InputBox("会員番号(半角数字)を入力してください。")
function xhr(url, payload, method, headers){
var x = new XMLHttpRequest();
x.open(method, url, false);
setRequestHeader(x, method, headers)
x.send(payload);
return x;
}
function axhr(url, payload, method, headers, responseType, callback){
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css"></style>
<script type="text/javascript">
var tag = document.createElement("script");
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
function xhr(url,callback){
var x = new XMLHttpRequest();
x.onload = function(){
callback(x.response);
}
x.open('GET',url);
x.responseType = 'document';
x.send();
}
import re
import webapp2
import lxml.html
from google.appengine.api import urlfetch
class MainHandler(webapp2.RequestHandler):
def get(self):
page = int(self.request.get('entries'))/10
s = 0
p = 0
from django.shortcuts import render
from django.http import HttpResponse
from .models import Greeting
# Create your views here.
def index(request):
return HttpResponse('Hello World!')
javascript:(function(){alert('Start');var x=new XMLHttpRequest();x.open('POST','http://uni.priget.com/s/app/gacha_limited/limited_gacha_continuation_exec.php?guid=ON',false);x.setRequestHeader('Content-Type','application/x-www-form-urlencoded');x.send('gid=34&play_count=2000&ticket=0');alert('Completed');})();
javascript:(function(){var ele=document.getElementsByTagName('video')[0];ele.loop=!(ele.loop);})();