Search content
Sort by

Showing 6 of 6 results by Crypto Zone
Post
Topic
Board Other languages/locations
Re: বাংলা (Bengali)
by
Crypto Zone
on 06/06/2024, 10:28:02 UTC
@DYING_S0UL ভাই আপনাকে ধন্যবাদ।আপনার মাধ্যমে অনেক গুরুত্বপূর্ণ একটা বিষয় জানতে পেরেছি আজকে।আমি অ্যাকাউন্ট খুলেছি অনেক আগেই কিন্তু আজকে অনেক দিন পর ফোরাম ভিজিট করতে এসে আপনার এই ইনফরমেশন টি চোখে পরলো। আর এটি পরে আমি সত্যি অনেক উপকৃত হয়েছি। এই বিষয়ের কিছুটা আমি আমার কলেজ জীবনে পড়েছিলাম এর জন্য এটি পড়ার সময় আমি আরও আনন্দ পেয়েছি। বিশেষ করে এনক্রিপশন , ডিক্রিপশন , পাবলিক কি , প্রাইভেট কি এগুলো সম্পর্কে আমার আগে থেকেই ধারণা ছিলো কিন্তু আপনার দেয়া উদাহরণ গুলোর মাধ্যমে সেগুলো আরও ক্লিয়ার হয়েছে।যদিও আমি এটি এখনো ইনস্টল করিনি।তবে প্রোসেস টি আমার খুব ভালো করে বোঝা হয়েছে। আশা করি ভবিষ্যতে এটি কাজে লাগবে।
Post
Topic
Board Meta
Topic OP
Question about trust systems and feedback ?
by
Crypto Zone
on 02/10/2023, 07:49:06 UTC
I went to the profile of some users and clicked on the trust system and found that they got green trust and some of them have red trust.
And go to my account and see there is a post a new feedback and trust settings options. I really don't understand these things can someone give me some details please?
Post
Topic
Board Other languages/locations
Re: বাংলাদেশ (Bengali)
by
Crypto Zone
on 20/07/2023, 21:28:17 UTC
আচ্ছা Crypto Library ভাই এডিট কিভাবে করব ?  এডিট অপশনে ক্লিক করলে তো এগুলোই চলে আসে আবার ,  এ বিষয়টি আসলে ভাই আমি বুঝতেছি না, আমাকে একটু বুঝিয়ে বলবেন?  ধন্যবাদ
Post
Topic
Board Other languages/locations
Re: কাস্টম ইউজার নোট এবং কোড গুলোকে ক্লিক বোর
by
Crypto Zone
on 19/07/2023, 22:25:58 UTC
কাস্টম ইউজার নোট এবং কোড গুলোকে ক্লিক বোর্ডে কপি করার ইউজার স্ক্রিপ্ট

ঘুরতে ঘুরতে  এই দুইটি tools  চোখে পড়লো তাই আবার শেয়ার করা। আশা করি অনেকেরই কাজে দিবে।

বিটকয়েন টক ফোরামের জন্য কাস্টম ইউজার নোট
প্রথম এর ব্যবহার বলে নেই,
এটির ব্যবহার মূলত আপনি  বিটকয়েন টক ফোরামের যে কোন ইউজারকে  বা ইউজারের প্রোফাইলে কাস্টম ভাবে নিজের মতন করে নোট দিয়ে রাখতে পারবেন,  যারা বিভিন্ন সার্ভিসের সাথে জড়িত তাদের নিকট এটা বেশি কার্যকরী।
মূলত এটাকে সহজ ভাষায় বলবো  নিজের পার্সোনাল ট্যাগিং।
এই যে যেমন ধরেন উদাহরণস্বরুপ Little Mouse ভাইকে  একটা নোট দিয়ে রাখলাম: Tongue
https://i.postimg.cc/6QrfrHH0/screenshot.png
Code:
// ==UserScript==
// @name         BitcoinTalk User Notes
// @version      0.3.1
// @description  Adds an note field to each user on BitcoinTalk
// @author       TryNinja
// @match        https://bitcointalk.org/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bitcointalk.org
// @grant GM.setValue
// @grant GM.getValue
// @grant GM_setValue
// @grant GM_getValue
// @namespace https://greasyfork.org/users/1070272
// ==/UserScript==

const enableModal = 1;

(async function() {
    'use strict';

    const addStyle = (css) => {
        const style = document.getElementById("GM_addStyleBy8626") || (() => {
        const style = document.createElement('style');
        style.id = "GM_addStyleBy8626";
        document.head.appendChild(style);
        return style;
        })();
        const sheet = style.sheet;
        sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length);
    }

    if (enableModal) {
        addStyle(`.modal {
            position: fixed;
            width: 100vw;
            height: 100vh;
            top: 0;
            left: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }`);

        addStyle(`.modal-bg {
            position: absolute;
            width: 100%;
            height: 100%;
        }`);

        addStyle(`.modal-container {
            min-width: 30vh;
            border-radius: 10px;
            background: #fff;
            position: relative;
            padding: 10px;
        }`);

        addStyle(`.modal-close {
            position: absolute;
            right: 15px;
            top: 15px;
            outline: none;
            appearance: none;
            color: red;
            background: none;
            border: 0px;
            font-weight: bold;
            cursor: pointer;
        }`);
    };

    const getValue = typeof GM_getValue === 'undefined' ? GM.getValue : GM_getValue;
    const setValue = typeof GM_setValue === 'undefined' ? GM.setValue : GM_setValue;

    const getParentNodeNth = (element, num) => {
        let parent = element;
        for (let i = 0; i < num; i++) {
            if (parent.parentNode) {
                parent = parent.parentNode;
            }
        }
        return parent;
    };

    const getNotes = async () => {
        let notes;
        try {
            notes = JSON.parse(await getValue('notes') ?? '{}');
        } catch (error) {
            notes = {};
        };
        return notes;
    };

    const setNotes = async notes => {
        if (typeof notes === 'string') {
            try {
                JSON.parse(notes);
                await setValue('notes', notes);
            } catch (error) {
                console.error('Notes value is an invalid JSON format')
            };
        } else if (typeof notes === 'object') {
            await setValue('notes', JSON.stringify(notes ?? {}));
        };
    };

    const getUserNote = async user => {
        const notes = await getNotes();
        if (!notes) {
            return null;
        }
        return notes[user];
    };

    const setUserNote = async (user, note) => {
        const notes = await getNotes();
        notes[user] = note;
        await setNotes(notes)
    };

    const texts = {
        addNote: '<a style="cursor: pointer; font-weight: bold" href="javascript:;">📜 Add Note</a>',
        withNote: note => `<a style="cursor: pointer; font-weight: bold" href="javascript:;"><b>📜</b> ${note}</a>`
    };

    const addNote = async (user, element) => {
        const note = prompt('Input the note (empty to remove):');
        if (note) {
            element.innerHTML = texts.withNote(note);
            await setUserNote(user, note);
        } else if (note !== null) {
            element.innerHTML = texts.addNote;
            await setUserNote(user, note);
        }
    };

    const exportNotesToInput = async () => {
        const notesInput = document.querySelector('#notesInput');
        const notesImportExportDiv = document.querySelector('#notesImportExportDiv');
        const doneImportButton = document.querySelector('#doneImportButton');
        const notes = await getNotes();
        const notesJsonString = JSON.stringify(Object.keys(notes)
            .filter(user => notes[user]).reduce((obj, user) => ({...obj, [user]: notes[user]}), {}));

        notesInput.value = notesJsonString;
        notesImportExportDiv.querySelector('span').innerText = 'Export (copy the code)';
        notesImportExportDiv.style.display = 'flex';
        doneImportButton.style.display = 'none';
    };

    const importNotesFromInput = async () => {
        const notesInput = document.querySelector('#notesInput');
        const notesImportExportDiv = document.querySelector('#notesImportExportDiv');
        const doneImportButton = document.querySelector('#doneImportButton');

        notesInput.value = '';
        notesImportExportDiv.querySelector('span').innerText = 'Import (paste the code)';
        notesImportExportDiv.style.display = 'flex';
        doneImportButton.style.display = 'inline-block';
    };

    const importNotesFromInputDone = async () => {
        const notesInput = document.querySelector('#notesInput');
        const confirmImport = confirm('Are you sure you want to override your local notes?');

        if (confirmImport && notesInput.value) {
            setNotes(notesInput.value);
            loadUserNotesList();
        }
    };

    const insertNotesModal = async () => {
        let notesModal = document.querySelector('#userNotesModal');

        if (!notesModal) {
            const moreMenuBtn = document.querySelector('body');
            notesModal = document.createElement('div');

            notesModal.innerHTML = `
                <div class="modal" id="modal-one">
                    <div class="modal-bg modal-exit"></div>
                    <div class="modal-container">
                        <div style="margin-bottom: 5px;">
                            <b style="font-size: 2rem;">User Notes</b>
                            <button class="modal-close modal-exit">X</button>
                        </div>

                        <div style="display: flex; align-items: center; margin-bottom: 5px;">
                            <button id="exportUserNotes">Export</button>
                            <button id="importUserNotes">Import</button>
                        </div>

                        <div>
                            <div style="display: none; flex-direction: column;" id="notesImportExportDiv">
                                <span id="notesInputText"></span>
                                <input id="notesInput" />
                                <button id="doneImportButton" style="display: none;">Done</button>
                            </div>

                        </div>

                        <div id="userNotesList" />
                    </div>
                </div>`;
            notesModal.classList.add('modal');
            notesModal.style.visibility = 'hidden';
            notesModal.setAttribute('id', 'userNotesModal');

            moreMenuBtn.after(notesModal);

            const exportButton = document.querySelector('#exportUserNotes');
            const importButton = document.querySelector('#importUserNotes');
            const doneImportButton = document.querySelector('#doneImportButton');

            exportButton.addEventListener('click', () => exportNotesToInput());
            importButton.addEventListener('click', () => importNotesFromInput());
            doneImportButton.addEventListener('click', () => importNotesFromInputDone());
        };

        return notesModal;
    };

    const loadUserNotesList = async () => {
        const userNotesList = document.querySelector('#userNotesList');

        const notes = await getNotes();

        if (Object.keys(notes).length) {
            userNotesList.innerHTML = Object.keys(notes)
            .filter(user => notes[user])
            .map((user) => `<a href="https://bitcointalk.org/index.php?action=profile;u=${user}" target="_blank">${user}</a>: ${notes[user]}`).join('<br/>');
        } else {
            userNotesList.innerHTML = 'No notes...';
        };
    };

    const insertUserNotesMenuButton = async () => {
        let notesBtn = document.querySelector('#userNotesMenuBtn');
        const modal = await insertNotesModal();
        const modalExit = modal.querySelectorAll('.modal-exit');

        if (!notesBtn) {
            const moreMenuBtn = document.querySelector(`a[href='/more.php']`).parentNode;
            notesBtn = document.createElement('td');

            notesBtn.innerHTML = '<td><a href="javascript:;" id="openUserNotes">User Notes</a></td>';
            notesBtn.classList.add('maintab_back');
            notesBtn.setAttribute('id', 'userNotesMenuBtn');
            moreMenuBtn.after(notesBtn);

            const openUserNotes = document.querySelector('#openUserNotes')
            const notesImportExportDiv = document.querySelector('#notesImportExportDiv');
            const notesInput = document.querySelector('#notesInput');

            openUserNotes.addEventListener('click', () => {
                modal.style.visibility = 'visible';
                modal.style.opacity = 1;
                notesImportExportDiv.style.display = 'none';
                notesInput.value = '';
                loadUserNotesList();
            });
            modalExit.forEach(el => el.addEventListener('click', () => {
                modal.style.visibility = 'hidden';
                modal.style.opacity = 0;
            }));
        }

        return notesBtn;
    };

    if (enableModal) {
        insertNotesModal();
        insertUserNotesMenuButton();
    };

    if (window.location.href.match(/topic=\d+/)) {
        const targets = [...document.querySelectorAll('td.poster_info div a:last-child')]
        .filter(e => window.getComputedStyle(getParentNodeNth(e, 11)).display !== 'none');

        targets.map(async target => {
            const [_, userId] = [...target.parentNode.parentNode.childNodes].find(childNode => childNode.innerHTML).innerHTML.match(/u=(\d+)/);
            const noteDiv = document.createElement('div');
            const note = await getUserNote(userId);
            if (!note) {
                noteDiv.innerHTML = texts.addNote;
            } else {
                noteDiv.innerHTML = texts.withNote(note);
            }
            target.before(noteDiv);
            noteDiv.addEventListener('click', () => addNote(userId, noteDiv), false);
        });
    } else if (window.location.href.match(/profile;u=\d+$/)) {
        const [_, userId] = window.location.href.match(/u=(\d+)/);
        const target = getParentNodeNth(document.querySelector('#bodyarea table tr td tbody tr:nth-child(2) tr:last-child').parentNode, 1);
        const noteDiv = document.createElement('div');
        const note = await getUserNote(userId);
        if (!note) {
            noteDiv.innerHTML = texts.addNote;
        } else {
            noteDiv.innerHTML = texts.withNote(note);
        }
        target.before(noteDiv);
        noteDiv.addEventListener('click', () => addNote(userId, noteDiv), false);
    }
})();

কোড গুলোকে ক্লিক বোর্ডে কপি করার  ইউজার স্ক্রিপ্ট
এটির কাজ হচ্ছে গিয়ে উপরে যে  কোডটি দেখতেছেন  এই সম্পূর্ণ কোডকে টেনে টেনে সিলেক্ট  করে কপি না করে এক ক্লিকেই কপি করার  জন্য পদ্ধতি।
উদাহরণ
https://i.postimg.cc/htykF1Vc/screenshot.png
Code:
// ==UserScript==
// @name         Copy Code to Clipboard
// @version      0.1
// @description  Click the codeheader to copy the content to your clipboard
// @author       TryNinja
// @match        https://bitcointalk.org/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bitcointalk.org
// @namespace https://greasyfork.org/users/1070272
// ==/UserScript==

(function() {
      'use strict';
  
      const codeheaders = document.querySelectorAll('.codeheader');
  
      const copyCode = id => {
          const header = document.querySelector(`.${id}`);
          const copyBtn = document.querySelector(`.${id} > button`);
          const code = header.nextElementSibling;
          navigator.clipboard.writeText(code.innerText).then(() => {
              copyBtn.textContent = 'Code: (copied!)';
          });
      }
  
      for (const codeheader of codeheaders) {
          const rand = Math.floor(Math.random() * 10e6);
          const id = `code-${rand}`;
          codeheader.classList.add(id);
          codeheader.innerHTML = `<button type="button" style="border: 0; background: none; color: rgb(136, 169, 195); font-weight: bold;">Code: (click to copy)</button>`;
          const copyBtn = document.querySelector(`.${id} > button`);
          copyBtn.addEventListener('click', () => copyCode(id));
      }
  })();

উপরের  স্ক্রিপ্ট গুলোকে কাজে লাগানোর জন্য আপনাকে যা করতে হবে Tampermonkey  নামের এই এক্সটেনশন টি  প্রথমে ব্রাউজারে অ্যাড করে নিতে হবে তারপর এক্সটেনশন টি এড হওয়ার পর Tampermonkey  আইকনে ক্লিক করে  ক্রিয়েট এ নিউ স্ক্রিপ্ট এ ক্লিক করে উপরের  কোড গুলো  পাওয়া যাবে  বসিয়ে দিবেন  অল  দান।

greasyfork এ আপলোড করা TryNinja  এর স্ক্রিপ্ট গুলো সরাসরি  টেম্পার মানকিতে  এড করতে পারবেন।
https://greasyfork.org/en/scripts/465798-copy-code-to-clipboard
https://greasyfork.org/en/scripts/465800-bitcointalk-user-notes

আশা করি স্ক্রিপ্ট গুলো অনেকের হেল্প  করবে,  
আর  TryNinja  আপনাকে অসংখ্য ধন্যবাদ এই ধরনের স্ক্রিপ্ট  তৈরি করার জন্য।


আচ্ছা ভাই একটা প্রশ্ন করি, আপনার ইমেজ এ ইউজার নেম এর পাশাপাশি অনেকগুলো আইকন দেখা যাচ্ছে আমারটায় এগুলো নেই। এগুলো আসলে কি আমাকে একটু জানাবেন?
Post
Topic
Board Other languages/locations
Merits 1 from 1 user
Re: বাংলাদেশ (Bengali)
by
Crypto Zone
on 17/07/2023, 20:42:37 UTC
⭐ Merited by Crypto Library (1)
আসসালামু আলাইকুম ভাইয়েরা ,  আশা করি সবাই ভাল আছেন।  এটা  আমার  বাংলাদেশ কমিউনিটিতে প্রথম পোস্ট। 
আমি মূলত  এই ক্রিপ্টো  জগতে একদমই নতুন।  শখের বসে একাউন্ট খোলা হয়েছিল এক বন্ধুর কাছ থেকে ইনফরমেশন পেয়ে,  এখন কিছুটা খালি সময় কাটতেছে তাই ভাবলাম এখান থেকে  নতুন কিছু শেখা যাক।
যাইহোক আজকে আমি যে বিষয়টি জানতে চাচ্ছি যে,  ফোরামে দেখতেছি বেশিরভাগ  ক্ষেত্রেই মানুষ বিটকয়েন হালবিং নিয়ে কথা বলছে,  আর বেশিরভাগই  এটা বলছে যে বিটকয়েন এর প্রাইস পরবর্তী  হালবিং এ  আকাশচুম্বি হবে।  বিটকয়েন হালবিং বিষয়টা কি?   আর এই সময় কেন  বিটকয়েন এর দাম  বাড়বে?
Post
Topic
Board Beginners & Help
Topic OP
How do I start my journey on bitcoin talk forum i.e. in crypto world.
by
Crypto Zone
on 10/07/2023, 19:07:33 UTC
Hello. How are you all?  I am new to this forum.  I came to know about bitcoin forum from a friend of mine.  But I don't know much about forums.  What should I do in this situation?  I know about Bounty but I am not interested in Bounty.  How do I start working?  What should I do? I want your help to start my journey-
Thanks-