MCPcopy Index your code
hub / github.com/XIU2/UserScript / getSearch

Function getSearch

Autopage.user.js:2579–2587  ·  view source on GitHub ↗
(variable)

Source from the content-addressed store, hash-verified

2577 }
2578 // 获取 Search 指定参数
2579 function getSearch(variable) {
2580 let query = window.location.search.substring(1),
2581 vars = query.split('&');
2582 for (var i=0;i<vars.length;i++) {
2583 var pair = vars[i].split('=');
2584 if(pair[0] == variable){return pair[1];}
2585 }
2586 return '';
2587 }
2588 // 启用/禁用 (当前网站)
2589 function menu_disable(type) {
2590 switch(type) {

Callers 1

getNextUPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected