mirror of
https://github.com/lebr0nli/slader-extension.git
synced 2025-06-21 23:57:55 +00:00
commit
30d2e94fe8
|
@ -142,16 +142,4 @@ async function doFetch(url)
|
||||||
body: null // body data type must match "Content-Type" header
|
body: null // body data type must match "Content-Type" header
|
||||||
});
|
});
|
||||||
return response.text();
|
return response.text();
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function getOldTextbookLink(url)
|
|
||||||
{
|
|
||||||
// This is mostly approximate.
|
|
||||||
const bookTitle = window.location.toString().match(/(?<=quizlet\.com\/explanations\/textbook-solutions\/).+?(?=-\d\d\d\d\d\d\d)/)[0];
|
|
||||||
const bookISBN = window.location.toString().split(bookTitle)[1].split('/')[0].replaceAll('-', '');
|
|
||||||
const page = document.getElementsByClassName('tsqwngb')[0].children[1].innerHTML.slice(5);
|
|
||||||
const problem = document.getElementsByClassName('t1aekklg')[0].innerHTML.slice(9);
|
|
||||||
|
|
||||||
return "https://www.slader.com/textbook/" + bookISBN + '-' + bookTitle + '/' + page + '/problems/' + problem;
|
|
||||||
}
|
}
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"name": "slader bypass",
|
"name": "slader bypass",
|
||||||
"version": "0.3",
|
"version": "0.4",
|
||||||
"author":"Alan Li & Ethan Harvey",
|
"author":"Alan Li & Ethan Harvey",
|
||||||
"description": "slader 5 solutions limit bypass",
|
"description": "Slader/Quizlet 5 solutions limit bypass",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"webRequest",
|
"webRequest",
|
||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue