๋ด ์คํฌ๋ฆฝํธ์๋ ๋ค์ ํญ๋ชฉ์ด ์์ต๋๋ค(์ธํธ๋ผ๋ท ์ฃผ์์์ ์ญ์ ๋จ).
// <strong i="6">@match</strong> http://*.some-net.net/*
// <strong i="7">@match</strong> http://*.some-net.net/*
// <strong i="8">@match</strong> https://*.some-othernet.net/*
// <strong i="9">@match</strong> https://*.some-othernet.net/*
V3/tampermonkey์์๋ ๋ค์์ ๋ชจ๋ ์ฃผ์ ์์ (http ๋ฐ https ๋ชจ๋)์ ๋ํด ์๋ํฉ๋๋ค.
[1] service.some-net.net
[2] service.some-othernet.net
[3] service.some-net. ์:1234
[4] service.some-othernet. ์:1234
[5] service.customer.some-net. ์:1234
[6] service.customer.location.some-net.net
๊ทธ๋ฌ๋ V4 [3][4] ๋ฐ [5]์์ ์๋ํ์ง ์์ต๋๋ค. [3] ์์ ์ฌํญ์ ํฌํธ์ ์ผ์นํ๋๋ก ์ถ๊ฐํ๋ ๊ฒ์ด ์์ต๋๋ค.
// <strong i="23">@match</strong> http://*.some-net.net:*/*
// <strong i="24">@match</strong> http://*.some-net.net:*/*
// <strong i="25">@match</strong> https://*.some-othernet.net:*/*
// <strong i="26">@match</strong> https://*.some-othernet.net:*/*
[5]์ ๊ดํด์๋ ์ด๊ฒ์ ์๋ํ์ง๋ง ๋์์ด๋์ง ์์ต๋๋ค.
// <strong i="30">@match</strong> http://*.*.some-net.net:*/*
// <strong i="31">@match</strong> http://*.*.some-net.net:*/*
// <strong i="32">@match</strong> https://*.*.some-othernet.net:*/*
// <strong i="33">@match</strong> https://*.*.some-othernet.net:*/*
๊ทธ๋ฆฌ๊ณ ์ด๊ฒ์ [6] ์ฒซ ๋ฒ์งธ (์๋) ๊ท์น ์ธํธ ๋จ๋ ์ผ๋ก ์์ ํ๊ธฐ ๋๋ฌธ์ ๋์๊ฒ ์๋ฏธ๊ฐ ์์ต๋๋ค.
๊ณต์ ๋ฌธ์ ๋ ๊ฐ๊ฒฐํ๋ฉฐ ํฌํธ๋ฅผ ์ ํ ์ธ๊ธํ์ง ์์ต๋๋ค. ํ๊ท๋ฅผ ๋ฐฉ์งํ๊ธฐ ์ํด ์์ ํ ๋ ํ ์คํธ๋ฅผ ํฌํจํด์ผ ํฉ๋๋ค.
์/์ด์ ์ฝ๋๋ฅผ ๋น๊ตํ๋ฉด ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
์ด๋ป๊ฒ ์ด๋ฐ ์ผ์ด ์ผ์ด ๋ฌ๋์ง ํ์คํ์ง ์์ต๋๋ค. ๋ณ๊ฒฝ๋์ง ์์์ต๋๋ค.
๊ธ์, ์๋ง๋ ํ์ฌ URL์ ์ป๋ ๋ฐ ์ฌ์ฉ๋๋ ๋ฐฉ๋ฒ์ด ๋ณ๊ฒฝ๋์์ ์ ์์ต๋๋ค. ์ Firefox๋ฅผ ์ฌ์ฉํ๋ ๋ชจ๋ ์ฌ๋์๊ฒ ์ด ๋ฌธ์ ๊ฐ ์์ผ๋ฉฐ ์ด์ FF/Chrome์ ์ฌ์ฉํ๋ ๋ค๋ฅธ ์ฌ๋์๊ฒ๋ ์๋ํฉ๋๋ค.
๋ถํํ๋ ์ผ๋ถ ์ธ์๋ฌผ์ ์ถ๊ฐํ๊ธฐ ์ํด XPI๋ฅผ ์์ ํ๋ ค๊ณ ํ ๋ ์๋ช
์ด ํ์ํ๋ค๋ ๊ฒ์ ์์์ต๋๋ค....
๋งค์น์ ํฌํธ์ ๋ํ Bugzilla๊ฐ ์์ต๋๋ค. ํด์๋๊ฐ ๋ฌด์์ธ์ง ํ์คํ์ง ์์ต๋๋ค. ๋ด๊ฐ ๊ทธ๊ฒ์ ์ฐพ์ ์ ์๋์ง ๋ณผ ๊ฒ์ ๋๋ค.
๊ฒฝ๊ธฐ์ ํญ๊ตฌ์ Buzilla. ์ฌ๊ธฐ .
๋ฌธ์ ๊ธฐ๋ฅ๊ณผ ์ง์ ์ ์ธ ๊ด๋ จ์ ์์ง๋ง FF ๊ตฌํ๊ณผ์ ํธํ์ฑ์ ๋ณด์ฅํฉ๋๋ค. API๊ฐ ๊ตฌํ๋์ด์ผ ํฉ๋๋ค.
์ด ์์ ์ฌํญ์ 4.1beta6์ ์์ด์ผ ํฉ๋๋ค. ์ด๊ฒ์ ํ ์คํธํ๊ณ ํ์ธํ๋ ๊ฒ์ ๋งค์ฐ ๊ฐ์ฌํ ๊ฒ์ ๋๋ค!
https://addons.mozilla.org/firefox/downloads/file/800957/greasemonkey-4.1beta6-an+fx.xpi?src=devhub
์ง๊ธ ํ์ธํ๊ณ ์ ๋๋ก ์๋ํ๋ ๊ฒ ๊ฐ์ต๋๋ค. ๊ฐ์ฌ ํด์!