mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-08 10:34:04 +00:00
Update
This commit is contained in:
@@ -10,14 +10,18 @@
|
|||||||
const pinned_posts = document.getElementsByName('pinned-post');
|
const pinned_posts = document.getElementsByName('pinned-post');
|
||||||
for (let i = 0; i < pinned_posts.length; i++) {
|
for (let i = 0; i < pinned_posts.length; i++) {
|
||||||
for (let j = 0; j < classs.length; j++) {
|
for (let j = 0; j < classs.length; j++) {
|
||||||
|
try {
|
||||||
pinned_posts[i].getElementsByTagName('p')[0].classList.add(classs[j]);
|
pinned_posts[i].getElementsByTagName('p')[0].classList.add(classs[j]);
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
classs = [/*'col-9', */'d-inline-block', 'text-gray', 'mb-2', 'pr-4'];
|
classs = [/*'col-9', */'d-inline-block', 'text-gray', 'mb-2', 'pr-4'];
|
||||||
const posts_posts = document.getElementsByName('posts-post');
|
const posts_posts = document.getElementsByName('posts-post');
|
||||||
for (let i = 0; i < posts_posts.length; i++) {
|
for (let i = 0; i < posts_posts.length; i++) {
|
||||||
for (let j = 0; j < classs.length; j++) {
|
for (let j = 0; j < classs.length; j++) {
|
||||||
|
try {
|
||||||
posts_posts[i].getElementsByTagName('p')[0].classList.add(classs[j]);
|
posts_posts[i].getElementsByTagName('p')[0].classList.add(classs[j]);
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Reference in New Issue
Block a user