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

Function getAddTo

Autopage.user.js:2914–2927  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

2912 }
2913 // 插入位置
2914 function getAddTo(num) {
2915 switch (num) {
2916 case 1:
2917 return 'beforebegin'; break;
2918 case 2:
2919 return 'afterbegin'; break;
2920 case 3:
2921 case 6:
2922 return 'beforeend'; break;
2923 case 4:
2924 case 5:
2925 return 'afterend'; break;
2926 }
2927 }
2928 // 插入位置 5 时,排除 <script> <style> <link> 标签
2929 function toE5pop(a) {
2930 if (a.length === 0) return

Callers 4

mangabz_insertEFunction · 0.85
dm5_insertEFunction · 0.85
xmanhua_insertEFunction · 0.85
processElemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected