// ==UserScript==
// @name AutoReload
// @description 自動定時重新整理
// @include http://elearning.npust.edu.tw/moodle/user/index.php?contextid=265782
// @version 2010-11-08
// ==/UserScript==
var infoBlock=document.createElement('p');
infoBlock.style.position='absolute';
infoBlock.style.top='10px';
infoBlock.style.left='40px';
infoBlock.style.fontSize='1.8em';
infoBlock.innerHTML=1;
document.body.appendChild(infoBlock);
function AR(){
var i=setInterval(function(){Info();},1000);
setTimeout(function(){clearInterval(i);location.reload();},60*1000);
}
function Info(){
infoBlock.innerHTML=parseInt(infoBlock.innerHTML,10)+1;
}
window.addEventListener('DOMContentLoaded',AR,false);
標籤
.net
(
17
)
工作
(
29
)
面試
(
2
)
筆記
(
2
)
筆記倉庫
(
1
)
嘸蝦米
(
2
)
繪圖
(
1
)
Add-on
(
4
)
Android
(
39
)
AngularJS
(
1
)
ASP.NET
(
14
)
AutoHotKey
(
20
)
AutoIt
(
3
)
batch
(
24
)
Blogger Hack
(
3
)
Bookmarklet
(
18
)
C#
(
16
)
Chrome
(
1
)
cmd
(
22
)
CSS
(
6
)
CSS3
(
6
)
D855
(
1
)
DOM
(
17
)
DragOnIt
(
5
)
EmEditor
(
1
)
English
(
1
)
ffmpeg
(
1
)
Firefox
(
25
)
flo
(
2
)
GIMP
(
1
)
gist
(
144
)
Graphviz
(
1
)
hardware
(
1
)
HDD
(
1
)
HTML5
(
4
)
i18n
(
1
)
IIS
(
4
)
ImageMagick
(
5
)
Java
(
1
)
JavaScript
(
92
)
jhead
(
1
)
jQuery
(
6
)
JSBin
(
19
)
jsFiddle
(
4
)
JSON
(
1
)
JustDoubleClick
(
1
)
Kindle
(
1
)
MSSQL
(
26
)
MySQL
(
2
)
Network
(
1
)
node.js
(
12
)
php
(
1
)
PowerShell
(
6
)
ramdisk
(
1
)
Reg
(
3
)
RegExp
(
3
)
rpi3
(
3
)
SJ2000
(
1
)
SQLite
(
3
)
SSD
(
1
)
Stylish
(
1
)
SublimeText
(
2
)
tips
(
6
)
userChrome.js
(
3
)
userscript
(
40
)
VB.net
(
9
)
VBScript
(
2
)
VisualStudio
(
2
)
Vue.js
(
3
)
Win
(
5
)
Win2008
(
1
)
Win7
(
29
)
WinAPI
(
1
)
Winform
(
1
)
WinXP
(
3
)
XML
(
1
)
定時重新整理網頁
標籤:
userscript
Places query URIs
標籤:
Firefox
找出最近新增已整理的Wretch相簿(20筆)
folder=BOOKMARKS_MENU → 書籤功能表
queryType=1 → 書籤(排除未排序書籤)
sort=12 → Sort by date added, most recent first.
maxResults=20 → 20筆資料
uri=http://www.wretch.cc/album → The URI to match.
uriIsPrefix=true → 過濾
Places query URIs - MDC Doc Center
Firefox書籤整理術:智慧書籤篇 - Mulberry的時間事件簿
Places query syntax • mozillaZine Forums
Places query URIs - MDC
place:folder=BOOKMARKS_MENU&queryType=1&sort=12&maxResults=20&uri=http://www.wretch.cc/album&uriIsPrefix=true
NOTE:folder=BOOKMARKS_MENU → 書籤功能表
queryType=1 → 書籤(排除未排序書籤)
sort=12 → Sort by date added, most recent first.
maxResults=20 → 20筆資料
uri=http://www.wretch.cc/album → The URI to match.
uriIsPrefix=true → 過濾
Places query URIs - MDC Doc Center
Firefox書籤整理術:智慧書籤篇 - Mulberry的時間事件簿
Places query syntax • mozillaZine Forums
Places query URIs - MDC
Node.replaceChild()
標籤:
DOM
,
JavaScript
var oldEle=document.querySelectorAll('#bigcontainer table')[2]; //Original Element
var newEle=document.createElement('div'); //New Element
oldEle.parentNode.replaceChild(newEle,oldEle);
Node.replaceChild - MDC Doc Center
Visual Studio 2008 中文字型
標籤:
VisualStudio
- Open
X:\Documents and Settings\Administrator\Application Data\Microsoft\VisualStudio\9.0
- 用任何文字編輯器打開VsFontLk.dat
- 找到
0404|MingLiU|細明體
- 改成
0404|Microsoft JhengHei|微軟正黑體
0404是16進制,對應10進制是1028,也就是繁體中文的lang id了。後面是字體。
解決Consolas在VS2008的中文顯示問題 - 黑暗執行緒
parseInt()
標籤:
JavaScript
If the radix parameter is omitted, JavaScript assumes the
following:
JavaScript parseInt() Function
- If the string begins with "0x", the radix is 16 (hexadecimal)
- If the string begins with "0", the radix is 8 (octal). This feature is deprecated
- If the string begins with any other value, the radix is 10 (decimal)
JavaScript parseInt() Function
訂閱:
文章
(
Atom
)