Skip to content

Commit 69fa69c

Browse files
authored
MrHakan version
1 parent c4ad143 commit 69fa69c

File tree

7 files changed

+48
-0
lines changed

7 files changed

+48
-0
lines changed

Kunduz Cevap Gösterici/a911.png

25.2 KB
Loading
6.38 KB
Loading
493 Bytes
Loading
1.05 KB
Loading
1.72 KB
Loading
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "Kunduz Cevap Gösterici",
4+
"description": "Shows the answer when the specified link is clicked.",
5+
"version": "0.1",
6+
"icons": {
7+
"16": "images/icon-16.png",
8+
"32": "images/icon-32.png",
9+
"48": "images/icon-48.png",
10+
"128": "images/icon-128.png"
11+
},
12+
"content_scripts": [
13+
{
14+
"js": [
15+
"scripts/script.js"
16+
],
17+
"matches": [
18+
"https://kunduz.com/*"
19+
]
20+
}
21+
]
22+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// ==UserScript==
2+
// @name Kunduz Cevap Gösterici
3+
// @namespace https://kunduz.com/
4+
// @version 0.1
5+
// @description Shows the answer when the specified link is clicked.
6+
// @author CrawLeyYou & MrHakan & Luxotick
7+
// @match https://kunduz.com/*
8+
// @grant none
9+
// ==/UserScript==
10+
11+
(function() {
12+
'use strict';
13+
var url = JSON.parse(document.getElementById('__NEXT_DATA__').innerText).props.pageProps.question.raw_answer_image;
14+
var linkHTML = '<a id="showAnswerLink" style="position: fixed; top: 100px; right: 100px; background-color: #f2f2f2; padding: 50px; text-decoration: none; color: #333; border: 1px solid #ccc; cursor: pointer;">Cevabı Göster</a>';
15+
16+
// Add the link element to the top level
17+
document.body.insertAdjacentHTML('beforeend', linkHTML);
18+
19+
// Select the link element
20+
var showAnswerLink = document.getElementById('showAnswerLink');
21+
22+
// Define the action to be taken when the link is clicked
23+
showAnswerLink.addEventListener('click', function() {
24+
window.open(url, "_blank");
25+
});
26+
})();

0 commit comments

Comments
 (0)